LCD with Custom Push Buttons

I just got a 204ZFA LCD display. A link below is the wiring diagram. I am wondering if and where could push buttons be placed in the configuration. I want to have 4 push buttons to toggle between values, setpoints, read/write clock times, and alarm times, etc. I am going to be entering letters and numbers in my code via the buttons to save in the Arduino’s eeprom so will 4 push buttons even work for this application or will I need to use the LCD keypad that has 6 already soldered push buttons? Thank you

the 6 button link

If I remember correctly, it only uses pin A0 for all six buttons, but if you want to add more, then you should be able to use pins A1 - A4. Don't forget to have resistors for either pulling the pins up to Vcc or pulling them down to Gnd.

Thanks for the reminder about the resistors. In the first link I provided, I didnt see anything wiring to A0. So I am assuming, I wire up the button to A0 and the other 3 bottons to A1-A3? Not all 4 buttons are wired up to one input pin is it? I am mostly concerned about the lcd display in the first link. It doesnt have push buttons and I would like to add them. So do I need to wire to the Analog input of my arduino? If so, then to which connection of the lcd display? Thanks

Oh so you dont have the Lcd with the buttons, you just have a regular 16x2 Lcd. Well to add the buttons, you would need to write that part in yourself. Pins A0 - A3 should work for your buttons. They can be read in as either digital or analog, just make sure you specify A0 - A3 and not confuse them with pin 0 - 3.

There is a simple test sketch that you can use to test you buttons on those pins. It should be under the Digital examples.

you would need to write that part in yourself. Pins A0 - A3 should work for your buttons. They can be read in as either digital or analog, just make sure you specify A0 - A3 and not confuse them with pin 0 - 3.

Ok cool. Since I am using a Mega, I can use my Digital Pins since I got like 40 remaining.

There is a simple test sketch that you can use to test you buttons on those pins. It should be under the Digital examples.

I want to be able to push buttons to "navigate" through a menu so that I can write to alarm events, change PID set points , change the RTC clocktime, read sensor values, read/write t the ssid, pass, server, and the GET http string all to and from the eeprom memory.
So in order to be able to achieve this , many 'if' statements are needed so that the buttons are pressed based off the options chosen on the display. Doe this "tree" of logic all need to be inside the void loop ? Or can it be initiated when a button is pressed and it calls a function? This function is outside the loop. Thank you for your time

Is any one aware of any threads that assist in a navigational menu scheme so one can perform different tasks for different things? Thanks

Have you tried to incorporate the menu library which can be found in the arduino playground?

Thank you for pointing me in the right direction