Skip to content

Commit

Permalink
error en ejercicio 9
Browse files Browse the repository at this point in the history
  • Loading branch information
aprendiendo-arduino committed Oct 20, 2017
1 parent 4d61595 commit f0a6bd8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ int timer = 100;

void setup() {
// we make all the declarations at once
for (count = 0; count < 6; count++) {
for (count = 0; count < 5; count++) {
pinMode(pinArray[count], OUTPUT);
}
}

void loop() {
//timer = analogRead(A0); //El valor leido por analog read es el temporizador
for (count = 0; count < 6; count++) {
for (count = 0; count < 5; count++) {
//timer = analogRead(A0);
digitalWrite(pinArray[count], HIGH);
delay(timer);
digitalWrite(pinArray[count], LOW);
delay(timer);
}
for (count = 5; count >= 0; count--) {
for (count = 4; count >= 0; count--) {
//timer = analogRead(A0);
digitalWrite(pinArray[count], HIGH);
delay(timer);
Expand Down

0 comments on commit f0a6bd8

Please sign in to comment.