/*
Blink tres leds secuencialmente
*/
int led_verde= 11;
int led_amarillo= 12;
int led_rojo= 13;
void setup() {
pinMode(led_verde, OUTPUT);
pinMode(led_amarillo, OUTPUT);
pinMode(led_rojo, OUTPUT);
}
void loop() {
digitalWrite(led_verde, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led_verde, LOW); // turn the LED off by making the voltage LOW
digitalWrite(led_amarillo, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led_amarillo, LOW); // turn the LED off by making the voltage LOW
digitalWrite(led_rojo, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led_rojo, LOW); // turn the LED off by making the voltage LOW
}