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: BLE_API mbed nRF51822
Fork of BLE_GATT_Example by
Diff: main.cpp
- Revision:
- 25:56d5b129dfd6
- Parent:
- 24:64e7d23021ba
- Child:
- 26:b3e90d7672f8
diff -r 64e7d23021ba -r 56d5b129dfd6 main.cpp
--- 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);
}
}
}
