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

◆ setMaxPowerInMilliWatts()

void CFastLED::setMaxPowerInMilliWatts ( uint32_t milliwatts)
inline

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

Parameters
milliwattsthe 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();
Definition FastLED.h:359
uint32_t m_nPowerData
max power use parameter
Definition FastLED.h:358
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...
Definition power_mgt.cpp:95

References calculate_max_brightness_for_power_mW(), m_nPowerData, and m_pPowerFunc.

Referenced by setMaxPowerInVoltsAndMilliamps().

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