Revista Digital Sexto semestre en electrónica 1 | Page 9

Programación:

void setup() {

pinMode(30, OUTPUT);

pinMode(31, OUTPUT);

pinMode(32, OUTPUT);

pinMode(33, OUTPUT);

}

void loop() {

digitalWrite(30, LOW);

digitalWrite(31,LOW);

digitalWrite(32, LOW);

digitalWrite(33,LOW);

delay(1500);

digitalWrite(30, HIGH);

digitalWrite(31,HIGH);

digitalWrite(32, HIGH);

digitalWrite(33,HIGH);

delay(2000);

digitalWrite(30, HIGH);

digitalWrite(31,HIGH);

digitalWrite(32, HIGH);

digitalWrite(33,LOW);

delay(500);

digitalWrite(30, HIGH);

digitalWrite(31,HIGH);

digitalWrite(32, LOW);

digitalWrite(33,LOW);

delay(500);

digitalWrite(30, HIGH);

digitalWrite(31,LOW);

digitalWrite(32, LOW);

digitalWrite(33,LOW);

delay(500);

digitalWrite(30, LOW);

digitalWrite(31,LOW);

digitalWrite(32, LOW);

digitalWrite(33,LOW);

delay(300);

digitalWrite(30, HIGH);

digitalWrite(31,HIGH);

digitalWrite(32, HIGH);

digitalWrite(33,HIGH);

delay(500);

digitalWrite(30, LOW);

digitalWrite(31,HIGH);

digitalWrite(32, HIGH);

digitalWrite(33,HIGH);

delay(500);

digitalWrite(30, LOW);

digitalWrite(31,LOW);

digitalWrite(32, HIGH);

digitalWrite(33,HIGH);

delay(500);

digitalWrite(30, LOW);

digitalWrite(31,LOW);

digitalWrite(32, LOW);

digitalWrite(33,HIGH);

delay(500);

digitalWrite(30, LOW);

digitalWrite(31,LOW);

digitalWrite(32, LOW);

digitalWrite(33,LOW);

delay(500);

Simulacion del Proyecto: