]> git.piffa.net Git - sketchbook_andrea/blobdiff - basic/pwm/pwm_1_while_byte/pwm_1_while_byte.ino
Analog
[sketchbook_andrea] / basic / pwm / pwm_1_while_byte / pwm_1_while_byte.ino
index 3f6de46b36120d0d952e0a0a8fff6bc7ff9631b9..fed4e7f0e70c8c96bf4583e680aa5c53966cfcbc 100644 (file)
@@ -4,8 +4,9 @@
    PWM per un LED: aumentare progressivamente la luminosita'.
  */
 
-byte led  = 9   ;     // Il pin ~9 e' abilitato al PWM
-byte brightness = 0;  // Valore iniziale per il PWM del LED
+const byte led  = 9   ; // Il pin ~9 e' abilitato al PWM
+byte brightness = 0;    // Valore iniziale per il PWM del LED
+                        // Perche' brightness non e' una costante?
 
 // the setup routine runs once when you press reset:
 void setup()  {