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: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
Diff: main.cpp
- Revision:
- 35:b6fb5dd65a98
- Parent:
- 33:ff87df17c55d
- Child:
- 37:996bd22a633f
--- a/main.cpp Thu Dec 11 06:37:46 2014 +0000
+++ b/main.cpp Thu Dec 11 06:44:30 2014 +0000
@@ -9,6 +9,9 @@
int main()
{
+ long Counter = 0;
+ DigitalOut StatusLED(LED1);
+ StatusLED = 0;
Serial pc(USBTX, USBRX);
pc.baud(115200);
pc.printf("Connceted to PC \r\n");
@@ -16,8 +19,12 @@
pc.printf("DataGlove Cube Client\r\n");
while(true)
{
- MasterGlove.Receive();
+ MasterGlove.ReceiveBlocking();
//pc.printf("Looping \r\n");
//wait(0.1);
+ if(Counter++%25 == 0)
+ {
+ StatusLED = !StatusLED;
+ }
}
}

