Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning

Dependencies:   BME280 BMP280 TextLCD

Working Repository

Committer:
thomasmorris
Date:
Tue Jan 09 11:41:07 2018 +0000
Revision:
49:d51f96a46cc3
Parent:
48:244d6d81bb52
SD Card Working;

Who changed what in which revision?

UserRevisionLine numberNew 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 48:244d6d81bb52 11 #include "LCD_COMMAND.hpp"
thomasmorris 37:7c4d7f206039 12 #include "LCD.hpp"
thomasmorris 48:244d6d81bb52 13 #include "NETWORK.hpp"
thomasmorris 48:244d6d81bb52 14 #include "SERIAL_COMMANDS.hpp"
thomasmorris 49:d51f96a46cc3 15 #include "SD_CARD.hpp"
thomasmorris 37:7c4d7f206039 16
thomasmorris 49:d51f96a46cc3 17 enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,SD_CARD_REMOVED,FATAL};//Error Codes
thomasmorris 37:7c4d7f206039 18
thomasmorris 37:7c4d7f206039 19 extern DigitalOut onBoardLED;
thomasmorris 37:7c4d7f206039 20
thomasmorris 37:7c4d7f206039 21 extern DigitalIn onBoardSwitch;
thomasmorris 37:7c4d7f206039 22 extern InterruptIn SW1;
thomasmorris 37:7c4d7f206039 23 extern InterruptIn SW2;
thomasmorris 37:7c4d7f206039 24 //extern Serial pc;
thomasmorris 37:7c4d7f206039 25 extern AnalogIn adcIn;
thomasmorris 37:7c4d7f206039 26
thomasmorris 37:7c4d7f206039 27 #ifdef BME
thomasmorris 37:7c4d7f206039 28 extern BME280 sensor;
thomasmorris 37:7c4d7f206039 29 #else
thomasmorris 37:7c4d7f206039 30 extern BMP280 sensor;
thomasmorris 37:7c4d7f206039 31 #endif
thomasmorris 37:7c4d7f206039 32 extern SDBlockDevice sd;
thomasmorris 37:7c4d7f206039 33
thomasmorris 37:7c4d7f206039 34 extern void post();
thomasmorris 37:7c4d7f206039 35 extern void errorCode(ELEC350_ERROR_CODE err);
thomasmorris 37:7c4d7f206039 36
thomasmorris 37:7c4d7f206039 37 #endif