TEST_LP 1608

Dependencies:   mbed DS1302

Files at this revision

API Documentation at this revision

Comitter:
armandotill
Date:
Fri Nov 30 04:54:09 2018 +0000
Parent:
2:10b51af4fb8c
Commit message:
test_DS1302

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Nov 30 03:12:40 2018 +0000
+++ b/main.cpp	Fri Nov 30 04:54:09 2018 +0000
@@ -1,6 +1,6 @@
-#define SCLK   p22
-#define IO     p23
-#define CE     p24
+#define SCLK   p14
+#define IO     p13
+#define CE     p12
 
 //Comment this line if the DS1302 is already running
 #define INITIAL_RUN
@@ -12,7 +12,7 @@
 
 int main() {
     #ifdef INITIAL_RUN
-    clk.set_time(2056729737);
+    clk.set_time(1543510189);
     #endif
     
     char storedByte = clk.recallByte(0);