Modification into 17th July New display demo code
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Ext_Demo_17July2017_newdis by
rtc.cpp
- Committer:
- avp2417
- Date:
- 2017-07-23
- Revision:
- 34:8f6b0dc124e8
- Parent:
- 4:6bd81bb1790d
File content as of revision 34:8f6b0dc124e8:
#include "mbed.h" #include <stdio.h> #include "ds3231.h" #include "rtc.h" time_t rtc_read() { Ds3231 rtc(PTC11, PTC10); time_t epoch_time1; epoch_time1 = rtc.get_epoch(); return epoch_time1; // return the time }