Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: onReleasedFor() #3

Open
vergissberlin opened this issue Nov 15, 2018 · 1 comment
Open

Feature request: onReleasedFor() #3

vergissberlin opened this issue Nov 15, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@vergissberlin
Copy link

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é

@evert-arias
Copy link
Owner

@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 evert-arias added the enhancement New feature or request label Nov 21, 2018
@evert-arias evert-arias self-assigned this Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants