B+IMU+SD

Dependencies:   BMI160 RTC SDFileSystem USBDevice max32630fthr

Fork of MPSMAXbutton by Faizan Ahmad

RTClock.cpp

Committer:
FaizanAhmad
Date:
2018-05-09
Revision:
3:bd223559f79b

File content as of revision 3:bd223559f79b:

#include "RTClock.h"
extern Serial _serialport;

void initRTC(){
    time_t seconds = time(NULL);
}

void setRTCTime(){

}


void loadNextMove(){

}

void printRTCTime(){
    time_t seconds = time(NULL);
    _serialport.printf("Time as seconds since January 1, 1970 = %d\n", seconds);
    _serialport.printf("Time as a basic string = %s", ctime(&seconds));
    char buffer[32];
    strftime(buffer, 32, "%I:%M %p\n", localtime(&seconds));
    _serialport.printf("Time as a custom formatted string = %s", buffer);

}