created separate function for hex to char
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID by
rtc.cpp
- Committer:
- rashmivenkataramaiah
- Date:
- 2017-12-12
- Revision:
- 76:611154b3b597
- Parent:
- 4:6bd81bb1790d
File content as of revision 76:611154b3b597:
#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 }