No changes
Diff: sample_hardware.hpp
- Revision:
- 5:58ba1a6dbf60
- Parent:
- 4:d884f14069c6
- Child:
- 8:df979097cc71
--- a/sample_hardware.hpp Wed Nov 22 15:18:12 2017 +0000 +++ b/sample_hardware.hpp Thu Nov 23 10:54:10 2017 +0000 @@ -1,5 +1,13 @@ #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; @@ -13,6 +21,12 @@ //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);