matho
The Braumiser
- Joined
- 30/4/08
- Messages
- 1,403
- Reaction score
- 142
I like your modal code, very good job and I see how it will replicate the Braumeister almost perfectly. I really love how you have handled the buttons, very simple!
I am curious to how much ram gets used in your program because every string is loaded into memory and you have nearly 700 characters which get displayed on the LCD.
If you are using arduino 1.0 then it is possible to load them into flash memory (it increases program size, but doesn't use anywhere near this much ram.) using the F().
eg.
lcd.print(" Add Hops");
becomes
lcd.print(F(" Add Hops"));
Going through your code it's probably not a problem, but just a note... I am really finicky about reducing ram requirements because I have been bitten in the past with some huge data transfer programs.
EDIT:
Where you use delays (eg for the 1_sec buttons), have you considered using a while and reading millis() instead? This way, if the user changes their mind or goes from one button to another there is no risk of having a dead delay.
thanks for the ideas edak I'll keep them in mind I'm still learning.
cheers steve