Simple RTC class based on DS1307. Emphasis on simple. Allows you to run at 100k or 400k Hz (for newer DS1307 capable devices). MapTime() allows you to set the time() service to the same as the RTC. Uses struct tm throughout so you can use traditional time functions for manipulation.

Dependents:   AdaFruit_RGBLCD

Revision:
13:1ccadbd4c1bd
Parent:
11:49b987f6ae26
--- a/RTclock.h	Wed Sep 03 06:01:13 2014 +0000
+++ b/RTclock.h	Wed Sep 03 06:22:51 2014 +0000
@@ -25,6 +25,7 @@
                             RTclock
                             (
                                 I2C &               in_cI2C,
+                                uint8_t             in_nAddress,
                                 EClockType          in_eClockType
                             );
     virtual                 ~RTclock();
@@ -64,6 +65,7 @@
     static  const char *    m_aWeekDays[];              // Days of the week    
             bool            m_bTwelveHour;
             I2C &           m_cI2C;
+            uint8_t         m_nAddress;
             EClockType      m_eClockType;
 };