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

◆ power_func

typedef fl::u8(* power_func) (fl::u8 scale, fl::u32 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 370 of file FastLED.h.