I am trying to make a datalogger with 8 temp sensor, 3 pressure sensors, RPM sensor. It is based on the Arduino Mega 2560 and with a Digole 240x64 graphic LCD.
I managed to use the screen, and make the datalogging on a micro SD card, but the problem is that i want to make the screen as a menu, where i can change between multiple "screens" with a small arrow on the screen and the following buttons "UP, DOWN, ENTER, ESC".
My plan is to use digitalpins for the buttons, because all my analogpins must be free for my sensors.
I have found several examples of LCD menu codes on the web. I have especially looked into Phi-menu | Liudr's Blog. Which have some of the thing i want, but the problems is that i am not that awesome a programmer as he is. His code is very complex, and also need to be updated to Arduino 1.0
So does anyone, have a more simple code that i can use to extend to my use.
A "menu" is simply some text printed on the LCD. There may be some state associated with that text, that defines what the up, down, left, right, do-si-do, etc. switches mean.
What part(s) of this are you having problems with?
but the problems is that i am not that awesome a programmer
I'm afraid that that attitude is not allowed here. You will only get to be ab awesome programmer when you get rid of that attitude.
Should i understand it as the arduino is still the "master" and the screen is the "slave" even though it might look the screen is controlling the arduino?
Should i understand it as the arduino is still the "master" and the screen is the "slave" even though it might look the screen is controlling the arduino?
Yes, because the screen is just a dumb output device. It is NOT controlling the Arduino.
I am working on similar project using 6 buttons, an LCD(16x2) with a menu.
For the menu I built several functions which are button press count dependent. Still roughing things in at the moment so I make no guarantee as to functionality but this is a simple test function I use to build my menu. It will get you started and you can pick it up from there.