MAXIM DS3231 accurate Real Time Clock Library

Dependents:   I2C-LCD-DHT22 wifigpslcd HomeStatus project ... more

Files at this revision

API Documentation at this revision

Comitter:
cromda
Date:
Sat Dec 22 19:58:42 2012 +0000
Parent:
1:84ccc64067d8
Commit message:
Doc

Changed in this revision

DS3231.h Show annotated file Show diff for this revision Revisions of this file
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)