From 8e75fbff8384c1ac46305a1c9d1b7ad2665154f6 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Thu, 2 Jul 2009 21:56:16 +0000 Subject: [PATCH] corrected pin number to match diagram --- build/shared/dist/examples/Digital/Button/Button.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/shared/dist/examples/Digital/Button/Button.pde b/build/shared/dist/examples/Digital/Button/Button.pde index 1f58f7c44..8df98ec67 100644 --- a/build/shared/dist/examples/Digital/Button/Button.pde +++ b/build/shared/dist/examples/Digital/Button/Button.pde @@ -7,8 +7,8 @@ The circuit: * LED attached from pin 13 to ground - * pushbutton attached to pin 7 from +5V - * 10K resistor attached to pin 7 from ground + * pushbutton attached to pin 2 from +5V + * 10K resistor attached to pin 2 from ground * Note: on most Arduinos there is already an LED on the board attached to pin 13. @@ -24,7 +24,7 @@ // constants won't change. They're used here to // set pin numbers: -const int buttonPin = 7; // the number of the pushbutton pin +const int buttonPin = 2; // the number of the pushbutton pin const int ledPin = 13; // the number of the LED pin // variables will change: