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
Diff: Modules/module.h
- Revision:
- 13:9641bc42db92
- Parent:
- 11:96146db429de
- Child:
- 15:d1eaddb363be
--- a/Modules/module.h Sun Aug 10 16:01:43 2014 +0000 +++ b/Modules/module.h Mon Aug 11 19:11:43 2014 +0000 @@ -1,8 +1,6 @@ #ifndef __MODULE_H__ #define __MODULE_H__ -#include "Adafruit_RGBLCDShield.h" - #ifndef _countof #define _countof(a) (sizeof(a) / sizeof(a[0])) #endif @@ -10,28 +8,22 @@ class Module { public: - Module(Adafruit_RGBLCDShield & in_cLCD); + Module(Serial & in_cDisplay); virtual ~Module(); virtual bool canRefresh() { return false; } virtual void change ( - int in_nIndexX, - int in_nCursorY, + size_t in_nIndex, bool in_bUp ) { ; } - virtual int setCursor - ( - int in_nIndex, - int in_nCursorX, - int in_nCursorY - ) + virtual int getCursorOffset(size_t & inout_nIndex) { return -1; } virtual void show() = 0; protected: - Adafruit_RGBLCDShield & m_cLCD; + Serial & m_cDisplay; }; #endif /* __MODULE_H__ */