un programa que prueba que el DS3231 funciona bien en una FRDMKL25Z
Diff: ds3231.cpp
- Revision:
- 6:e8850ad15893
- Parent:
- 5:61dfe2690360
- Child:
- 7:0551d7e7c13f
diff -r 61dfe2690360 -r e8850ad15893 ds3231.cpp --- a/ds3231.cpp Fri Nov 28 02:36:26 2014 +0000 +++ b/ds3231.cpp Sat Nov 29 20:22:12 2014 +0000 @@ -674,8 +674,8 @@ struct tm sys_time; //RTC vars - ds3231_time_t rtc_time; - ds3231_calendar_t rtc_calendar; + ds3231_time_t rtc_time = {0,0,0,0,0}; + ds3231_calendar_t rtc_calendar = {0,0,0,0}; get_calendar(&rtc_calendar); get_time(&rtc_time);