Adjust the LCD_Menu to use the mBed Application board resources
Dependents: class_project_main
Fork of SerialLCD_Menu by
Diff: Navigator.h
- Revision:
- 4:343f2993a66b
- Parent:
- 3:920157b558db
- Child:
- 6:a28c1967bb83
--- a/Navigator.h Sun Aug 04 15:18:35 2013 +0000 +++ b/Navigator.h Sun Aug 04 17:19:36 2013 +0000 @@ -4,19 +4,17 @@ #include "mbed.h" #include "Menu.h" #include "SerialLCD.h" -#include "RPG.h" class Navigator { private: public: - Navigator(Menu *, RPG &, SerialLCD *); + Navigator(Menu *, SerialLCD *); Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu - RPG rpg; + SerialLCD *lcd; + bool lastButton, button; - bool lastButton, button; - int direction; // 1 = CW, -1 = CCW int bottom; // the index of the last item of current menu int cursorPos; // what selection the cursor points to @@ -27,6 +25,7 @@ void moveDown(); void printMenu(); void printCursor(); + void setButtons(); }; #endif \ No newline at end of file