Plymouth ELEC351 Group T / Mbed OS ELEC351_Group_T

Fork of ELEC351 by Plymouth ELEC351 Group T

Revision:
53:71f59e195f06
Parent:
52:99915f5240b2
--- a/sample_hardware.hpp	Tue Jan 09 22:27:49 2018 +0000
+++ b/sample_hardware.hpp	Mon May 07 15:44:34 2018 +0000
@@ -2,27 +2,15 @@
 This is where we define and declare our Hardware
 */
 #ifndef sample_hardware//Header Guards Prevents Multiple includes
-#define sample_hardware
-//#define BME
-#ifdef BME
 //Libraries and header includes
-#include "BME280.h"
-#else
-#include "BMP280.h"
-#endif
-#include "SDBlockDevice.h"
-#include "FATFileSystem.h"
-#include "LCD_COMMAND.hpp"
+
 #include "LCD.hpp"
-#include "NETWORK.hpp"
 #include "SERIAL_COMMANDS.hpp"
-#include "SD_CARD.hpp"
 #include "mbed.h"
 
 #define RED_DONE 1
 #define YELLOW_DONE 2
-
-
+static LCD LCD(D8,D9,D4,A0,A1,A2,A3,D7,D6,D3,D1);       //LCD declaration
 enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,SD_CARD_REMOVED,SD_FATAL,FATAL};  //Error Codes
 
 extern DigitalOut onBoardLED;                                       //Set the onBoard Led to a digital Out
@@ -32,13 +20,6 @@
 extern InterruptIn  SW2;                                            //Set SW2 to an interrupt in
 extern AnalogIn adcIn;                                              //Set adc to an Analogue in
 
-#ifdef BME
-extern BME280 sensor;                                               //Define Sensor Board
-#else
-extern BMP280 sensor;                                               //Define Sensor Board
-#endif
-extern SDBlockDevice sd;                                            //Define SD Card
-
 extern void post();                                                 //Used to perform a power on self test
 extern void errorCode(ELEC350_ERROR_CODE err);                      //Used to handle error code