开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Help with rotary encoder code, please, anyone?


 

?
Hi Don:
Why do you use PCICR |= (1 << PCIE2);//Interrupt setup ?to enable interrupt insted of AttachInterrupt?
73 - LU5DNM
?
Norberto Modanesi
San Nicolás

----- Original Message -----
Sent: Sunday, July 30, 2017 4:58 PM
Subject: Re: [BITX20] Help with rotary encoder code, please, anyone?

John,

Rotary encoders by using polling has some difficulties, as you now realize. Interrupts work for me. Attached is a simple example (REserial.ino) that just reads direction to your serial monitor as you were doing. Also attached is a BITX Raduino application that demonstrates a practical sketch (EZ_RE_S_P.ino). Does this help? If you have any questions my email is ND6T@... and I would be glad to try to assist.
73,
Don,ND6T

Join [email protected] to automatically receive all group messages.