There must be an easy algorithm? I don't know it. Anyone?
My newer library is on another thread here. Many improvements. More coming. PWM to make it smoother. Non-blocking to free up the processor for other tasks. Higher voltage to increase performance without getting hot...
Thanks for your compliments and posting my old code on Gist. I can update that site now? Will do it with a few different versions.
Viewed 6900 times exactly!