Demo of the sample LCD class, BMP280 Sensor and network with power on self test. Requires a network connectionb

Dependencies:   BMP280 TextLCD BME280

Committer:
noutram
Date:
Sat Nov 24 08:44:15 2018 +0000
Revision:
6:9a95a39d1cce
simplify;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
noutram 6:9a95a39d1cce 1 #ifndef __sample_hardware__
noutram 6:9a95a39d1cce 2 #define __sample_hardware__
noutram 6:9a95a39d1cce 3
noutram 6:9a95a39d1cce 4 //#define BME
noutram 6:9a95a39d1cce 5 #ifdef BME
noutram 6:9a95a39d1cce 6 #include "BME280.h"
noutram 6:9a95a39d1cce 7 #else
noutram 6:9a95a39d1cce 8 #include "BMP280.h"
noutram 6:9a95a39d1cce 9 #endif
noutram 6:9a95a39d1cce 10 #include "TextLCD.h"
noutram 6:9a95a39d1cce 11 #include "SDBlockDevice.h"
noutram 6:9a95a39d1cce 12 #include "FATFileSystem.h"
noutram 6:9a95a39d1cce 13
noutram 6:9a95a39d1cce 14 enum ELEC350_ERROR_CODE {OK, FATAL};
noutram 6:9a95a39d1cce 15
noutram 6:9a95a39d1cce 16 extern DigitalOut onBoardLED;
noutram 6:9a95a39d1cce 17 extern DigitalOut redLED;
noutram 6:9a95a39d1cce 18 extern DigitalOut yellowLED;
noutram 6:9a95a39d1cce 19 extern DigitalOut greenLED;
noutram 6:9a95a39d1cce 20
noutram 6:9a95a39d1cce 21 extern DigitalIn onBoardSwitch;
noutram 6:9a95a39d1cce 22 extern DigitalIn SW1;
noutram 6:9a95a39d1cce 23 extern DigitalIn SW2;
noutram 6:9a95a39d1cce 24 //extern Serial pc;
noutram 6:9a95a39d1cce 25 extern AnalogIn adcIn;
noutram 6:9a95a39d1cce 26
noutram 6:9a95a39d1cce 27 #ifdef BME
noutram 6:9a95a39d1cce 28 extern BME280 sensor;
noutram 6:9a95a39d1cce 29 #else
noutram 6:9a95a39d1cce 30 extern BMP280 sensor;
noutram 6:9a95a39d1cce 31 #endif
noutram 6:9a95a39d1cce 32
noutram 6:9a95a39d1cce 33 extern TextLCD lcd;
noutram 6:9a95a39d1cce 34 extern SDBlockDevice sd;
noutram 6:9a95a39d1cce 35
noutram 6:9a95a39d1cce 36 extern void post();
noutram 6:9a95a39d1cce 37 extern void errorCode(ELEC350_ERROR_CODE err);
noutram 6:9a95a39d1cce 38
noutram 6:9a95a39d1cce 39 #endif