]> git.piffa.net Git - sketchbook_andrea/blobdiff - RGB_LED/rgb_0_soluzione/rgb_0_soluzione.ino
Capacitance fir st commit,
[sketchbook_andrea] / RGB_LED / rgb_0_soluzione / rgb_0_soluzione.ino
index 475de32138c85393176cfb9faa49573f69f2ee7a..5d46d7e1a5e3827a1a9f864fc2470021c953272c 100644 (file)
@@ -5,10 +5,9 @@
  common anode
  */
 
-int redPin = 11;
-int greenPin = 10;
-int bluePin = 9;
-
+int redPin      = 11;   // 2v a 20ma: che resistenza dovro usare?
+int greenPin    = 10;   // 3.5v a 20ma: che resistenza dovro usare?
+int bluePin     = 9;    // 3.5v a 20ma: che resistenza dovro usare?
 
 
 void setup()
@@ -20,7 +19,8 @@ void setup()
 
 void loop()
 {
-  setColor(0xFF,0x00,0x00) ; // imposta il LED in rosso
+  setColor(255,0,0) ; // imposta il LED in rosso
+  //setColor(0xFF,0x00,0x00) ; // imposta il LED in rosso in esadecimale
 
   // setName("green") ; 
 }