Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FastLED/FastLED
/ scale_power_for_brightness
Function
scale_power_for_brightness
src/power_mgt.cpp.hpp:126–128 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
124
}
125
126
fl::u32 scale_power_for_brightness(fl::u32 total_mW, fl::u8 brightness) {
127
return fl::scale32by8(total_mW, map_power_value(brightness));
128
}
129
130
/// @}
131
Callers
2
getEstimatedPowerInMilliWatts
Method · 0.85
calculate_max_brightness_for_power_mW
Function · 0.85
Calls
1
map_power_value
Function · 0.85
Tested by
no test coverage detected