Button
Button copied to clipboard
debounce only works in pressHandler not for isPressed() method
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, BUTTON_PULLDOWN, true, 50);
Thanks!
Debouncing occurs in the process() method, which is called by isPressed() if you pass it true, are you doing isPressed(true)?