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.
Dependencies: BME280 BMP280 TextLCD
sample_hardware.hpp
00001 #ifndef __sample_hardware__ 00002 #define __sample_hardware__ 00003 //#define BME 00004 #ifdef BME 00005 #include "BME280.h" 00006 #else 00007 #include "BMP280.h" 00008 #endif 00009 #include "SDBlockDevice.h" 00010 #include "FATFileSystem.h" 00011 #include "LCD_COMMAND.hpp" 00012 #include "LCD.hpp" 00013 #include "NETWORK.hpp" 00014 #include "SERIAL_COMMANDS.hpp" 00015 #include "SD_CARD.hpp" 00016 00017 enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,SD_CARD_REMOVED,FATAL};//Error Codes 00018 00019 extern DigitalOut onBoardLED; 00020 00021 extern DigitalIn onBoardSwitch; 00022 extern InterruptIn SW1; 00023 extern InterruptIn SW2; 00024 //extern Serial pc; 00025 extern AnalogIn adcIn; 00026 00027 #ifdef BME 00028 extern BME280 sensor; 00029 #else 00030 extern BMP280 sensor; 00031 #endif 00032 extern SDBlockDevice sd; 00033 00034 extern void post(); 00035 extern void errorCode(ELEC350_ERROR_CODE err); 00036 00037 #endif
Generated on Sun Jul 31 2022 05:12:27 by
1.7.2