|
FastLED 3.9.15
|
| uint8_t calculate_max_brightness_for_power_vmA | ( | const CRGB * | ledbuffer, |
| uint16_t | numLeds, | ||
| uint8_t | target_brightness, | ||
| uint32_t | max_power_V, | ||
| uint32_t | max_power_mA ) |
Determines the highest brightness level you can use and still stay under the specified power budget for a given set of LEDs.
| ledbuffer | the LED data to check |
| numLeds | the number of LEDs in the data array |
| target_brightness | the brightness you'd ideally like to use |
| max_power_V | the max power in volts |
| max_power_mA | the max power in milliamps |
Definition at line 91 of file power_mgt.cpp.
References calculate_max_brightness_for_power_mW().
Here is the call graph for this function: