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

◆ PowerModelRGB() [2/2]

PowerModelRGB::PowerModelRGB ( fl::u8 r,
fl::u8 g,
fl::u8 b,
fl::u8 d,
float e = 1.0f )
inlineconstexpr

Custom RGB power model.

Parameters
rRed channel power (mW)
gGreen channel power (mW)
bBlue channel power (mW)
dDark state power (mW)
eBrightness-to-power response exponent. 1.0 = linear (default), values < 1.0 model higher-than-linear draw at mid brightness, values > 1.0 model lower-than-linear draw. Non-positive or near-1.0 values fall back to linear. Only honored on large-memory targets; ignored where SKETCH_HAS_LARGE_MEMORY==0.

Definition at line 49 of file power_mgt.h.

50 : red_mW(r), green_mW(g), blue_mW(b), dark_mW(d), exponent(e) {}
fl::u8 blue_mW
Blue channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:30
fl::u8 dark_mW
Dark LED baseline power consumption, in milliwatts.
Definition power_mgt.h:31
fl::u8 red_mW
Red channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:28
float exponent
Brightness-to-power response exponent (1.0 = linear)
Definition power_mgt.h:32
fl::u8 green_mW
Green channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:29

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