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: SX1276Lib AdaFruit_RGBLCD MCP23017 mbed
Fork of AdaFruit_RGBLCD by
Modules/module.h
- Committer:
- vtraveller
- Date:
- 2014-08-14
- Revision:
- 17:731a47339cb8
- Parent:
- 15:d1eaddb363be
File content as of revision 17:731a47339cb8:
#ifndef __MODULE_H__ #define __MODULE_H__ #ifndef _countof #define _countof(a) (sizeof(a) / sizeof(a[0])) #endif class Module { public: enum EModes { eModeMenu = 0, eModeSelect, eModeChange, eModeLast }; public: Module(Serial & in_cDisplay); virtual ~Module(); virtual bool canRefresh() { return false; } virtual void change ( size_t in_nIndex, bool in_bUp ) { ; } virtual int getCursorOffset(size_t & inout_nIndex) { return -1; } virtual void onModeChange(EModes in_eMode) { ; } virtual void show(bool in_bRefresh) = 0; protected: Serial & m_cDisplay; }; #endif /* __MODULE_H__ */