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

◆ power_func

typedef uint8_t(* power_func) (uint8_t scale, uint32_t data)

Typedef for a power consumption calculation function.

Used within CFastLED for rescaling brightness before sending the LED data to the strip with CFastLED::show().

Parameters
scalethe initial brightness scale value
datamax power data, in milliwatts
Returns
the brightness scale, limited to max power

Definition at line 345 of file FastLED.h.