FastLED 3.9.15
Loading...
Searching...
No Matches

◆ enableAllDrivers()

void CFastLED::enableAllDrivers ( )
static

Enroll every channel driver available on this platform with ChannelManager.

Convenience forwarder to fl::enableAllDrivers() (defined out-of-line in src/platforms/channel_drivers.impl.cpp.hpp, linked into libfastled). Use this to restore 3.10.3-style runtime driver flexibility — every driver is registered, any affinity string resolves at runtime.

Tree-shaking (issue #2428). The body lives in a single TU. If a sketch never calls FastLED.enableAllDrivers(), -Wl,--gc-sections drops that TU and transitively every BusTraits<Bus::X> / registerWithManager() / driver factory it references — the binary-size fix from #2420 / #2421 is preserved structurally, no "magic include" required at the call site.

Example:

#include "FastLED.h"
void setup() {
FastLED.enableAllDrivers(); // every platform driver registered
fl::ChannelOptions opts; opts.mBus = fl::Bus::RMT; // #2459
FastLED.add(fl::ChannelConfig(..., opts));
}
void setup()
CFastLED FastLED
Global LED strip management instance.
@ RMT
ESP32 RMT peripheral (all ESP32 variants).
Definition bus.h:62
Configuration for a single LED channel.
Definition config.h:163
Optional channel configuration parameters All fields have sensible defaults and can be overridden as ...
Definition options.h:43

Definition at line 557 of file FastLED.cpp.hpp.

557 {
559}
void enableAllDrivers() FL_NOEXCEPT
Register every channel driver available on this platform with ChannelManager, restoring 3....

References fl::enableAllDrivers().

+ Here is the call graph for this function: