We plan to use 4x20 OLED character LCD and use 4 keypad buttons: "2" for UP, "8" for DOWN, "5" for ENTER/SELECT, and "*" for MAIN MENU, but we don't have any previous knowledge of creating such a menu system
Use something that fit your requirements and modify.
arduino menu library - Google Search
Start by figuring out what functions you need. Example: Store messages with a print statement in a single function. Then you can do seperate functions where a function simply prints a message, a different function for the next message etc. Assuming setup() is ok, write a simple loop where you call a function, then delay(), Normally do not use delay in your code as it locks everything up but here there is nothing else other then the keyboard which will not function during the delay. Then the next function etc. A message called "void seven () { "Serial.print(F("\tKey 7 was pressed!\n"));|". That will tab the message over, print it, then go to the next line. The \t is shortcut for tab and \n is a shortcut for a new line. The (F( starts the program memory print and the )) ends it. This does not use RAM for messages. Now that you have something to show work on the keyboard and you can use a case: statement to select the message depending on the button pressed. Do not to put a default bad message thing in. Enjoy the time with your son, I hope this helps.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.