Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_3rd_nov_2017 by
Diff: rtc.cpp
- Revision:
- 4:6bd81bb1790d
- Parent:
- 1:8316c23ec6b9
--- a/rtc.cpp Fri Feb 10 10:39:13 2017 +0000
+++ b/rtc.cpp Wed Mar 01 18:49:33 2017 +0000
@@ -5,18 +5,13 @@
-
-
time_t rtc_read()
{
Ds3231 rtc(PTC11, PTC10);
-
- time_t epoch_time1;
- //char buff1[10];
+ time_t epoch_time1;
epoch_time1 = rtc.get_epoch();
- // sprintf(buff1 ,"%s", ctime(&epoch_time1));
- return epoch_time1;
+
+ return epoch_time1; // return the time
-
- }
\ No newline at end of file
+}
\ No newline at end of file
