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 all'accensione della scheda
23 // initialize the digital pin as an output.
28 // loop: Le istruzioni vengono eseguite all'infinito
30 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
31 delay(breve); // wait for a second
32 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
33 delay(breve); // wait for a second
35 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
36 delay(lunga); // wait for a second
37 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW