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

◆ setRgbw()

CLEDController & fl::CLEDController::setRgbw ( const Rgbw & arg = RgbwDefault::value())
inline

Definition at line 152 of file cled_controller.h.

152 {
153 if (rejectFixedWhiteChannelChange("setRgbw()")) {
154 return *this;
155 }
156 // (#2558) mLegacySettings.mWhiteCfg is now a fl::variant<Empty, Rgbw, Rgbww>;
157 // assigning Rgbw selects the 4-channel alternative. The legacy
158 // "setRgbw(RgbwInvalid::value()) → disable" semantics are preserved
159 // by translating an inactive Rgbw into Empty so observers see the
160 // same "no white channel" state they did before the variant migration.
161 if (arg.active()) {
162 // Covers an Rgbw made active by assigning rgbw_mode (#4795).
164 }
165 applyRgbw(arg);
167 return *this; // builder pattern.
168 }
void applyRgbw(const Rgbw &arg) FL_NO_EXCEPT
void settingsChanged(SettingsChange change) FL_NO_EXCEPT
bool rejectFixedWhiteChannelChange(const char *operation) const FL_NO_EXCEPT
void enable_rgbw_conversion() FL_NO_EXCEPT
Installs the RGBW pixel conversion used by PixelIterator.
Definition rgbw.cpp.hpp:732
FASTLED_FORCE_INLINE bool active() const FL_NO_EXCEPT
Definition rgbw.h:258

References CLEDController(), applyRgbw(), fl::FL_NO_EXCEPT, rejectFixedWhiteChannelChange(), setRgbw(), settingsChanged(), fl::type_rank< T >::value, and White.

Referenced by RGBWEmulatedController< CONTROLLER, RGB_ORDER >::RGBWEmulatedController(), fl::UCS7604ControllerT< DATA_PIN, RGB_ORDER, fl::UCS7604Mode::UCS7604_MODE_8BIT_800KHZ, fl::TIMING_UCS7604_800KHZ, CLOCKLESS_CONTROLLER >::init(), and setRgbw().

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