开云体育

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

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


 

开云体育

It came from an example.? It worked immediately so I left it?

It deals with the registers directly.

So, sorry I can't answer your question, and it is a good one!

I guess we could find the code in AttachInterrupt in the library to see what it does?

I added #defines and made version 1.09 into a conditional assembly file.?? That was what I was trying to explain, not

to have a fully working version.

I think any version could be now done easily.? I have 4 line LCDs, but not in my nice radio case.

I think that would be the answer so all the new features that use line 2 would not get written over by the Step display.

Or, I will have to share line 2 with the step display.? It would be easier by just adding lines.

Mike

?

On 7/30/2017 3:51 PM, Norberto Modanesi wrote:
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

-- 
Mike Hagen, WA6ISP
10917 Bryant Street
Yucaipa, Ca. 92399
(909) 918-0058
PayPal ID  "MotDog@..."
Mike@...

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