|
FastLED 3.10.8
|
| fl::u32 power_ratio_of_255 | ( | fl::u32 | num, |
| fl::u32 | den ) |
min(255, floor(255 * num / den)) for den > 0, computed in 32-bit arithmetic.
The limiter's brightness ratio; declared for its tests.
Definition at line 386 of file power_mgt.cpp.hpp.
References FL_NO_EXCEPT.
Referenced by brightness_within_budget().
Here is the caller graph for this function: