Un script para cambiar el color

Dependencies:   PixelArray USBDevice mbed

Fork of blip_rainbow_ejemplo by JJ Merelo

Files at this revision

API Documentation at this revision

Comitter:
jjmerelo
Date:
Mon Nov 30 12:48:37 2015 +0000
Parent:
8:ef1c8d16f063
Commit message:
Cambiando color

Changed in this revision

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