void setup() {
for (int pin = 2; pin < 14; pin++) {
pinMode(pin, OUTPUT);
}
}
void loop() {
for (int pin = 2; pin < 11; pin++) {
digitalWrite(pin, 1);
}
for (int pin = 11; pin < 14; pin++) {
digitalWrite(pin, 1);
delay(500);
}
for (int pin = 13; pin > 10; pin--) {
digitalWrite(pin, 0);
delay(500);
}
}
No hay comentarios.:
Publicar un comentario