sensor
sample_hardware.hpp@9:5c695a388b14, 2018-11-30 (annotated)
- Committer:
- Joelpallent
- Date:
- Fri Nov 30 13:11:51 2018 +0000
- Revision:
- 9:5c695a388b14
- Parent:
- 5:58ba1a6dbf60
- Child:
- 8:df979097cc71
sensor;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
noutram | 0:6f9f2e93a0be | 1 | #ifndef __sample_hardware__ |
noutram | 0:6f9f2e93a0be | 2 | #define __sample_hardware__ |
noutram | 5:58ba1a6dbf60 | 3 | |
noutram | 5:58ba1a6dbf60 | 4 | //#define BME |
noutram | 5:58ba1a6dbf60 | 5 | #ifdef BME |
noutram | 5:58ba1a6dbf60 | 6 | #include "BME280.h" |
noutram | 5:58ba1a6dbf60 | 7 | #else |
noutram | 5:58ba1a6dbf60 | 8 | #include "BMP280.h" |
noutram | 5:58ba1a6dbf60 | 9 | #endif |
noutram | 5:58ba1a6dbf60 | 10 | |
noutram | 4:d884f14069c6 | 11 | enum ELEC350_ERROR_CODE {OK, FATAL}; |
noutram | 4:d884f14069c6 | 12 | |
noutram | 0:6f9f2e93a0be | 13 | extern DigitalOut onBoardLED; |
noutram | 0:6f9f2e93a0be | 14 | extern DigitalOut redLED; |
noutram | 0:6f9f2e93a0be | 15 | extern DigitalOut yellowLED; |
noutram | 0:6f9f2e93a0be | 16 | extern DigitalOut greenLED; |
noutram | 0:6f9f2e93a0be | 17 | |
noutram | 0:6f9f2e93a0be | 18 | extern DigitalIn onBoardSwitch; |
noutram | 0:6f9f2e93a0be | 19 | extern DigitalIn SW1; |
noutram | 0:6f9f2e93a0be | 20 | extern DigitalIn SW2; |
noutram | 0:6f9f2e93a0be | 21 | //extern Serial pc; |
noutram | 1:3250ba797c16 | 22 | extern AnalogIn adcIn; |
noutram | 0:6f9f2e93a0be | 23 | |
noutram | 5:58ba1a6dbf60 | 24 | #ifdef BME |
noutram | 5:58ba1a6dbf60 | 25 | extern BME280 sensor; |
noutram | 5:58ba1a6dbf60 | 26 | #else |
noutram | 5:58ba1a6dbf60 | 27 | extern BMP280 sensor; |
noutram | 5:58ba1a6dbf60 | 28 | #endif |
noutram | 5:58ba1a6dbf60 | 29 | |
noutram | 0:6f9f2e93a0be | 30 | extern void post(); |
noutram | 4:d884f14069c6 | 31 | extern void errorCode(ELEC350_ERROR_CODE err); |
noutram | 0:6f9f2e93a0be | 32 | |
noutram | 0:6f9f2e93a0be | 33 | #endif |