![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Version 5
Dependencies: BMP280 TextLCD BME280
main.cpp@0:f9a18207d99c, 2018-11-23 (annotated)
- Committer:
- O_Thom
- Date:
- Fri Nov 23 14:42:48 2018 +0000
- Revision:
- 0:f9a18207d99c
- Child:
- 2:38d31b2e0956
Sampler class working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
O_Thom | 0:f9a18207d99c | 1 | /* Sampling Code */ |
O_Thom | 0:f9a18207d99c | 2 | #include "mbed.h" |
O_Thom | 0:f9a18207d99c | 3 | #include "sample_hardware.hpp" |
O_Thom | 0:f9a18207d99c | 4 | #include "Sampler.hpp" |
O_Thom | 0:f9a18207d99c | 5 | |
O_Thom | 0:f9a18207d99c | 6 | EventQueue mainQueue; |
O_Thom | 0:f9a18207d99c | 7 | |
O_Thom | 0:f9a18207d99c | 8 | Sampler s; // Initialise the s object |
O_Thom | 0:f9a18207d99c | 9 | |
O_Thom | 0:f9a18207d99c | 10 | int main() |
O_Thom | 0:f9a18207d99c | 11 | { |
O_Thom | 0:f9a18207d99c | 12 | s.start(); |
O_Thom | 0:f9a18207d99c | 13 | Thread::wait(osWaitForever); |
O_Thom | 0:f9a18207d99c | 14 | } |