The brightness of LEDs is not a linear function. E.g. changing PWM from 1/255 to 2/255 will roughly experience a doubling of the amount of light for our eyes. Check https://en.wikipedia.org/wiki/Gamma_correction for more details.
I added square root function to correct brightness control input done via web server. This is a good enough correction to control low brightness.
The brightness of LEDs is not a linear function. E.g. changing PWM from 1/255 to 2/255 will roughly experience a doubling of the amount of light for our eyes. Check https://en.wikipedia.org/wiki/Gamma_correction for more details.
I added square root function to correct brightness control input done via web server. This is a good enough correction to control low brightness.