Un script para cambiar el color

Dependencies:   PixelArray USBDevice mbed

Fork of blip_rainbow_ejemplo by JJ Merelo

Revision:
9:297dd05aecfd
Parent:
8:ef1c8d16f063
--- a/main.cpp	Mon Nov 30 12:39:43 2015 +0000
+++ b/main.cpp	Mon Nov 30 12:48:37 2015 +0000
@@ -39,11 +39,10 @@
         int rgb = 20* floor( pot/50 ); 
         neopixel::PixelArray array(MATRIX_PIN);
         for(int i=0;i<NLEDS;i++) {
-            setPixel(i, rgb, 255-rgb, 255-rgb);
+            setPixel(i, rgb, 20-rgb, 20-rgb);
         }
                 
         array.update(buffer, NLEDS); 
-        wait(10); 
 
     }