button

Dependencies:   BMI160 SDFileSystem USBDevice max32630fthr

Fork of MPSMAX by Faizan Ahmad

Revision:
1:6b969a803e1b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RTClock.cpp	Tue May 08 13:45:29 2018 +0000
@@ -0,0 +1,25 @@
+#include "RTClock.h"
+
+
+void initRTC(){
+    time_t seconds = time(NULL);
+}
+
+void setRTCTime(){
+
+}
+
+
+void loadNextMove(){
+
+}
+
+void printRTCTime(){
+    time_t seconds = time(NULL);
+    pc.printf("Time as seconds since January 1, 1970 = %d\n", seconds);
+    pc.printf("Time as a basic string = %s", ctime(&seconds));
+    char buffer[32];
+    strftime(buffer, 32, "%I:%M %p\n", localtime(&seconds));
+    pc.printf("Time as a custom formatted string = %s", buffer);
+
+}