EasyButton icon indicating copy to clipboard operation
EasyButton copied to clipboard

Feature request: onReleasedFor()

Open vergissberlin opened this issue 7 years ago • 1 comments

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 avatar Nov 15 '18 23:11 vergissberlin

@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

evert-arias avatar Nov 21 '18 02:11 evert-arias