Alix & Sam's combined versions

Dependencies:   BMP280 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client

main.cpp

Committer:
O_Thom
Date:
2018-11-25
Revision:
2:38d31b2e0956
Parent:
0:f9a18207d99c
Child:
4:740cba3f2716

File content as of revision 2:38d31b2e0956:

/* Sampling Code */
 #include "mbed.h"
#include "sample_hardware.hpp"
#include "Sampler.hpp"

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()
{
    t.attach(&doISR, 15);
    Thread::wait(osWaitForever); 
}