|
FastLED 3.9.15
|
| void set_power_scaling_exponent | ( | float | exponent | ) |
Set a non-linear brightness-to-power response exponent.
| exponent | 1.0 = linear (default), values below 1.0 model higher-than-linear power draw at mid brightness, values above 1.0 model lower-than-linear draw |
model.exponent and calling set_power_model. Prefer set_power_model(PowerModelRGB{..., e}) to configure channel weights and response in one step. exponent <= 0 or values within 1e-4 of 1.0 fall back to linear (identity tables) rather than rebuilding with a degenerate curve. SKETCH_HAS_LARGE_MEMORY==1. Smaller-memory targets keep the legacy linear behavior and ignore this setting. Definition at line 286 of file power_mgt.cpp.hpp.
References PowerModelRGB::exponent, gPowerModel(), and set_power_model().
Referenced by CFastLED::setPowerScalingExponent().
Here is the call graph for this function:
Here is the caller graph for this function: