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.
sample_hardware.hpp
00001 #ifndef __sample_hardware__ 00002 #define __sample_hardware__ 00003 00004 //#define BME 00005 #ifdef BME 00006 #include "BME280.h" 00007 #else 00008 #include "BMP280.h" 00009 #endif 00010 #include "TextLCD.h" 00011 #include "SDBlockDevice.h" 00012 #include "FATFileSystem.h" 00013 00014 enum ELEC350_ERROR_CODE {OK, FATAL}; 00015 00016 extern DigitalOut onBoardLED; 00017 extern DigitalOut redLED; 00018 extern DigitalOut yellowLED; 00019 extern DigitalOut greenLED; 00020 00021 extern DigitalIn onBoardSwitch; 00022 extern DigitalIn SW1; 00023 extern DigitalIn 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 00033 extern TextLCD lcd; 00034 extern SDBlockDevice sd; 00035 00036 extern void post(); 00037 extern void errorCode(ELEC350_ERROR_CODE err); 00038 00039 #endif
Generated on Sun Aug 7 2022 04:55:41 by
