Version 5

Dependencies:   BMP280 TextLCD BME280

Revision:
4:740cba3f2716
Parent:
2:38d31b2e0956
Child:
5:f87129ac8bf3
--- a/main.cpp	Tue Nov 27 12:33:36 2018 +0000
+++ b/main.cpp	Tue Nov 27 12:51:34 2018 +0000
@@ -3,7 +3,6 @@
 #include "sample_hardware.hpp"
 #include "Sampler.hpp"
 
-EventQueue mainQueue; 
 
 Sampler s;   // Initialise the s object
 Ticker t;               // Time Initialisation
@@ -16,7 +15,9 @@
 
 int main()
 {
-    t.attach(&doISR, 15);
-    Thread::wait(osWaitForever); 
+    
+    s.sampEQueue.call_every(1000, &Sampler::publishSample);     // Publish sample 
+    
+    s.sampEQueue.dispatch();
 }
     
\ No newline at end of file