Baseline for testing
Diff: Navigator.h
- Revision:
- 3:8395f7ab6d3e
- Parent:
- 2:2654dc659298
--- a/Navigator.h Tue Mar 05 21:24:37 2013 +0000 +++ b/Navigator.h Thu Jul 25 00:42:49 2019 +0000 @@ -3,30 +3,36 @@ #include "mbed.h" #include "Menu.h" -#include "TextLCD.h" -#include "RPG.h" +#include "LCD.h" class Navigator { private: public: - Navigator(Menu *, RPG &, TextLCD *); + Navigator(Menu *, LCD *); + //Navigator(Menu *, RPG &, TextLCD *); Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu - RPG rpg; - TextLCD *lcd; + + LCD *lcd; bool lastButton, button; int direction; // 1 = CW, -1 = CCW + int top; // the index of the last item of current menu 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 + int cursorLine; // what line of the lcd the cursor is one - void poll(); // repeatedly call this function to determine if RPG is being used + void update(char cmd); // repeatedly call this function to determine if RPG is being used void moveUp(); void moveDown(); + void selectMenu(); void printMenu(); void printCursor(); + + void pageUp (); + void pageDown (); }; #endif \ No newline at end of file