Hi,
is there anybody who have a snippet of code to increase/decrease value of a variable by a rotary encoder.

I did one who works perfectly one a gray code based rotary encoder but the rotary encoder was so simple to use. 1 gray code change by shaft step.

The new one i have now do half of gray code change by shaft step.

example in clockwise turning:

initial state : 00
01
one step later: 11
10
one step later: 00

any idea ??

regards