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

◆ toRGB()

PowerModelRGB PowerModelRGBW::toRGB ( ) const
inlineconstexpr

The RGB emitters alone, without the white one.

This is not the power model of an RGBW strip: it describes three of its four emitters. set_power_model(const PowerModelRGBW&) used to route through here, which is how white_mW came to be accepted by the API and then discarded. Kept because callers who genuinely want the RGB subset – driving the same strip as plain RGB, say – have no other way to ask for it.

Definition at line 91 of file power_mgt.h.

91 {
92 return PowerModelRGB(red_mW, green_mW, blue_mW, dark_mW, exponent);
93 }
float exponent
Brightness-to-power response exponent (1.0 = linear)
Definition power_mgt.h:64
fl::u8 green_mW
Green channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:60
fl::u8 dark_mW
Dark LED baseline power consumption, in milliwatts.
Definition power_mgt.h:63
fl::u8 blue_mW
Blue channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:61
fl::u8 red_mW
Red channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:59

References blue_mW, dark_mW, exponent, FL_NO_EXCEPT, green_mW, and red_mW.