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: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: io/Peripheral.cpp
- Revision:
- 103:a3703ca4a4a4
- Parent:
- 93:61d44636f020
diff -r ede6611e064e -r a3703ca4a4a4 io/Peripheral.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/io/Peripheral.cpp Fri May 08 13:15:29 2015 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+DigitalOut shieldLEDRed(D5, 255);
+DigitalOut shieldLEDBlue(D8, 255);
+DigitalOut shieldLEDGreen(D9, 255);
+
+void closeRelay()
+{
+ shieldLEDRed = 255;
+ shieldLEDBlue = 255;
+ shieldLEDGreen = 0;
+}
+
+void openRelay()
+{
+ shieldLEDRed = 255;
+ shieldLEDBlue = 255;
+ shieldLEDGreen = 255;
+}
\ No newline at end of file
