Button
Button copied to clipboard
A big update of Tom Igoe's fork of Alexander Brevig's Button library for Arduino. Check out the Readme for all the details!
The DoubleClick example, the setup() function is missing a call to the Button::setdoubleclickThreshold(time) member. Therefore double clicks are never detected. void setup(){ Serial.begin(9600); Serial.println("Started"); pinMode(ledPin,OUTPUT); //LED on pin 12 Button1.setdoubleclickThreshold(500)...
In Button.cpp, the doubleclickFound flag is not cleared until the next time the button is pressed. The Button::isDoubleClicked() member will return true every time it is called until the button...
Hi, i noticed the debounce functionality only works in pressHandlers, but not when you call isPressed() method in the loop(). I instantiated the button like this Button myButton = Button(19,...