Set the maximum power to be used, given in milliwatts.
- Parameters
-
milliwatts | the max power draw desired, in milliwatts |
Definition at line 738 of file FastLED.h.
power_func m_pPowerFunc
function for overriding brightness when using FastLED.show();
uint32_t 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().