![](/media/cache/profiles/acab0116c354964a558e65bdd07ff047.jpg.50x50_q85.jpg)
Demo of the sample LCD class, BMP280 Sensor and network with power on self test. Requires a network connectionb
Dependencies: BMP280 TextLCD BME280
Diff: sample_hardware.hpp
- Revision:
- 6:9a95a39d1cce
diff -r 5fd848b23b3e -r 9a95a39d1cce sample_hardware.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample_hardware.hpp Sat Nov 24 08:44:15 2018 +0000 @@ -0,0 +1,39 @@ +#ifndef __sample_hardware__ +#define __sample_hardware__ + +//#define BME +#ifdef BME +#include "BME280.h" +#else +#include "BMP280.h" +#endif +#include "TextLCD.h" +#include "SDBlockDevice.h" +#include "FATFileSystem.h" + +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 TextLCD lcd; +extern SDBlockDevice sd; + +extern void post(); +extern void errorCode(ELEC350_ERROR_CODE err); + +#endif \ No newline at end of file