Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: io/Peripheral.cpp
- Revision:
- 104:a3703ca4a4a4
- Parent:
- 94:61d44636f020
--- /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