i'm new to this forum and Arduino as such. i'm willing to create a menu driven program for my aquarium controller:
the most important point that has to be taken care of is that it should have the ability to edit the program using keys or 4x4 matrix keyboard for eg. editing the time on the clock, or changing the alarm ,etc.
i have tried editing some of the programs on net to customize to my needs. but the problem is i'm getting too many errors and i'm unable to
debug it. below is the code, i would be glad if i can get some solutions to my problems. thanks in advance.
the code along with error report is included in with the attachment
To fix the first compilation error, you need to replace WProgram.h with Arduino.h
You really need to solve the compilation problems yourself, this is an essential step when you write code.
People here may help you with the logic, but simple compilation errors is a no-no.
I'm not going to try to tackle all that in one go. It's quite a big sketch that doesn't even compile.
Put that aside and start again, this time tackling the problem in small steps.
Write a sketch that reads from the buttons, get it to compile and test it to make sure it reads the buttons correctly.
Write another sketch that displays text on your display, get it to compile and test it to make sure it displays correctly.
If you're using a clock that suggests that you may have an RTC module. If so, write a sketch that initialises that, get it to compile and confirm that you can read and adjust the time correctly.
Write a sketch that uses the button input to provide a menu system. I'd suggest using a state machine to implement the menu system with the state indicating which menu is currently being displayed.
Finally, go back to your original sketch and bring in these working elements one by one so that you have a sketch that reads the buttons, displays whatever you want, and provides the menu system you want.