3 Now with 2 variables and an extra LED (remember a ~320 ohms resistor).
4 Turns on an LED on for one second, then off for one second, repeatedly.
6 This example code is in the public domain.
9 // Pin 13 has an LED connected on most Arduino boards.
12 int red = 12; // Definiamo un altro led
14 // the setup routine runs once when you press reset:
16 // initialize the digital pin as an output.
17 pinMode(led, OUTPUT); // Abilitaiamo entrambi i LED
21 // the loop routine runs over and over again forever:
23 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
24 delay(breve); // wait for a second
25 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
26 delay(breve); // wait for a second
28 digitalWrite(red, HIGH); // turn the LED on (HIGH is the voltage level)
29 delay(lunga); // wait for a second
30 digitalWrite(red, LOW); // turn the LED off by making the voltage LOW