Justin Howard / Mbed 2 deprecated AdaFruit_RGBLCD

Dependencies:   AdaFruit_RGBLCDShield MCP23017 mbed RTclock

Dependents:   SX1276_GPS

Fork of MCP_test by Wim Huiskamp

Revision:
17:731a47339cb8
Parent:
13:9641bc42db92
Child:
20:93c70a1869ee
--- a/MenuManager.h	Tue Aug 12 04:28:23 2014 +0000
+++ b/MenuManager.h	Thu Aug 14 10:47:27 2014 +0000
@@ -2,16 +2,7 @@
 #define __MENUMANAGER_H__
 
 class MenuManager
-{
-protected:    
-    enum EModes
-    {
-        eModeMenu = 0,
-        eModeSelect,
-        eModeChange,
-        eModeLast
-    };
-    
+{    
 public:
     MenuManager
     (
@@ -31,6 +22,7 @@
         bool        in_bCursor,
         bool        in_bBlink
     );
+    void setMode(Module::EModes in_eMode);    
     void showModules(bool in_bRefresh = false);
     void showTracking(bool in_bShow);
     void updateDisplay();
@@ -39,7 +31,7 @@
     Module **               m_pModules;
     size_t                  m_nModules;    
     Adafruit_RGBLCDShield & m_cLCD;
-    EModes                  m_eMode;
+    Module::EModes          m_eMode;
     size_t                  m_nMenuPos;
     size_t                  m_nIndex;
     int                     m_nCursorX, m_nCursorY;