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.

Dependents:   AdaFruit_RGBLCD

Revision:
3:ed1628b05d37
Parent:
2:3dc63e48cb5d
Child:
4:04a51e4dbf4c
--- a/RTclock.cpp	Sat Aug 09 09:54:36 2014 +0000
+++ b/RTclock.cpp	Sat Aug 09 09:59:38 2014 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "RTclock.h"
 
-const char * RTclock::m_aWeekDays[] = { "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" };
+const char * RTclock::m_aWeekDays[] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
 
 RTclock::RTclock(PinName in_nSDA, PinName in_nSCL, bool in_bHiSpeed)
     : RTclock_parent(in_nSDA,in_nSCL)