Hello World demo for DS3231 library

Dependencies:   ds3231 mbed

DS3231 Component Page

Files at this revision

API Documentation at this revision

Comitter:
j3
Date:
Thu Mar 19 21:59:08 2015 +0000
Parent:
5:ab9d82256e26
Commit message:
updated lib

Changed in this revision

ds3231.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ab9d82256e26 -r 2641d53a460a ds3231.lib
--- a/ds3231.lib	Tue Mar 17 22:30:32 2015 +0000
+++ b/ds3231.lib	Thu Mar 19 21:59:08 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Maxim-Integrated/code/ds3231/#aa3eb69b25bb
+http://developer.mbed.org/teams/Maxim-Integrated/code/ds3231/#11630748e2f2
diff -r ab9d82256e26 -r 2641d53a460a main.cpp
--- a/main.cpp	Tue Mar 17 22:30:32 2015 +0000
+++ b/main.cpp	Thu Mar 19 21:59:08 2015 +0000
@@ -51,9 +51,9 @@
     //DS3231 rtc variables
     
     //default, use bit masks in ds3231.h for desired operation
-    Ds3231::ds3231_cntl_stat_t rtc_control_status = {0,0}; 
-    Ds3231::ds3231_time_t rtc_time;
-    Ds3231::ds3231_calendar_t rtc_calendar;
+    ds3231_cntl_stat_t rtc_control_status = {0,0}; 
+    ds3231_time_t rtc_time;
+    ds3231_calendar_t rtc_calendar;
     
     rtc.set_cntl_stat_reg(rtc_control_status);