FastLED 3.10.8
Loading...
Searching...
No Matches

◆ channelEvents()

fl::ChannelEvents & CFastLED::channelEvents ( )
static

Access the channel event system.

Returns
Reference to the ChannelEvents singleton
Note
Use to register callbacks for channel lifecycle events
int id = FastLED.channelEvents().onChannelCreated.add([](const fl::IChannel& ch) { ... });
Polymorphic identification base for any channel in the system.
Definition ichannel.h:23
CFastLED FastLED
Global LED strip management instance.

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

935 {
937}
static ChannelEvents & instance() FL_NO_EXCEPT

References FL_NO_EXCEPT, and fl::ChannelEvents::instance().

+ Here is the call graph for this function: