4 Accensione e spegnimanto di un LED utilizzando variabili
5 per impostare la velocita' del lampeggio.
7 Turns on an LED on for one second, then off for one second, repeatedly.
9 This example code is in the public domain.
12 // Pin 13 has an LED connected on most Arduino boards.
15 int breve = 200; // Variabile richiambile nel corso dell'esecuzione
18 // the setup routine runs once when you press reset:
20 // initialize the digital pin as an output.
24 // the loop routine runs over and over again forever:
26 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
27 delay(breve); // wait for a second
28 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
29 delay(breve); // wait for a second
31 digitalWrite(red, HIGH); // turn the LED on (HIGH is the voltage level)
32 delay(lunga); // wait for a second
33 digitalWrite(red, LOW); // turn the LED off by making the voltage LOW