From c1d6b2ef3ded198fb0093c895d417daa4ae9cc25 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Mon, 6 Jul 2009 18:07:46 +0000 Subject: [PATCH] Fixed variable naming error --- .../examples/Control/ForLoopIteration/ForLoopIteration.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/shared/dist/examples/Control/ForLoopIteration/ForLoopIteration.pde b/build/shared/dist/examples/Control/ForLoopIteration/ForLoopIteration.pde index a675b7e45..ea7ed0fcc 100644 --- a/build/shared/dist/examples/Control/ForLoopIteration/ForLoopIteration.pde +++ b/build/shared/dist/examples/Control/ForLoopIteration/ForLoopIteration.pde @@ -26,7 +26,7 @@ void setup() { void loop() { // loop from the lowest pin to the highest: - for (int thisPin = 0; i < 8; thisPin++) { + for (int thisPin = 0; thisPin < 8; 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 (thisPin = 7; thisPin >= 2; thisPin--) { + for (int thisPin = 7; thisPin >= 2; thisPin--) { // turn the pin on: digitalWrite(thisPin, HIGH); delay(timer);