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

◆ set_power_model() [2/3]

void set_power_model ( const PowerModelRGBW & model)

Set custom RGBW LED power consumption model.

Parameters
modelRGBW power consumption model

white_mW is kept and used. It used to be dropped by toRGB(), so a caller who declared an RGBW strip got a budget computed over three emitters while four were lit. On the shipped default model (r90 g70 b90 w100) and the shipped conversions, at full white, the three-emitter figure is 249 units against a true four-emitter draw of 348 under kRGBWMaxBrightness (40% under budget), 266 under kRGBWBoostedWhite, and 99 under kRGBWExactColors (2.5x over).

The white emitter is charged only for controllers actually in RGBW mode; see calculate_unscaled_power_mW(span, const Rgbw&).

Definition at line 980 of file power_mgt.cpp.hpp.

980 {
984}
static void apply_rgb_power_model(const PowerModelRGB &model) FL_NO_EXCEPT
static RgbwwEmitterPower & gRgbwwEmitterPower() FL_NO_EXCEPT
static WhiteEmitterPower & gWhiteEmitterPower() FL_NO_EXCEPT
constexpr PowerModelRGB toRGB() const FL_NO_EXCEPT
The RGB emitters alone, without the white one.
Definition power_mgt.h:91
fl::u8 white_mW
White channel power at full brightness (255), in milliwatts.
Definition power_mgt.h:62

References apply_rgb_power_model(), RgbwwEmitterPower::declared, FL_NO_EXCEPT, gRgbwwEmitterPower(), gWhiteEmitterPower(), and WhiteEmitterPower::mW.

+ Here is the call graph for this function: