Working Version of the Real Time Clock module DS1307.
Dependents: Rtc_Ds1307_Sample TAREA_5_PROCESADORES Rtc_Ds1307_lcd_alarma Rtc_Ds1307_Reloj_con_alarma_aplazable ... more
This is my implementation of the DS1307.
I plan to add functionality which will make use of the OSC Input and which will increment the time continuously. A query to the module will then only have to be made when the MBED has been powered down.
Diff: Rtc_Ds1307.cpp
- Revision:
- 4:d2cc690aaac7
- Parent:
- 3:e89d63f3342e
- Child:
- 5:30531f2121a2
--- a/Rtc_Ds1307.cpp Sun Jun 23 11:26:26 2013 +0000 +++ b/Rtc_Ds1307.cpp Sun Jun 23 16:29:35 2013 +0000 @@ -1,7 +1,8 @@ /* Rtc_Ds1307.cpp */ #include "Rtc_Ds1307.h" -#define DEBUG +//#define DEBUG +#undef DEBUG #include "debug.h" const char *Rtc_Ds1307::m_weekDays[] = { "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" };