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

◆ apply_rgb_power_model()

static void apply_rgb_power_model ( const PowerModelRGB & model)
static

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

960 {
961 gPowerModel() = model;
962#if SKETCH_HAS_LARGE_MEMORY
963 rebuild_power_scaling_tables(model.exponent);
964#else
965 // Small-memory targets ignore non-linear exponent and keep linear behavior;
966 // clamp the stored field so get_power_scaling_exponent() reports the truth.
968#endif
969}
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:35

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: