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

◆ operator ChannelConfig()

template<typename Chipset>
fl::ChannelConfigOf< Chipset >::operator ChannelConfig ( ) const
inline

Implicit conversion to the type-erased ChannelConfig so the existing non-template Channel::create() factory accepts a templated config without any per-call-site change.

Definition at line 323 of file config.h.

323 {
326 if (mName.has_value()) {
327 cfg.mName = mName;
328 }
329 return cfg;
330 }
fl::ScreenMap mScreenMap
Screen mapping (for JS canvas visualization).
Definition config.h:352
fl::span< CRGB > mLeds
LED data span.
Definition config.h:343
ChannelOptions options
Optional channel settings (correction, temperature, dither, rgbw, affinity).
Definition config.h:349
fl::optional< fl::string > mName
Optional user-specified name. If unset, Channel auto-generates one.
Definition config.h:355
EOrder rgb_order
RGB channel ordering.
Definition config.h:346
Chipset chipset
Typed chipset configuration.
Definition config.h:340
Strongly-typed channel configuration with compile-time chipset family.
Definition config.h:307

References chipset, fl::FL_NO_EXCEPT, mLeds, fl::ChannelConfig::mName, mName, fl::ChannelConfig::mScreenMap, mScreenMap, options, and rgb_order.