FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setRgbw()

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

Definition at line 131 of file cled_controller.h.

131 {
132 if (rejectFixedWhiteChannelChange("setRgbw()")) {
133 return *this;
134 }
135 // (#2558) mSettings.mWhiteCfg is now a fl::variant<Empty, Rgbw, Rgbww>;
136 // assigning Rgbw selects the 4-channel alternative. The legacy
137 // "setRgbw(RgbwInvalid::value()) → disable" semantics are preserved
138 // by translating an inactive Rgbw into Empty so observers see the
139 // same "no white channel" state they did before the variant migration.
140 applyRgbw(arg);
141 return *this; // builder pattern.
142 }
void applyRgbw(const Rgbw &arg) FL_NO_EXCEPT
bool rejectFixedWhiteChannelChange(const char *operation) const FL_NO_EXCEPT

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

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: