Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9
Fork of Menu by
Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9
Navigator.h
- Committer:
- pyeh9
- Date:
- 2013-03-05
- Revision:
- 1:84d263c8932d
- Child:
- 2:2654dc659298
File content as of revision 1:84d263c8932d:
#ifndef NAVIGATOR_H #define NAVIGATOR_H #include "mbed.h" #include "Menu.h" #include "TextLCD.h" #include "RPG.h" class Navigator { private: public: //Navigator(Menu &, RPG &, TextLCD &); Navigator(Menu *root, RPG &, TextLCD *lcd); Menu *activeMenu; RPG rpg; TextLCD *lcd; bool lastButton, button; int direction; int bottom; int cursorPos; // what selection the cursor points to int cursorLine; // what line of the lcd the cursor is on. 1 = first line, 2 = second line void poll(); void moveUp(); void moveDown(); void printMenu(); void printCursor(); void update(); }; #endif