|
FastLED 3.9.15
|
| fl::u8 calculate_max_brightness_for_power_mW | ( | const CRGB * | ledbuffer, |
| fl::u16 | numLeds, | ||
| fl::u8 | target_brightness, | ||
| fl::u32 | max_power_mW ) |
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_mW | the max power draw desired, in milliwatts |
Definition at line 192 of file power_mgt.cpp.hpp.
References calculate_unscaled_power_mW(), map_power_value(), scale_power_for_brightness(), and unmap_power_value().
Referenced by calculate_max_brightness_for_power_vmA(), and CFastLED::setMaxPowerInMilliWatts().
Here is the call graph for this function:
Here is the caller graph for this function: