gets BLE commands, displays turn and stop signals

Dependencies:   NeoStrip_edit2 mbed

Files at this revision

API Documentation at this revision

Comitter:
rhodes42
Date:
Sat Apr 26 18:01:38 2014 +0000
Parent:
1:2718fc5af65d
Commit message:
N=128;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);