From 884ec6f2426397f85f09ba7e567d4dbd26d4c546 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Wed, 30 Dec 2009 18:03:57 +0000 Subject: [PATCH] Fixed error in StateChangeDetection example --- .../Digital/StateChangeDetection/StateChangeDetection.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/shared/examples/Digital/StateChangeDetection/StateChangeDetection.pde b/build/shared/examples/Digital/StateChangeDetection/StateChangeDetection.pde index af52f8b58..607dfc960 100644 --- a/build/shared/examples/Digital/StateChangeDetection/StateChangeDetection.pde +++ b/build/shared/examples/Digital/StateChangeDetection/StateChangeDetection.pde @@ -16,7 +16,7 @@ most Arduino boards) created 27 Sep 2005 - modified 17 Jun 2009 + modified 30 Dec 2009 by Tom Igoe http://arduino.cc/en/Tutorial/ButtonStateChange @@ -35,6 +35,8 @@ int lastButtonState = 0; // previous state of the button void setup() { // initialize the button pin as a input: pinMode(buttonPin, INPUT); + // initialize the LED as an output: + pinMode(ledPin, OUTPUT); // initialize serial communication: Serial.begin(9600); }