I'm working on a project that requires a lcd menu system. Using the code at Tutorial: manage menu and LCD display with Arduino – Coagula – Giuseppe Di Cillo and 4 button switches, I have a working menu system.
Now I want to use a interrupt driven rotary encoder to avoid having to poll the button switches, thereby saving some CPU cycles.
I have wired up a rotary encoder with push button switch to include hardware debouncing (0.1uF capacitor, 10K? pullup resistors and Schmitt Trigger) and have it working perfectly using interrupts. Turning the encoder clockwise results in a counter incrementing with each click, counterclockwise decrements.
However I am confused about how to interface the counting from the rotary encoder to specific cases for the menu system.
I'm also a bit confused about implementing interrupt driven menu navigation instead of the existing polling button switches menu navigation.
Any suggestions on how to proceed would be most welcome.
Thanks in advance ![]()