[Dprglist] Wheel Encoders

Pat Caron patcaron at mail.com
Wed Mar 8 08:19:03 PST 2023


Thanks David A. for the "exclusive OR" description last night.
Sometimes it's easy to miss the simple things.
My encoders are now working!

...Pat

void isrL() {   if(readB != readA) {     Lcount++;   } else {     Lcount--;
  } } void isrR() {   if (readA == readB) {     Rcount++;   } else {
Rcount--;   } }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dprg.org/pipermail/dprglist-dprg.org/attachments/20230308/f6715709/attachment.htm>


More information about the DPRGlist mailing list