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.
History
Fixed bug where tm struct used a month range of 0-11 and the DS3231 uses a range 1-12.
2015-01-24, by vtraveller [Sat, 24 Jan 2015 15:59:29 +0000] rev 17
Fixed bug where tm struct used a month range of 0-11 and the DS3231 uses a range 1-12.
Fixed midnight bug.; Fixed minutes going beyond 59.
2014-10-09, by vtraveller [Thu, 09 Oct 2014 14:04:25 +0000] rev 16
Fixed midnight bug.; Fixed minutes going beyond 59.
Fix for month.
2014-10-08, by vtraveller [Wed, 08 Oct 2014 16:57:04 +0000] rev 15
Fix for month.
Fix for handling month.
2014-10-08, by vtraveller [Wed, 08 Oct 2014 16:41:28 +0000] rev 14
Fix for handling month.
Moved address for RTclock out of class.
2014-09-03, by vtraveller [Wed, 03 Sep 2014 06:22:51 +0000] rev 13
Moved address for RTclock out of class.
Fixed bug in buffer caused by sizeof()
2014-09-03, by vtraveller [Wed, 03 Sep 2014 06:01:13 +0000] rev 12
Fixed bug in buffer caused by sizeof()
Updated read / write types.
2014-09-02, by vtraveller [Tue, 02 Sep 2014 08:11:26 +0000] rev 11
Updated read / write types.
Changed to use shared I2C object
2014-09-02, by vtraveller [Tue, 02 Sep 2014 07:12:09 +0000] rev 10
Changed to use shared I2C object
Added support for DS3231
2014-08-30, by vtraveller [Sat, 30 Aug 2014 15:55:28 +0000] rev 9
Added support for DS3231
Added helper functions for setting mbed internal clock without DS1307 device present.
2014-08-11, by vtraveller [Mon, 11 Aug 2014 19:10:09 +0000] rev 8
Added helper functions for setting mbed internal clock without DS1307 device present.