Latest

Dependencies:   serial_terminal sample_hardware PLL_Config SDCard BMP280 Networkbits TextLCD SDBlockDevice

Revision:
15:8af9672a6778
Parent:
13:00545b1cb247
Child:
16:15588fdc5d11
--- a/main.cpp	Fri Nov 23 14:49:44 2018 +0000
+++ b/main.cpp	Fri Nov 23 18:10:19 2018 +0000
@@ -6,7 +6,6 @@
 #include "rtos.h"
 #include "events/mbed_events.h"
 #include "LCDdisplay.hpp"
-#include "Clock.h"
 
 
 //Signals
@@ -48,14 +47,15 @@
 void serialISR(void);
 void serialiser(void);
 int i = 0;
+
+time_t seconds;
+
+
 //TEST
 
 
-Clock rtc;
-
+int main() {   
 
-int main() {   
-    set_time(1256729737);  
     pc = new RawSerial(USBTX, USBRX);
 
     //Move threads into a thread init function?
@@ -79,6 +79,9 @@
     //TEST
     serialthread.start(callback(&serialqueue, &EventQueue::dispatch_forever));
     pc->attach(serialISR, Serial::RxIrq);
+    
+    //set_time(1256729737);
+    
     //TEST