BOCETO 1 LED 13
void setup() {
}
void loop() {
digitalWrite(13,HIGH);
delay(1000);
digitalWrite(13,LOW);
delay(1000);
}
BOCETO 1 LED 2
void setup() {
}
void loop() {
digitalWrite(2,HIGH);
delay(1000);
digitalWrIte(2,LOW);
delay(1000);
}
BOCETO 2 LEDS
1-
void loop() {
digitalWrite(2,HIGH);
digitalWrite(2,LOW);
.
delay(2000);
digitalWrite(3,HIGH);
digitalWrite(3,LOW);
delay(2000);
}
2-
void setup() {
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);}
void loop() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
delay(2000);
digitalWrite(2,LOW);
digitalWrite(3,LOW);
delay(2000);
}
BOCETO SEMAFORO
void setup() {
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
}
void loop() {
digitalWrite(2,HIGH);
delay(4000);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
delay(2000);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
delay(4000);
digitalWrite(4,LOW);
digitalWrite(3,HIGH);
delay(2000);
digitalWrite(3,LOW);
}
0 comentarios:
Publicar un comentario