mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03: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:
@ -18,7 +18,7 @@
|
|||||||
http://www.arduino.cc/en/Tutorial/KeyboardButton
|
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 previousButtonState = HIGH; // for checking the state of a pushButton
|
||||||
int counter = 0; // button push counter
|
int counter = 0; // button push counter
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user