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@11:96146db429de, 2014-08-10 (annotated)
- Committer:
- vtraveller
- Date:
- Sun Aug 10 15:45:03 2014 +0000
- Revision:
- 11:96146db429de
- Parent:
- 10:3fcab08717fc
- Child:
- 13:9641bc42db92
Added support for changing time.
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 | 10:3fcab08717fc | 13 | Adafruit_RGBLCDShield & in_cLCD, |
| vtraveller | 10:3fcab08717fc | 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 | 11:96146db429de | 21 | int in_nIndexX, |
| vtraveller | 11:96146db429de | 22 | int in_nCursorY, |
| vtraveller | 11:96146db429de | 23 | bool in_bUp |
| vtraveller | 11:96146db429de | 24 | ); |
| vtraveller | 10:3fcab08717fc | 25 | virtual int setCursor |
| vtraveller | 10:3fcab08717fc | 26 | ( |
| vtraveller | 10:3fcab08717fc | 27 | int in_nIndex, |
| vtraveller | 10:3fcab08717fc | 28 | int in_nCursorX, |
| vtraveller | 10:3fcab08717fc | 29 | int in_nCursorY |
| vtraveller | 10:3fcab08717fc | 30 | ); |
| vtraveller | 10:3fcab08717fc | 31 | virtual void show(); |
| vtraveller | 10:3fcab08717fc | 32 | |
| vtraveller | 10:3fcab08717fc | 33 | protected: |
| vtraveller | 10:3fcab08717fc | 34 | RTclock & m_cRTclock; |
| vtraveller | 10:3fcab08717fc | 35 | }; |
| vtraveller | 10:3fcab08717fc | 36 | |
| vtraveller | 10:3fcab08717fc | 37 | #endif /* __TIMEMODULE_H__ */ |
