X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=programming%2Floops%2Floop_3_multi_led%2Floop_3_multi_led.ino;fp=programming%2Floops%2Floop_3_multi_led%2Floop_3_multi_led.ino;h=bb7e7ce41ac7d70ba3240084f785157629bbbc7b;hb=db26862cf5427076e1b6c05b5624f3e72b307f41;hp=e736eb0d5db146d3a30e941fe305492020501fa3;hpb=8f9853f962b96d5b01e1db7cef031783c851c8dc;p=sketchbook_andrea diff --git a/programming/loops/loop_3_multi_led/loop_3_multi_led.ino b/programming/loops/loop_3_multi_led/loop_3_multi_led.ino index e736eb0..bb7e7ce 100644 --- a/programming/loops/loop_3_multi_led/loop_3_multi_led.ino +++ b/programming/loops/loop_3_multi_led/loop_3_multi_led.ino @@ -26,7 +26,7 @@ void setup() { void loop() { // loop from the lowest pin to the highest: - for (int thisPin = 2; thisPin <= 9; thisPin++) { + for (int thisPin = 2; thisPin < 9; thisPin++) { // turn the pin on: digitalWrite(thisPin, HIGH); delay(timer); @@ -35,7 +35,7 @@ void loop() { } // loop from the highest pin to the lowest: - for (int thisPin = 9; thisPin >= 2; thisPin--) { + for (int thisPin = 9; thisPin > 2; thisPin--) { // turn the pin on: digitalWrite(thisPin, HIGH); delay(timer);