mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
corrected pin number to match diagram
This commit is contained in:
parent
072a86826c
commit
8e75fbff83
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user