Hi,
I believe there is a bug in the 'loop' tutorial. The second loop should be:
for (i = num_pins - 1; i >= 0; i--) {
digitalWrite(pins[i], HIGH);
delay(timer);
digitalWrite(pins[i], LOW);
}
Cheers,
-robin
Hi,
I believe there is a bug in the 'loop' tutorial. The second loop should be:
for (i = num_pins - 1; i >= 0; i--) {
digitalWrite(pins[i], HIGH);
delay(timer);
digitalWrite(pins[i], LOW);
}
Cheers,
-robin
Right you are, good catch. I've corrected the web page and the example will be fixed in the next release. Thanks for the report.