Hi im trying to implement a LCD (16x2) menu into a project ive already got working. It would benefit greatly from a LCD menu. Ive got the menu structure working, and the options working. there's just a little tweak that i cant seem to work out. ive been trying for days and now its driving me mental.
the menu structure is
main menu - start
- Setup - Brightness - 0%
| - ...
| - 100%
- PumpMax - 0%
- ...
- 100%
I just want to remove that "main menu" bit so that the root of the menu has start and setup. even if it just automatically moves right. Ive tried adding "menu.moveRight();" into the " if(newMenuItem.getName()=="MenuRoot") { }" (at the top of void menuChanged) and that hasnt worked.
ive looked at the library but thats way outta my league.
This is where i am thinking the changes need to be made (?)
void menuChanged(MenuChangeEvent changed){
MenuItem newMenuItem=changed.to; //get the destination menu
lcd.setCursor(0,1); //set the start position for lcd printing to the second row
if(newMenuItem.getName()=="MenuRoot") {
lcd.setCursor(0,0);
lcd.print("Still Controller ");
lcd.setCursor(0,1);
lcd.print("> Menu ");
delay(500);
}
changed into...
if(newMenuItem.getName()=="MenuRoot") {
menu.moveRight();
}