Add multiple LED channels from an initializer list.
Creates and registers multiple Channel-based LED controllers from a brace-enclosed list. Returns handles for later inspection, reconfiguration, or removal. FastLED retains its own references until remove(channel) is called for each channel.
- Parameters
-
| configs | Initializer list of ChannelConfig objects |
- Returns
- Vector of ChannelPtrs (one per config)
Example:
});
CRGB leds2[lengths[RedStrip]]
CRGB leds1[lengths[GreenStrip]]
static fl::vector< fl::ChannelPtr > & channels() FL_NO_EXCEPT
stored ChannelPtrs to keep them alive
CFastLED FastLED
Global LED strip management instance.
constexpr ChipsetTimingConfig makeTimingConfig() FL_NO_EXCEPT
Convert compile-time CHIPSET type to runtime timing config.
Configuration for a single LED channel.
Definition at line 860 of file FastLED.cpp.hpp.
860 {
861 fl::vector<fl::ChannelPtr>
channels;
863
864 for (const auto& config : configs) {
866 }
867
869}
static void add(fl::ChannelPtr channel) FL_NO_EXCEPT
Add a Channel-based LED controller (from ChannelPtr)
References add(), channels(), and FL_NO_EXCEPT.