FastLED 3.10.10
Loading...
Searching...
No Matches

◆ add() [5/11]

template<fl::Bus B, typename Chipset, fl::u8 Which = 0>
static fl::ChannelPtr CFastLED::add ( const fl::ChannelConfigOf< Chipset > & config)
inlinestatic

Add a typed configuration, deducing its chipset family.

The template bus and instance take precedence over runtime bus options.

Definition at line 862 of file FastLED.h.

862 {
863 fl::ChannelPtr channel = fl::TypedChannel<B, Chipset, Which>::create(config);
864 if (channel != nullptr) add(channel);
865 return channel;
866 }
static void add(fl::ChannelPtr channel) FL_NO_EXCEPT
Add a Channel-based LED controller (from ChannelPtr)
static ChannelPtr create(const ChannelConfigOf< Chipset > &cfg) FL_NO_EXCEPT
Construct a runtime Channel from a typed configuration.

References add(), fl::TypedChannel< B, Chipset, Which >::create(), and FL_NO_EXCEPT.

+ Here is the call graph for this function: