Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DS3231 by
Revision 2:6718c4fabf95, committed 2012-12-22
- Comitter:
- cromda
- Date:
- Sat Dec 22 19:58:42 2012 +0000
- Parent:
- 1:84ccc64067d8
- Child:
- 3:f56cd929da3f
- Commit message:
- Doc
Changed in this revision
| DS3231.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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)
