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/TimeModule.h@13:9641bc42db92, 2014-08-11 (annotated)
- Committer:
- vtraveller
- Date:
- Mon Aug 11 19:11:43 2014 +0000
- Revision:
- 13:9641bc42db92
- Parent:
- 11:96146db429de
- Child:
- 15:d1eaddb363be
Created a scrollable menu system based on modules to work against the Adafruit RGB LCD library.; Modules can be created and installed as menu items with display, cursor and edit capabilities.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vtraveller | 10:3fcab08717fc | 1 | #ifndef __TIMEMODULE_H__ |
| vtraveller | 10:3fcab08717fc | 2 | #define __TIMEMODULE_H__ |
| vtraveller | 10:3fcab08717fc | 3 | |
| vtraveller | 10:3fcab08717fc | 4 | #include "module.h" |
| vtraveller | 10:3fcab08717fc | 5 | #include "RTclock.h" |
| vtraveller | 10:3fcab08717fc | 6 | |
| vtraveller | 10:3fcab08717fc | 7 | class TimeModule |
| vtraveller | 10:3fcab08717fc | 8 | : public Module |
| vtraveller | 10:3fcab08717fc | 9 | { |
| vtraveller | 10:3fcab08717fc | 10 | public: |
| vtraveller | 10:3fcab08717fc | 11 | TimeModule |
| vtraveller | 10:3fcab08717fc | 12 | ( |
| vtraveller | 13:9641bc42db92 | 13 | Serial & in_cDisplay, |
| vtraveller | 13:9641bc42db92 | 14 | RTclock & in_cRTclock |
| vtraveller | 10:3fcab08717fc | 15 | ); |
| vtraveller | 10:3fcab08717fc | 16 | virtual ~TimeModule(); |
| vtraveller | 10:3fcab08717fc | 17 | |
| vtraveller | 10:3fcab08717fc | 18 | virtual bool canRefresh() { return true; } |
| vtraveller | 11:96146db429de | 19 | virtual void change |
| vtraveller | 11:96146db429de | 20 | ( |
| vtraveller | 13:9641bc42db92 | 21 | size_t in_nIndex, |
| vtraveller | 11:96146db429de | 22 | bool in_bUp |
| vtraveller | 11:96146db429de | 23 | ); |
| vtraveller | 13:9641bc42db92 | 24 | virtual int getCursorOffset(size_t & inout_nIndex); |
| vtraveller | 10:3fcab08717fc | 25 | virtual void show(); |
| vtraveller | 10:3fcab08717fc | 26 | |
| vtraveller | 10:3fcab08717fc | 27 | protected: |
| vtraveller | 10:3fcab08717fc | 28 | RTclock & m_cRTclock; |
| vtraveller | 10:3fcab08717fc | 29 | }; |
| vtraveller | 10:3fcab08717fc | 30 | |
| vtraveller | 10:3fcab08717fc | 31 | #endif /* __TIMEMODULE_H__ */ |
