Code to interface with the MCP7940 Real time clock. Supports getting and setting the time in 24 hour format
Diff: MCP7490.h
- Revision:
- 1:8f330348d96b
- Parent:
- 0:36c08b11e691
- Child:
- 2:941a59078507
--- a/MCP7490.h Fri Jun 19 15:33:03 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -#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 \ No newline at end of file