mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
changed the pin where to connect the button from 2 to 4 to be compliant with the comment in the header and the tutorial.
Fixes #1396
This commit is contained in:
parent
c111f66112
commit
0db906f175
@ -18,7 +18,7 @@
|
||||
http://www.arduino.cc/en/Tutorial/KeyboardButton
|
||||
*/
|
||||
|
||||
const int buttonPin = 2; // input pin for pushbutton
|
||||
const int buttonPin = 4; // input pin for pushbutton
|
||||
int previousButtonState = HIGH; // for checking the state of a pushButton
|
||||
int counter = 0; // button push counter
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user