FastLED 3.9.15
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 97 of file cled_controller.h.

97 {
98 if (!arg.active()) {
99 mSettings.mWhiteCfg.reset();
100 } else {
101 mSettings.mWhiteCfg = arg;
102 }
103 return *this;
104 }
ChannelOptions mSettings
Optional channel settings (correction, temperature, dither, rgbw, affinity)

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

+ Here is the call graph for this function: