Code to interface with the MCP7940 Real time clock. Supports getting and setting the time in 24 hour format

Revision:
0:36c08b11e691
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MCP7490.h	Fri Jun 19 15:33:03 2015 +0000
@@ -0,0 +1,35 @@
+#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