Version 5

Dependencies:   BMP280 TextLCD BME280

Revision:
2:38d31b2e0956
Parent:
0:f9a18207d99c
Child:
4:740cba3f2716
diff -r f89c930c6491 -r 38d31b2e0956 main.cpp
--- a/main.cpp	Sun Nov 25 16:19:10 2018 +0000
+++ b/main.cpp	Sun Nov 25 17:49:47 2018 +0000
@@ -6,9 +6,17 @@
 EventQueue mainQueue; 
 
 Sampler s;   // Initialise the s object
+Ticker t;               // Time Initialisation
+
+void doISR()
+{
+   s.activate();   // Signal the sampling thread to move from WAITING to READY
+}
+    
 
 int main()
 {
-    s.start();
+    t.attach(&doISR, 15);
     Thread::wait(osWaitForever); 
 }
+    
\ No newline at end of file