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

◆ get_power_scaling_exponent()

float get_power_scaling_exponent ( )

Get the current brightness-to-power response exponent.

Returns
the configured exponent. Defaults to 1.0 for linear scaling.
Note
Returns 1.0 on platforms where SKETCH_HAS_LARGE_MEMORY==0.

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

292 {
293 // Authoritative storage lives in the model; on small-memory builds the
294 // field is clamped to 1.0 by set_power_model.
295 return gPowerModel().exponent;
296}
static PowerModelRGB & gPowerModel()
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:32

References PowerModelRGB::exponent, and gPowerModel().

Referenced by CFastLED::getPowerScalingExponent().

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