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

◆ enable()

template<fl::Bus B, typename Chipset = fl::ClocklessChipset, fl::u8 Which = 0>
CFastLED & CFastLED::enable ( )
inline

Enable one bus for the runtime FastLED.add(cfg) path.

Links only that bus's driver and defers constructing it until a channel first needs it. fl::Bus::AUTO names the platform default for Chipset. Returns *this, so calls chain:

FastLED.add(cfg);
CFastLED FastLED
Global LED strip management instance.
CFastLED & enable() FL_NO_EXCEPT
Enable one bus for the runtime FastLED.add(cfg) path.
Definition FastLED.h:1042
@ RMT
Definition bus.h:39

add(cfg) warns, rather than linking every driver, when the channel's bus was not enabled. enableAllDrivers() remains the catch-all. Legacy compatibility: if no bus was ever enabled, an AUTO-bus add(cfg) registers the platform default driver for its chipset family (as 3.10.9 did). An explicit cfg.options.mBus still requires enable<>() or enableAllDrivers().

Definition at line 1042 of file FastLED.h.

1042 {
1044 return *this;
1045 }
void bindDriver() FL_NO_EXCEPT
Enable one bus for FastLED.add(cfg).

References CFastLED(), fl::bindDriver(), enable(), and FL_NO_EXCEPT.

Referenced by enable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: