Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
sample_hardware.hpp@41:859b5e1e3d9a, 2018-01-08 (annotated)
- Committer:
- thomasmorris
- Date:
- Mon Jan 08 14:20:30 2018 +0000
- Revision:
- 41:859b5e1e3d9a
- Parent:
- 37:7c4d7f206039
- Child:
- 48:244d6d81bb52
Working Looping SD card;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 37:7c4d7f206039 | 1 | #ifndef __sample_hardware__ |
thomasmorris | 37:7c4d7f206039 | 2 | #define __sample_hardware__ |
thomasmorris | 37:7c4d7f206039 | 3 | //#define BME |
thomasmorris | 37:7c4d7f206039 | 4 | #ifdef BME |
thomasmorris | 37:7c4d7f206039 | 5 | #include "BME280.h" |
thomasmorris | 37:7c4d7f206039 | 6 | #else |
thomasmorris | 37:7c4d7f206039 | 7 | #include "BMP280.h" |
thomasmorris | 37:7c4d7f206039 | 8 | #endif |
thomasmorris | 37:7c4d7f206039 | 9 | #include "SDBlockDevice.h" |
thomasmorris | 37:7c4d7f206039 | 10 | #include "FATFileSystem.h" |
thomasmorris | 37:7c4d7f206039 | 11 | #include "LCD.hpp" |
thomasmorris | 37:7c4d7f206039 | 12 | |
thomasmorris | 41:859b5e1e3d9a | 13 | enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,FATAL};//Error Codes |
thomasmorris | 37:7c4d7f206039 | 14 | |
thomasmorris | 37:7c4d7f206039 | 15 | extern DigitalOut onBoardLED; |
thomasmorris | 37:7c4d7f206039 | 16 | extern DigitalOut redLED; |
thomasmorris | 37:7c4d7f206039 | 17 | extern DigitalOut yellowLED; |
thomasmorris | 37:7c4d7f206039 | 18 | extern DigitalOut greenLED; |
thomasmorris | 37:7c4d7f206039 | 19 | |
thomasmorris | 37:7c4d7f206039 | 20 | extern DigitalIn onBoardSwitch; |
thomasmorris | 37:7c4d7f206039 | 21 | extern InterruptIn SW1; |
thomasmorris | 37:7c4d7f206039 | 22 | extern InterruptIn SW2; |
thomasmorris | 37:7c4d7f206039 | 23 | //extern Serial pc; |
thomasmorris | 37:7c4d7f206039 | 24 | extern AnalogIn adcIn; |
thomasmorris | 37:7c4d7f206039 | 25 | |
thomasmorris | 37:7c4d7f206039 | 26 | #ifdef BME |
thomasmorris | 37:7c4d7f206039 | 27 | extern BME280 sensor; |
thomasmorris | 37:7c4d7f206039 | 28 | #else |
thomasmorris | 37:7c4d7f206039 | 29 | extern BMP280 sensor; |
thomasmorris | 37:7c4d7f206039 | 30 | #endif |
thomasmorris | 37:7c4d7f206039 | 31 | extern SDBlockDevice sd; |
thomasmorris | 37:7c4d7f206039 | 32 | |
thomasmorris | 37:7c4d7f206039 | 33 | extern void post(); |
thomasmorris | 37:7c4d7f206039 | 34 | extern void errorCode(ELEC350_ERROR_CODE err); |
thomasmorris | 37:7c4d7f206039 | 35 | |
thomasmorris | 37:7c4d7f206039 | 36 | #endif |