I am pretty new to Arduinos but I want to get a menu on a 16x2 LCD controlled by a rotary encoder. I have looked online but I can't get any of them to work. for example I want 1 for temp and 1 for humidity. I don't want someone to code this for me but can someone please send me in the right direction.
What part are you having trouble with?
The general approach would be to first make sure you could display simple text on the screen.
And make sure you can read a rotary encoder
And then put it together by changing what text you send to the display based on the rotary encoder's actions.
Here's what I did for it - but somehow I suspect that my code won't make life any easier for you - LEDCTRLA/DriftAnimatePlus.ino at master · SpenceKonde/LEDCTRLA · GitHub
A few thoughts - I separate the functionality of the menu/user interface from the LCD - when the first part has decided that the menu should change, I set a flag, and check for it in the LCD update function (this was done because updating the LCD every pass through loop made it flicker from the constant clearing and redrawing, and also slowed down the refresh of the leds; in this case I really cared about that because in some of the animation modes, with 200 LEDs at highest speed I am right on the edge of missing RF messages)
Thanks for the quick response!
I know how to use the liquidcrystal library but i'm having trouble on how to get the rotary encoder to move the menu selection.
Have you managed to get your LCD to display anything yet?
Familiar yourself with this first: