FastLED 3.10.10
Loading...
Searching...
No Matches

◆ apply_rgb_power_model()

static void apply_rgb_power_model ( const PowerModelRGB & model)
static

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

997 {
998 gPowerModel() = model;
999#if SKETCH_HAS_LARGE_MEMORY
1000 rebuild_power_scaling_tables(model.exponent);
1001#else
1002 // Small-memory targets ignore non-linear exponent and keep linear behavior;
1003 // clamp the stored field so get_power_scaling_exponent() reports the truth.
1005#endif
1006}
static constexpr float kLinearPowerScalingExponent
static PowerModelRGB & gPowerModel() FL_NO_EXCEPT
Global RGB power model (initialized to WS2812 @ 5V defaults, linear response)
float exponent
Brightness-to-power response exponent (1.0 = linear)
Definition power_mgt.h:42

References PowerModelRGB::exponent, FL_NO_EXCEPT, gPowerModel(), and kLinearPowerScalingExponent.

Referenced by set_power_model(), set_power_model(), set_power_model(), and set_power_scaling_exponent().

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