I had to gave up with that code, because on a larger physical size, discrete steps were quite visible.
So I did another code instead, which works fine. Here's example.




But I have a question. What if I use faster PIC, something from 18F series, running at 64mhz.
Maybe it is possible to mod this code to have at least 10 bit resolution, instead of 8 ?