encoder troubles

10-bit pwm or analog output?