OK, So once you try that, you'll realize that the RAMP is not linear.
It's more a function of the LED output than the PWM routine itself.
Changing it to 10-bit, and creating a lookup table that matches the LED brightness, seems to work. But I'm sure someone can come up with a better idea.
<br>





Bookmarks