6 Accensione e spegnimanto di un LED utilizzando variabili
7 per impostare la velocita' del lampeggio.
12 // Dichiarazione variabili
14 // Pin 13 ha un LED preconfigurato su molte schede Arduino
16 int breve = 200; // Variabile richiambile nel corso dell'esecuzione
20 // Setup: eseguita una volta sola all'accensione della scheda
22 // Inizializziamo il PIN 13 come OUTPUT
27 // loop: Le istruzioni vengono eseguite all'infinito
29 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
30 delay(breve); // wait for a second
31 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
32 delay(breve); // wait for a second
34 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
35 delay(lunga); // wait for a second
36 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW