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
Modules/DateModule.h
- Committer:
- vtraveller
- Date:
- 2014-10-10
- Revision:
- 28:fbcd3bac0cd7
- Parent:
- 24:e67c825ec6d8
File content as of revision 28:fbcd3bac0cd7:
#ifndef __DATEMODULE_H__
#define __DATEMODULE_H__
#include "module.h"
#include "RTclock.h"
class DateModule
: public Module
{
public:
DateModule
(
Serial & in_cDisplay,
RTclock & in_cRTclock
);
virtual ~DateModule();
virtual bool canRefresh() { return true; }
virtual void change
(
size_t in_nIndex,
bool in_bUp
);
virtual int getCursorOffset(size_t & inout_nIndex);
virtual void show(bool in_bRefresh);
protected:
RTclock & m_cRTclock;
tm m_sLastTM;
};
#endif /* __DATEMODULE_H__ */
