FastLED 3.10.8
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 1008 of file power_mgt.cpp.hpp.

1008 {
1009 // Authoritative storage lives in the model; on small-memory builds the
1010 // field is clamped to 1.0 by set_power_model.
1011 return gPowerModel().exponent;
1012}
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, and gPowerModel().

Referenced by CFastLED::getPowerScalingExponent().

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