Serial LCD Menu system with buttons instead of RPG. Based on Peihsun Yeh's work
Fork of Menu by
Diff: Navigator.h
- Revision:
- 4:343f2993a66b
- Parent:
- 3:920157b558db
diff -r 920157b558db -r 343f2993a66b Navigator.h --- 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