Set the maximum power to be used, given in milliwatts.
- Parameters
-
milliwatts | the max power draw desired, in milliwatts |
Definition at line 812 of file FastLED.h.
fl::u8(* power_func)(fl::u8 scale, fl::u32 data)
Typedef for a power consumption calculation function.
power_func m_pPowerFunc
function for overriding brightness when using FastLED.show();
fl::u32 m_nPowerData
max power use parameter
uint8_t calculate_max_brightness_for_power_mW(const CRGB *ledbuffer, uint16_t numLeds, uint8_t target_brightness, uint32_t 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(), m_nPowerData, and m_pPowerFunc.
Referenced by setMaxPowerInVoltsAndMilliamps().