menu v1
Fork of Menu by
Diff: Navigator.h
- Revision:
- 3:3cdd377f5899
- Parent:
- 2:2654dc659298
--- a/Navigator.h Tue Mar 05 21:24:37 2013 +0000 +++ b/Navigator.h Wed May 13 11:40:22 2015 +0000 @@ -1,23 +1,26 @@ #ifndef NAVIGATOR_H #define NAVIGATOR_H - +#include "SMARTGPU.h" #include "mbed.h" #include "Menu.h" -#include "TextLCD.h" +// #include "TextLCD.h" #include "RPG.h" - +#include "SMARTGPU.h" class Navigator { private: public: - Navigator(Menu *, RPG &, TextLCD *); + Navigator(Menu *, RPG &, SMARTGPU *); Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu RPG rpg; - TextLCD *lcd; + SMARTGPU *lcd; + bool lastButton, button; int direction; // 1 = CW, -1 = CCW + int hor; + int courb; int bottom; // the index of the last item of current menu 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