FastLED 3.9.15
Loading...
Searching...
No Matches

◆ toRGB()

PowerModelRGB PowerModelRGBW::toRGB ( ) const
inlineconstexpr

Convert to RGB model (extracts RGB components, preserves exponent)

Note
Used internally until RGBW power calculations are implemented

Definition at line 83 of file power_mgt.h.

83 {
84 return PowerModelRGB(red_mW, green_mW, blue_mW, dark_mW, exponent);
85 }
float exponent
Brightness-to-power response exponent (1.0 = linear)
Definition power_mgt.h:62
fl::u8 green_mW
Green channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:58
fl::u8 dark_mW
Dark LED baseline power consumption, in milliwatts.
Definition power_mgt.h:61
fl::u8 blue_mW
Blue channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:59
fl::u8 red_mW
Red channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:57

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

Referenced by set_power_model().

+ Here is the caller graph for this function: