Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
Diff: MenuManager.h
- 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;
