Grupo: Tomas Bognanni, Malena Martino, Victoria Roig
1) Boceto 1 Led 13
void setup() {
pinMode(13,OUTPUT);
}
void loop() {
digitalWrite(13,HIGH);
delay(1000);
digitalWrite(13,LOW);
delay(1000);
}
2) Boceto 1 Led 2
void setup() {
pinMode(2,OUTPUT);
}
void loop() {
digitalWrite(2,HIGH);
delay(1000);
digitalWrite(2,LOW);
delay(1000);
}
3) Boceto 2 Leds
A-
void setup() {
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
}
void loop() {
digitalWrite(2,HIGH);
digitalWrite(2,LOW);
delay(2000);
digitalWrite(3,HIGH);
digitalWrite(3,LOW);
delay(2000);
}
B-
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);
}
void setup() {
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
}
void loop() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
delay(2000);
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
delay(2000);
}
6) Boceto Semáforo
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