
I turn the encoder to the right, the program counts well, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
But if I turn the encoder to the left side, the program counts ...16,15,14,13,12,10,90,80,70,60,50,40,30,20,10,01

Someone might help me?´,
PD:Forgive my ignorance, I am a new user.