Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ELEC351 by
sample_hardware.hpp
- Committer:
- thomasmorris
- Date:
- 2018-01-08
- Revision:
- 41:859b5e1e3d9a
- Parent:
- 37:7c4d7f206039
- Child:
- 48:244d6d81bb52
File content as of revision 41:859b5e1e3d9a:
#ifndef __sample_hardware__ #define __sample_hardware__ //#define BME #ifdef BME #include "BME280.h" #else #include "BMP280.h" #endif #include "SDBlockDevice.h" #include "FATFileSystem.h" #include "LCD.hpp" enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,FATAL};//Error Codes extern DigitalOut onBoardLED; extern DigitalOut redLED; extern DigitalOut yellowLED; extern DigitalOut greenLED; extern DigitalIn onBoardSwitch; extern InterruptIn SW1; extern InterruptIn SW2; //extern Serial pc; extern AnalogIn adcIn; #ifdef BME extern BME280 sensor; #else extern BMP280 sensor; #endif extern SDBlockDevice sd; extern void post(); extern void errorCode(ELEC350_ERROR_CODE err); #endif