Cubic Hand project for EECS 249A course.

Dependencies:   MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811

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;
+        }
      }
 }