From 771493510ce674ed441d808e86fe9d0be59d31b9 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Mon, 6 Jul 2009 18:13:39 +0000 Subject: [PATCH] Fixed variable naming error --- build/shared/dist/examples/Control/Arrays/Arrays.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/shared/dist/examples/Control/Arrays/Arrays.pde b/build/shared/dist/examples/Control/Arrays/Arrays.pde index 990dcc28c..d9d98379a 100644 --- a/build/shared/dist/examples/Control/Arrays/Arrays.pde +++ b/build/shared/dist/examples/Control/Arrays/Arrays.pde @@ -35,7 +35,7 @@ void setup() { void loop() { // loop from the lowest pin to the highest: - for (int thisPin = 0; i < pinCount; thisPin++) { + for (int thisPin = 0; thisPin < pinCount; thisPin++) { // turn the pin on: digitalWrite(ledPins[thisPin], HIGH); delay(timer); @@ -45,7 +45,7 @@ void loop() { } // loop from the highest pin to the lowest: - for (thisPin = pinCount - 1; thisPin >= 0; thisPin--) { + for (int thisPin = pinCount - 1; thisPin >= 0; thisPin--) { // turn the pin on: digitalWrite(ledPins[thisPin], HIGH); delay(timer);