Updated Adafruit Library

Fork of Adafruit_RTCLib by Neal Horman

Revision:
2:f372b273d88f
Parent:
1:2c4e81ecda67
diff -r 2c4e81ecda67 -r f372b273d88f DS1307.h
--- a/DS1307.h	Wed Jul 18 01:28:21 2012 +0000
+++ b/DS1307.h	Thu Jun 08 15:26:26 2017 +0000
@@ -13,19 +13,20 @@
 
 #include "mbed.h"
 #include "DateTime.h"
+#include "SoftI2C.h"
 
 // RTC based on the DS1307 chip connected via I2C
 class RtcDs1307
 {
 public:
-    RtcDs1307(I2C &i2c);
+    RtcDs1307(SoftI2C &i2c);
     bool adjust(const DateTime& dt);
     bool isRunning();
     DateTime now();
     bool commit();
     uint8_t &operator[](uint8_t i) { return mRam[(i<sizeof(mRam)-1 ? i+1 : 0)]; };
 protected:
-    I2C &mI2c;
+    SoftI2C &mI2c;
     uint8_t mRam[1+56]; // device register address + 56 bytes
 };