Code to interface with the MCP7940 Real time clock. Supports getting and setting the time in 24 hour format
MCP7490.h
- Committer:
- MichaelW
- Date:
- 2015-06-19
- Revision:
- 0:36c08b11e691
File content as of revision 0:36c08b11e691:
#ifndef __MCP7490_H__ #define __MCP7490_H__ #include "mbed.h" class MCP7490{ public: MCP7490(PinName sda, PinName scl); MCP7490(); int getTime(); int Day(); int Month(); int Year(); int Hour(); int Minutes(); int Seconds(); int MilliSeconds(); private: int _Day; int _Month; int _Year; int _Hour; int _Minutes; int _Seconds; int _MilliSeconds; }; #endif