Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
int tiempoMiliSegundos = 400;
void setup() {
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
}
void loop() {
//Estado # 1 - Led 13 - Encendido
digitalWrite(13,HIGH);
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
delay(tiempoMiliSegundos);
//Estado # 2 - Led 12 - Encendido
digitalWrite(13,LOW);
digitalWrite(12,HIGH);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
delay(tiempoMiliSegundos);
//Estado # 3 - Led 11 - Encendido
digitalWrite(13,LOW);
digitalWrite(12,LOW);
digitalWrite(11,HIGH);
digitalWrite(10,LOW);
delay(tiempoMiliSegundos);
//Estado # 4 - Led 10 - Encendido
digitalWrite(13,LOW);
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(10,HIGH);
delay(tiempoMiliSegundos);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.