Simple test for commanding the RGB LED. Use your mbed websocket to send a message, composed by a letter and a number. The letter can be 'r', 'g', or 'b', which is the LED color, and the number is 0 or 1, which is the logic state. Remember that the board LEDs light up with a 0 level.
Dependencies: WebSocketClient mbed-rtos mbed
Diff: main.cpp
- Revision:
- 1:ba6266c183de
- Parent:
- 0:35bd27c75bc9
--- a/main.cpp Thu Aug 07 17:48:14 2014 +0000 +++ b/main.cpp Thu Aug 07 17:57:19 2014 +0000 @@ -23,7 +23,10 @@ printf("IP Address is %s\n\r", eth.getIPAddress()); wait(1.0); - Websocket ws("ws://sockets.mbed.org/ws/quevedo/ro"); + // Change YOURLOGIN for your mbed login so you can communicate to the board + // using the mbed websocket at: + // http://sockets.mbed.org/YOURLOGIN + Websocket ws("ws://sockets.mbed.org/ws/YOURLOGIN/ro"); ws.connect(); while (pb) {