EasyButton
EasyButton copied to clipboard
Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
The documentation is fantastic, the best I've ever seen. On this page there is documentation on how to enable interupts https://easybtn.earias.me/docs/fundamentals Yet its not clear what `INTERUPT` should be. Should...
Hi, I am testing the library to include it in a larger project and replace my rudimentary library to use short press and long press on various buttons. But after...
Love the lib :) This is useful to not consume unnecessary SRAM when only requiring, e.g. a single sequence, giving the possibility of saving a fair amount of resources in...
With version 1.2.1 on Interrupt example: `button.read(INTERRUPT);` generates: `error: 'INTERRUPT' was not declared in this scope`
I have a case where I am using two buttons. I am using "pressedFor" to trigger long press and if i press both buttons I can get an "extra" long...
Here is my code below. I am using the Easybutton library for reading the button state. Problem is that in the loop function, even when I press my button for...
Hi, I would like to do something like this with the same button: ` button.onPressedFor(1000, showIP); button.onPressedFor(3000, restartDevice); ` so execute two different callback based on the pressing duration. It...
Code work fine after the first press of the button. When I press by the first time is not detected (failed or missing)... second one and beyond works fine. With...
Hi I have used the example in the library examples to test the Vbutton code. I am using esp8266 (12e) and a MCP23017 non interupt I have tried both with...
Error with Digistump/attiny85 compiling. Any suggest? Thanks! C:\Users\utente\Documents\Arduino\libraries\EasyButton\src\EasyButton.cpp: In member function 'bool EasyButton::supportsInterrupt()': C:\Users\utente\Documents\Arduino\libraries\EasyButton\src\EasyButton.cpp:99:36: error: 'digitalPinToInterrupt' was not declared in this scope return (digitalPinToInterrupt(_pin) != NOT_AN_INTERRUPT); ^ C:\Users\utente\Documents\Arduino\libraries\EasyButton\src\EasyButton.cpp: In member...