atmega8
 Guru
 Joined: 19/11/2013 Location: GermanyPosts: 738 |
| Posted: 07:38am 04 Nov 2022 |
|
|
|
Works fine for me with an ALPS Encoder:
'Rotary Encoder SETPIN gp3, DIN, pullup SETPIN gp2, INTL, RInt ' Play around with INTL or INTH DO LOOP SUB RInt IF PIN(gp3) = 0 then counter = counter + 1 ELSE counter = counter - 1 ENDIF print counter; |