6 Accensione e spegnimanto di un LED utilizzando variabili
7 per impostare la velocita' del lampeggio.
9 Turns on an LED on for one second, then off for one second, repeatedly.
11 This example code is in the public domain.
15 // Dichiarazione variabili
17 // Pin 13 has an LED connected on most Arduino boards.
20 int breve = 200; // Variabile richiambile nel corso dell'esecuzione
24 // Setup: eseguita una volta sola
26 // initialize the digital pin as an output.
32 // the loop routine runs over and over again forever:
34 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
35 delay(breve); // wait for a second
36 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
37 delay(breve); // wait for a second
39 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
40 delay(lunga); // wait for a second
41 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW