Hi, SJ
The light changes are perceived in an exponential evolution ...
1,2,4,8,16 ... etc
so, just multiply the Dutycycle per 2 for each loop instead of adding 1 ...
May be you'll have to use little trickery to increase the allowable steps number. i.e use LONGs and scale them down to 8 or 10 bits ( HPWM10 from Darrel's goodies ! )
the changes will then be smoother ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks