mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
corrected pin number to match diagram
This commit is contained in:
parent
072a86826c
commit
8e75fbff83
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
The circuit:
|
The circuit:
|
||||||
* LED attached from pin 13 to ground
|
* LED attached from pin 13 to ground
|
||||||
* pushbutton attached to pin 7 from +5V
|
* pushbutton attached to pin 2 from +5V
|
||||||
* 10K resistor attached to pin 7 from ground
|
* 10K resistor attached to pin 2 from ground
|
||||||
|
|
||||||
* Note: on most Arduinos there is already an LED on the board
|
* Note: on most Arduinos there is already an LED on the board
|
||||||
attached to pin 13.
|
attached to pin 13.
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
// constants won't change. They're used here to
|
// constants won't change. They're used here to
|
||||||
// set pin numbers:
|
// 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
|
const int ledPin = 13; // the number of the LED pin
|
||||||
|
|
||||||
// variables will change:
|
// variables will change:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user