Liam Grazier
/
0NicksCoursework-lg
diajzifsajoifajsoifaj
Fork of ELEC350-CWTEMPLATE-2017 by
Diff: components.hpp
- Revision:
- 5:9b4844128e09
- Child:
- 7:dd303488e55d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components.hpp Fri Jan 05 14:13:43 2018 +0000 @@ -0,0 +1,29 @@ +#ifndef __sample_hardware__ +#define __sample_hardware__ + +//#define BME +#ifdef BME +#include "BME280.h" +#else +#include "BMP280.h" +#endif + + +enum ELEC350_ERROR_CODE {OK, FATAL}; +extern DigitalOut onBoardLED; +extern DigitalOut redLED; +extern DigitalOut yellowLED; +extern DigitalOut greenLED; +extern DigitalIn onBoardSwitch; +extern DigitalIn SW1; +extern DigitalIn SW2; +//extern Serial pc; +extern AnalogIn adcIn; +#ifdef BME +extern BME280 sensor; +#else +extern BMP280 sensor; +#endif +extern void post(); +extern void errorCode(ELEC350_ERROR_CODE err); +#endif \ No newline at end of file