Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void checkEncoder(){
- if(digitalRead(ENC_A) ^ digitalRead(ENC_B)) count++; //A XOR B
- else count--;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement