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

Enhancement: Debounce input pins #20

Open
zpfvo opened this issue May 14, 2017 · 0 comments
Open

Enhancement: Debounce input pins #20

zpfvo opened this issue May 14, 2017 · 0 comments

Comments

@zpfvo
Copy link
Contributor

zpfvo commented May 14, 2017

Hi,
i'm using this library in one of our products. I just came back from an EMC test and we sometimes had a problem with a toggling pin when our board was exposed to electromagnetic radiation.

We could solve the problem easily by checking if the state of the pin stayed the same for a short period of time.
I implemented this debounce logic in the callback function but i thought if this was a nice feature to be embedded in the library itself.

If you think this might be a nice idea, i will prepare a pull request to add this functionality as soon as i have some time (sry very busy atm). I think it would be nice if one activate debounce separately for the pins and also set different deboucne times.

Greetings!

@zpfvo zpfvo changed the title Enhancement: Debounce pins Enhancement: Debounce input pins May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant