gets BLE commands, displays turn and stop signals
Dependencies: NeoStrip_edit2 mbed
Diff: main.cpp
- Revision:
- 2:d81dd88ca8a1
- Parent:
- 1:2718fc5af65d
--- a/main.cpp Sat Apr 26 17:56:30 2014 +0000 +++ b/main.cpp Sat Apr 26 18:01:38 2014 +0000 @@ -7,7 +7,7 @@ #define STOP 96 -#define N 59 +#define N 128 #define PATTERNS 4 @@ -96,7 +96,7 @@ { for (int i = 0; i < N; i++) { - if (maskLeft60[i] == 1) + if (maskLeft128[i] == 1) strip.setPixel(i, 0, 0xff, 0); else strip.setPixel(i, 0); @@ -107,7 +107,7 @@ { for (int i = 0; i < N; i++) { - if (maskRight60[i] == 1) + if (maskRight128[i] == 1) strip.setPixel(i, 0, 0xff, 0); else strip.setPixel(i, 0); @@ -118,7 +118,7 @@ { for (int i = 0; i < N; i++) { - if (maskStop60[i] == 1) + if (maskStop128[i] == 1) strip.setPixel(i, 0xff, 0, 0); else strip.setPixel(i, 0);