Temp Fork

Dependencies:   MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed

Fork of CubicHand by Model-Based Team

Revision:
30:3261015fdd17
Parent:
15:b48ac00af0b8
Child:
31:bf5f545621aa
--- a/main.cpp	Thu Dec 11 05:26:39 2014 +0000
+++ b/main.cpp	Thu Dec 11 05:57:54 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;
+        }
      }
 }