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

◆ setMaxPowerInMilliWatts()

void CFastLED::setMaxPowerInMilliWatts ( fl::u32 milliwatts)
inline

Set the maximum power to be used, given in milliwatts.

Parameters
milliwattsthe max power draw desired, in milliwatts

Definition at line 1459 of file FastLED.h.

fl::u8(* power_func)(fl::u8 scale, fl::u32 data)
Typedef for a power consumption calculation function.
Definition FastLED.h:558
power_func mPPowerFunc
function for overriding brightness when using FastLED.show();
Definition FastLED.h:616
fl::u32 mNPowerData
max power use parameter
Definition FastLED.h:615
fl::u8 calculate_max_brightness_for_power_mW(const CRGB *ledbuffer, fl::u16 numLeds, fl::u8 target_brightness, fl::u32 max_power_mW)
Determines the highest brightness level you can use and still stay under the specified power budget f...

References calculate_max_brightness_for_power_mW(), mNPowerData, and mPPowerFunc.

Referenced by setMaxPowerInVoltsAndMilliamps().

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