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 CW_copy by
Diff: ELEC350-Coursework-2017/sample_hardware.hpp
- Revision:
- 1:dc648c5624b9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ELEC350-Coursework-2017/sample_hardware.hpp Wed Jan 10 09:50:29 2018 +0000
@@ -0,0 +1,40 @@
+#ifndef __sample_hardware__
+#define __sample_hardware__
+
+//#define BME
+#ifdef BME
+#include "BME280.h"
+#else
+#include "BMP280.h"
+#endif
+#include "TextLCD.h"
+#include "SDBlockDevice.h"
+#include "FATFileSystem.h"
+
+enum ELEC350_ERROR_CODE {OK, FATAL};
+
+extern DigitalOut onBoardLED;
+extern DigitalOut redLED;
+extern DigitalOut yellowLED;
+extern DigitalOut greenLED;
+
+extern DigitalIn onBoardSwitch;
+extern DigitalIn SW1;
+extern DigitalIn SW2;
+extern DigitalIn SW3;
+//extern Serial pc;
+extern AnalogIn adcIn;
+
+#ifdef BME
+extern BME280 sensor;
+#else
+extern BMP280 sensor;
+#endif
+
+extern TextLCD lcd;
+extern SDBlockDevice sd;
+
+extern void post();
+extern void errorCode(ELEC350_ERROR_CODE err);
+
+#endif
\ No newline at end of file
