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