Skip to content

Commit 0db906f

Browse files
committed
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
1 parent c111f66 commit 0db906f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
http://www.arduino.cc/en/Tutorial/KeyboardButton
1919
*/
2020

21-
const int buttonPin = 2; // input pin for pushbutton
21+
const int buttonPin = 4; // input pin for pushbutton
2222
int previousButtonState = HIGH; // for checking the state of a pushButton
2323
int counter = 0; // button push counter
2424

0 commit comments

Comments
 (0)