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

◆ setRgbww()

CLEDController & fl::CLEDController::setRgbww ( const Rgbww & arg = RgbwwDefault::value())
inline

Configure this channel for 5-channel RGBWW (RGB + warm-W + cool-W) output.

See issue #2558. Driver-side support arrives in later phases of the RGBWW work; today this just sets the configuration alternative. Symmetric with setRgbw: passing RgbwwInvalid::value() clears the channel to plain RGB rather than storing an inactive Rgbww.

Definition at line 149 of file cled_controller.h.

149 {
150 if (rejectFixedWhiteChannelChange("setRgbww()")) {
151 return *this;
152 }
153 if (!arg.active()) {
154 mSettings.mWhiteCfg.reset();
155 } else {
156 mSettings.mWhiteCfg = arg;
157 }
158 return *this;
159 }
bool rejectFixedWhiteChannelChange(const char *operation) const FL_NO_EXCEPT
ChannelOptions mSettings
Optional channel settings (correction, temperature, dither, rgbw, affinity)

References CLEDController(), fl::FL_NO_EXCEPT, mSettings, rejectFixedWhiteChannelChange(), and fl::RgbwwDefault::value().

+ Here is the call graph for this function: