X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=basic%2Fpwm%2Fpwm_1_while_byte%2Fpwm_1_while_byte.ino;h=fed4e7f0e70c8c96bf4583e680aa5c53966cfcbc;hb=3b78d813afb2e27ed29faa261570d2eeb8d5068d;hp=3f6de46b36120d0d952e0a0a8fff6bc7ff9631b9;hpb=f1049e58baf973e21c716ef697458b1384f02b78;p=sketchbook_andrea diff --git a/basic/pwm/pwm_1_while_byte/pwm_1_while_byte.ino b/basic/pwm/pwm_1_while_byte/pwm_1_while_byte.ino index 3f6de46..fed4e7f 100644 --- a/basic/pwm/pwm_1_while_byte/pwm_1_while_byte.ino +++ b/basic/pwm/pwm_1_while_byte/pwm_1_while_byte.ino @@ -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() {