int ledrojo = 11;
int ledverde = 8;
int ledamarillo = 2;
void setup()
{
pinMode(11, OUTPUT);
pinMode(8, OUTPUT);
pinMode(2, OUTPUT);
}
void loop()
{
digitalWrite(ledrojo, HIGH);
delay(500); // Wait for 1000 millisecond(s)
digitalWrite(ledrojo, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(ledamarillo, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(ledamarillo, LOW);
delay(1000); //aqui se
digitalWrite(ledverde, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(ledverde, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}
No hay comentarios.:
Publicar un comentario