Set the maximum power to be used, given in milliwatts.
- Parameters
-
| milliwatts | the max power draw desired, in milliwatts |
Definition at line 1698 of file FastLED.h.
1698 {
1700#if FL_COLOR_PIPELINE_SHARED
1701 fl::activeFramePowerDispatch() = fl::framePowerDispatch();
1702 mPPowerFunc = fl::activeFramePowerDispatch()->showBrightness;
1703#else
1705#endif
1706 }
fl::u8(* power_func)(fl::u8 scale, fl::u32 data)
Typedef for a power consumption calculation function.
power_func mPPowerFunc
function for overriding brightness when using FastLED.show();
fl::u32 mNPowerData
max power use parameter
fl::u8 calculate_max_brightness_for_power_mW(const CRGB *ledbuffer, fl::u16 numLeds, fl::u8 target_brightness, fl::u32 max_power_mW) FL_NO_EXCEPT
Determines the highest brightness level you can use and still stay under the specified power budget f...
References calculate_max_brightness_for_power_mW(), FL_NO_EXCEPT, mNPowerData, and mPPowerFunc.
Referenced by setMaxPowerInVoltsAndMilliamps().