Adjust the LCD_Menu to use the mBed Application board resources
Dependents: class_project_main
Fork of SerialLCD_Menu by
Diff: Navigator.cpp
- Revision:
- 7:9b0298adab99
- Parent:
- 6:a28c1967bb83
- Child:
- 8:a6dc9b1525c7
- Child:
- 10:379a279cd90c
--- a/Navigator.cpp Fri Aug 30 01:16:16 2013 +0000 +++ b/Navigator.cpp Fri Aug 30 01:22:00 2013 +0000 @@ -26,19 +26,19 @@ void Navigator::printMenu() { lcd->cls(); - lcd->locate(4,0); + lcd->locate(10,0); if(bottom == 1){ // the current Menu only has one selection lcd->printf("%s", activeMenu->selections[0].selText); } else { if(cursorLine == 2){ // moving down in menu lcd->printf("%s", activeMenu->selections[cursorPos-1].selText); - lcd->locate(4,13); // Sparkfun Serial LCD based on PIC16LF88 + lcd->locate(10,13); // Sparkfun Serial LCD based on PIC16LF88 lcd->printf("%s", activeMenu->selections[cursorPos].selText); } else { // moving up in menu lcd->printf("%s", activeMenu->selections[cursorPos].selText); - lcd->locate(4,13); // Sparkfun Serial LCD based on PIC16LF88 + lcd->locate(10,13); // Sparkfun Serial LCD based on PIC16LF88 lcd->printf("%s", activeMenu->selections[cursorPos+1].selText); } }