FastLED 3.10.8
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 175 of file cled_controller.h.

175 {
176 if (rejectFixedWhiteChannelChange("setRgbww()")) {
177 return *this;
178 }
179 if (!arg.active()) {
180 mLegacySettings.mWhiteCfg.reset();
181 } else {
182 detail::enable_rgbww_conversion(); // see setRgbw (#4795)
183 mLegacySettings.mWhiteCfg = arg;
184 }
186 return *this;
187 }
void settingsChanged(SettingsChange change) FL_NO_EXCEPT
LegacySettings mLegacySettings
bool rejectFixedWhiteChannelChange(const char *operation) const FL_NO_EXCEPT
void enable_rgbww_conversion() FL_NO_EXCEPT
Installs the RGBWW pixel conversion (see enable_rgbw_conversion, #4795).

References CLEDController(), fl::detail::enable_rgbww_conversion(), fl::FL_NO_EXCEPT, mLegacySettings, rejectFixedWhiteChannelChange(), settingsChanged(), fl::RgbwwDefault::value(), and White.

+ Here is the call graph for this function: