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

◆ syncLegacySettings()

void fl::Channel::syncLegacySettings ( )
private

Definition at line 393 of file channel.cpp.hpp.

393 {
398 // Active white config assigned straight into ChannelOptions.mWhiteCfg
399 // never passed through setRgbw()/setRgbww(): install its conversion here
400 // (#4795).
401 if (const Rgbw* rgbw = mLegacySettings.mWhiteCfg.ptr<Rgbw>()) {
402 if (rgbw->active()) {
404 }
405 } else if (const Rgbww* rgbww = mLegacySettings.mWhiteCfg.ptr<Rgbww>()) {
406 if (rgbww->active()) {
408 }
409 }
410 if (const auto* rgbw = mSettings.mWhiteCfg.ptr<Rgbw>()) {
413 }
414}
Rgbw rgbw
LegacySettings mLegacySettings
ChannelOptions mSettings
Definition channel.h:456
void enable_rgbww_conversion() FL_NO_EXCEPT
Installs the RGBWW pixel conversion (see enable_rgbw_conversion, #4795).
void enable_rgbw_conversion() FL_NO_EXCEPT
Installs the RGBW pixel conversion used by PixelIterator.
Definition rgbw.cpp.hpp:732
void enable_rgbw_power_estimate() FL_NO_EXCEPT
Lets the power limiter charge a controller's RGBW conversion.
void prepare_rgbw_colorimetric(const Rgbw &) FL_NO_EXCEPT
Definition rgbw.cpp.hpp:626
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:100
fl::u8 mDitherMode
Definition options.h:96
variant< Empty, Rgbw, Rgbww > mWhiteCfg
FASTLED_FORCE_INLINE bool active() const FL_NO_EXCEPT
Definition rgbw.h:258

References fl::detail::enable_rgbw_conversion(), fl::detail::enable_rgbw_power_estimate(), fl::detail::enable_rgbww_conversion(), fl::FL_NO_EXCEPT, fl::CLEDController::mLegacySettings, mSettings, fl::prepare_rgbw_colorimetric(), and rgbw.

Referenced by Channel(), Channel(), and applyConfig().

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