Hey guys!
Im doing a project in school where im using a menu on an LCD display and four buttons to navigate. The microcontroler im using is Arduino. I got the program for the LCD from Tutorial: manage menu and LCD display with Arduino – Coagula – Giuseppe Di Cillo, and it is working perfectly! But i want to combine it with a photoresistor, so when i press a button and the value is to high, the screen will say "Make the room darker" or something like that. And if the value is low enough it will proceede to submenus.
I am pretty new to programing, but I've figured out how to read the pin. The part I'm not sure is where to place de "decisions" depending on the value. And if i should be using "if" statement.
Thanks for the help, but it's not really what im looking for.
When i press the a button on the menu, i want it to either "block" the menu and write "make it darker", but if its dark enough it will proceede to submenu.
I'm sorry if im pretty slow :~