]> git.piffa.net Git - sketchbook_andrea/blobdiff - RGB_LED/rgb_4_array/rgb_4_array.ino
RGB clean up
[sketchbook_andrea] / RGB_LED / rgb_4_array / rgb_4_array.ino
index 81f8928f0297fe74ed3167f47fcae8f39c9484ce..39060d412f1d9184fb58c2fc972b5d958bba2fc1 100644 (file)
@@ -1,8 +1,8 @@
 /*
-    Adafruit Arduino - Lesson 3. RGB LED
+    RGB Array 
 
- RGB LED: mpostare i colori per un LED RGB
- common anode
+ RGB LED: impostare i colori per un LED RGB
+ common anode tramite array
 
  Schema: http://lab.piffa.net/schemi/rgb.jpg
  */
@@ -24,7 +24,7 @@ void loop()
 {
   analogWrite(pin[0], color[0]);
   analogWrite(pin[1], color[1]);
-  analogWrite(pin[2], color[1]);
+  analogWrite(pin[2], color[2]);
 }
 
 /* Domande: