Adjust the LCD_Menu to use the mBed Application board resources

Dependents:   class_project_main

Fork of SerialLCD_Menu by Mark Shuck

Committer:
mshuck
Date:
Sun Aug 04 17:19:36 2013 +0000
Revision:
4:343f2993a66b
Parent:
3:920157b558db
Child:
6:a28c1967bb83
Removed RPG and included push buttons

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pyeh9 1:84d263c8932d 1 #ifndef NAVIGATOR_H
pyeh9 1:84d263c8932d 2 #define NAVIGATOR_H
pyeh9 1:84d263c8932d 3
pyeh9 1:84d263c8932d 4 #include "mbed.h"
pyeh9 1:84d263c8932d 5 #include "Menu.h"
mshuck 3:920157b558db 6 #include "SerialLCD.h"
pyeh9 1:84d263c8932d 7
pyeh9 1:84d263c8932d 8 class Navigator {
pyeh9 1:84d263c8932d 9 private:
pyeh9 1:84d263c8932d 10
pyeh9 1:84d263c8932d 11 public:
mshuck 4:343f2993a66b 12 Navigator(Menu *, SerialLCD *);
pyeh9 2:2654dc659298 13 Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu
mshuck 4:343f2993a66b 14
mshuck 3:920157b558db 15 SerialLCD *lcd;
mshuck 4:343f2993a66b 16 bool lastButton, button;
pyeh9 1:84d263c8932d 17
pyeh9 1:84d263c8932d 18
pyeh9 2:2654dc659298 19 int bottom; // the index of the last item of current menu
pyeh9 2:2654dc659298 20 int cursorPos; // what selection the cursor points to
pyeh9 1:84d263c8932d 21 int cursorLine; // what line of the lcd the cursor is on. 1 = first line, 2 = second line
pyeh9 1:84d263c8932d 22
pyeh9 2:2654dc659298 23 void poll(); // repeatedly call this function to determine if RPG is being used
pyeh9 1:84d263c8932d 24 void moveUp();
pyeh9 1:84d263c8932d 25 void moveDown();
pyeh9 1:84d263c8932d 26 void printMenu();
pyeh9 1:84d263c8932d 27 void printCursor();
mshuck 4:343f2993a66b 28 void setButtons();
pyeh9 1:84d263c8932d 29 };
pyeh9 1:84d263c8932d 30
pyeh9 1:84d263c8932d 31 #endif