for camera

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_GATT_Example by Bluetooth Low Energy

Revision:
25:56d5b129dfd6
Parent:
24:64e7d23021ba
Child:
26:b3e90d7672f8
--- a/main.cpp	Tue Jun 06 00:44:39 2017 +0000
+++ b/main.cpp	Tue Jun 06 00:48:09 2017 +0000
@@ -7,7 +7,7 @@
 uint16_t writeCharUUID      = 0xA002;
 
 #define LEN_SEQUENCE 5
-#define NUM_CASES
+#define NUM_CASES 6
 const uint8_t lookUpTable[NUM_CASES][LEN_SEQUENCE] = { {1,0,0,0,1},
                                     {1,0,0,1,1},
                                     {1,1,0,0,1},
@@ -64,7 +64,7 @@
             if ((instruction >= 0) && (instruction < NUM_CASES)) {
                 for (int i = 0; i < LEN_SEQUENCE; i++) {
                     led = lookUpTable[instruction][i];
-                    delay(500);
+                    wait(0.5);
                 }
             }
         }