TEMA 1
SEMAFORO 1
int daniel=7;
int leo= 8;
int brayan=9;
void setup() {
pinMode(daniel,1);
pinMode(leo,1);
pinMode(brayan,1);
}
void loop() {
digitalWrite(daniel,1);
delay(3000);
digitalWrite(daniel,0);
delay(500);
digitalWrite(leo,1);
delay(1000);
digitalWrite(leo,0);
delay(500);
digitalWrite(brayan,1);
delay(3000);
digitalWrite(brayan,0);
delay(500);
digitalWrite(leo,1);
delay(1000);
digitalWrite(leo,0);
delay(500);
}
SEMAFORO 1
int daniel=7;
int leo= 8;
int brayan=9;
void setup() {
pinMode(daniel,1);
pinMode(leo,1);
pinMode(brayan,1);
}
void loop() {
digitalWrite(daniel,1);
delay(3000);
digitalWrite(daniel,0);
delay(500);
digitalWrite(leo,1);
delay(1000);
digitalWrite(leo,0);
delay(500);
digitalWrite(brayan,1);
delay(3000);
digitalWrite(brayan,0);
delay(500);
digitalWrite(leo,1);
delay(1000);
digitalWrite(leo,0);
delay(500);
}
Comentarios
Publicar un comentario