DS3231 driver with timestamp string function
Fork of DS3231 by
Diff: DS3231.h
- Revision:
- 2:6718c4fabf95
- Parent:
- 1:84ccc64067d8
- Child:
- 3:f56cd929da3f
diff -r 84ccc64067d8 -r 6718c4fabf95 DS3231.h --- a/DS3231.h Sat Dec 22 19:56:16 2012 +0000 +++ b/DS3231.h Sat Dec 22 19:58:42 2012 +0000 @@ -33,6 +33,8 @@ RTC.setI2Cfrequency(400000); //RTC.writeRegister(DS3231_Aging_Offset,0); // uncomment to set Aging Offset 1LSB = approx. 0.1 ppm according from datasheet = 0.05 ppm @ 21 °C from my measurments + + RTC.convertTemperature(); int reg=RTC.readRegister(DS3231_Aging_Offset); if (reg>127)