First of all, I fully understand that the code I have written for this project is laughable to anyone with experience coding. I also want to say that after reading through much of the forums, I am a bit nervous to post here at all. I'm sure to many of you on here this question I have is "DUMB" but I'm going to ask anyway... I do want everyone to understand that I am only asking for guidance and I'm NOT looking for someone to do this for me. I want to learn what I'm doing wrong, and what I'm doing right.
Okay, I have attached the code that I have written to turn off and on dosing pumps at a specified time. Please ignore the commented sections that have to do with a temp. sensor, that's something else I'm working on... There is a 16x2 LCD that displays the time and my business name. The time is kept by a DS1307.
I'm sure that I'm leaving out information that is needed but here's what I'm trying to do now. I have 5 push buttons that I would like to use to set the time at which the pumps turn on. I want to be able to press the "Menu" button and change the display to the "motor on/off time" and once I'm done adjusting, have it go back to displaying the "Time Now".
I know that I'm making this much more difficult than it needs to be so any help will be great. Thank you for your time.
Attempt_at_AMPM.ino (6.66 KB)