export test

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by nikita teggi

Revision:
1:8316c23ec6b9
Child:
4:6bd81bb1790d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rtc.cpp	Mon Jan 30 07:45:41 2017 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include <stdio.h> 
+#include "ds3231.h"
+#include "rtc.h"  
+  
+  
+  
+  
+  
+time_t rtc_read()
+{
+
+   Ds3231 rtc(PTC11, PTC10); 
+  
+    time_t epoch_time1;
+   //char buff1[10];
+   epoch_time1 = rtc.get_epoch();      
+  // sprintf(buff1 ,"%s", ctime(&epoch_time1));
+   return  epoch_time1;
+   
+   
+   }
\ No newline at end of file