Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
Diff: sample_hardware.hpp
- Revision:
- 37:7c4d7f206039
- Child:
- 41:859b5e1e3d9a
diff -r a0098306fc58 -r 7c4d7f206039 sample_hardware.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample_hardware.hpp Sun Jan 07 19:21:11 2018 +0000 @@ -0,0 +1,36 @@ +#ifndef __sample_hardware__ +#define __sample_hardware__ +//#define BME +#ifdef BME +#include "BME280.h" +#else +#include "BMP280.h" +#endif +#include "SDBlockDevice.h" +#include "FATFileSystem.h" +#include "LCD.hpp" + +enum ELEC350_ERROR_CODE {OK, FATAL}; + +extern DigitalOut onBoardLED; +extern DigitalOut redLED; +extern DigitalOut yellowLED; +extern DigitalOut greenLED; + +extern DigitalIn onBoardSwitch; +extern InterruptIn SW1; +extern InterruptIn SW2; +//extern Serial pc; +extern AnalogIn adcIn; + +#ifdef BME +extern BME280 sensor; +#else +extern BMP280 sensor; +#endif +extern SDBlockDevice sd; + +extern void post(); +extern void errorCode(ELEC350_ERROR_CODE err); + +#endif \ No newline at end of file