EasyButton
EasyButton copied to clipboard
Feature request: onReleasedFor()
Hi!
thank you very much for this library! I try to get an event, after the button was released after a long press. I tried it in that way but without success:
button.read();
if(button.wasReleased() && button.pressedFor(2000)) {
Serial.println("Button was released after a long press!");
}
What I looking for is actually something like: onReleasedFor(2000)
Do you have an idea how to do that? Thanks, André
@vergissberlin Hi. I will definitely do my best to add the requested function in the near future. Feel free to comment on any other opinion or bug. Thanks, Evert