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:
Fede85 2013-04-30 17:55:34 +02:00
parent c111f66112
commit 0db906f175
1 changed files with 1 additions and 1 deletions

View File

@ -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