Cubic Hand project for EECS 249A course.
Dependencies: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
Diff: main.cpp
- Revision:
- 28:3261015fdd17
- Parent:
- 15:b48ac00af0b8
- Child:
- 29:9deef77084af
- Child:
- 32:bf5f545621aa
diff -r 50be685a3f54 -r 3261015fdd17 main.cpp --- 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; + } } }