changeset 1255:b7fb7b2649fd

bug in setting rgb Ignore-this: 380aa2d0c907faf69749636426d8de17
author drewp@bigasterisk.com
date Sat, 13 Jun 2015 06:39:03 +0000
parents da8a4696227f
children ea2b23f59884
files light9/effecteval/effectloop.py rgbled/nanostrip.cc
diffstat 2 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/light9/effecteval/effectloop.py	Sat Jun 13 06:28:30 2015 +0000
+++ b/light9/effecteval/effectloop.py	Sat Jun 13 06:39:03 2015 +0000
@@ -214,7 +214,7 @@
         """
         if color.shape != (1, 3):
             raise ValueError("color was %s" % color.shape)
-        self._dev.write('\x60\x04%s' + self._8bitMessage(color))
+        self._dev.write('\x60\x04' + self._8bitMessage(color))
         self._dev.flush()
 
         
--- a/rgbled/nanostrip.cc	Sat Jun 13 06:28:30 2015 +0000
+++ b/rgbled/nanostrip.cc	Sat Jun 13 06:39:03 2015 +0000
@@ -55,12 +55,7 @@
   init();
   pinMode(debugLed, OUTPUT);
 
-  pinMode(3, OUTPUT);
-  pinMode(6, OUTPUT);
-  pinMode(9, OUTPUT);
-  pinMode(10, OUTPUT);
-  pinMode(11, OUTPUT);
-  
+    
   strip0.begin();
   strip1.begin();
   intro();