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 Peihsun Yeh

Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9

Revision:
3:cfc36b42ae75
Parent:
2:2654dc659298
Child:
4:67097127da6c
--- a/Navigator.h	Tue Mar 05 21:24:37 2013 +0000
+++ b/Navigator.h	Thu Jan 01 22:27:30 2015 +0000
@@ -4,16 +4,16 @@
 #include "mbed.h"
 #include "Menu.h"
 #include "TextLCD.h"
-#include "RPG.h"
+//#include "RPG.h"
 
 class Navigator {   
     private: 
                
     public:
-        Navigator(Menu *, RPG &, TextLCD *);
+        Navigator(Menu *, /*RPG &,*/ TextLCD_Base *);
         Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu
-        RPG rpg;
-        TextLCD *lcd; 
+//        RPG rpg;
+        TextLCD_Base *lcd; 
         
         bool lastButton, button;
         int direction;  // 1 = CW, -1 = CCW
@@ -25,6 +25,7 @@
         void poll();    // repeatedly call this function to determine if RPG is being used
         void moveUp();
         void moveDown();
+        void select();
         void printMenu();
         void printCursor();
 };