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

◆ set_power_model() [1/3]

void set_power_model ( const PowerModelRGB & model)

Set custom RGB LED power consumption model.

Parameters
modelRGB power consumption model. The model's exponent field drives the brightness-to-power response curve used by estimation and limiting; pass PowerModelRGB(r, g, b, d, e) to set channel weights + response curve in a single call.
Note
exponent <= 0 or values within 1e-4 of 1.0 fall back to linear (identity tables) rather than rebuilding with a degenerate curve.

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

971 {
973 // An RGB model describes a strip with three emitters. Leaving a white
974 // declaration from an earlier RGBW model standing would charge this one
975 // for a diode the caller just said it does not have.
978}
static void apply_rgb_power_model(const PowerModelRGB &model) FL_NO_EXCEPT
static RgbwwEmitterPower & gRgbwwEmitterPower() FL_NO_EXCEPT
static WhiteEmitterPower & gWhiteEmitterPower() FL_NO_EXCEPT

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

Referenced by CFastLED::setPowerModel(), CFastLED::setPowerModel(), and CFastLED::setPowerModel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: