SPI,I2C,RTC
Dependencies: MFRC522_Updated ssd1306_library
main.cpp
- Committer:
- 20172573073
- Date:
- 2020-05-19
- Revision:
- 1:fd4f40b923e7
- Parent:
- 0:fbda9e7e9269
- Child:
- 2:8083cd0c48a8
File content as of revision 1:fd4f40b923e7:
#include "mbed.h" #include "stdio.h" #include "string.h" Serial pc(USBTX, USBRX); int main() { set_time(1589850133); while (true) { time_t seconds = time(NULL); pc.printf(" %u\n\r ", (unsigned int)seconds); pc.printf("fecha %s\n\r", ctime(&seconds)); wait(1); } }