6 Accensione e spegnimanto di un LED utilizzando variabili
7 per impostare la velocita' del lampeggio.
12 // Dichiarazione variabili
14 // Pin 13 has an LED connected on most Arduino boards.
17 int breve = 200; // Variabile richiambile nel corso dell'esecuzione
21 // Setup: eseguita una volta sola
23 // initialize the digital pin as an output.
29 // the loop routine runs over and over again forever:
31 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
32 delay(breve); // wait for a second
33 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
34 delay(breve); // wait for a second
36 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
37 delay(lunga); // wait for a second
38 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW