Thank you for your pull-request, but there are several problems.
your code ist not mergeable to the new version
I would prefer another solution:
There has to be a defined max-brightness in the user_config.h. The max-brightness depends on the count of LEDs and the power supply. Each (WS2812b) LED needs 0.06A on full brightness in white color. There has to be a possibility to set the brightness from 0 to max-brightness. But in the UI I would prefer a range beween 0 and 100. So the setBrightness parameter has to be calculated (like: MAX_BRIGHTNESS * Config.brightness / 100).
Thank you for your pull-request, but there are several problems.
your code ist not mergeable to the new version
I would prefer another solution: There has to be a defined max-brightness in the user_config.h. The max-brightness depends on the count of LEDs and the power supply. Each (WS2812b) LED needs 0.06A on full brightness in white color. There has to be a possibility to set the brightness from 0 to max-brightness. But in the UI I would prefer a range beween 0 and 100. So the setBrightness parameter has to be calculated (like: MAX_BRIGHTNESS * Config.brightness / 100).
I hope you understand what I mean :)