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

Button Debounce #15

Open
worlds6440 opened this issue Mar 21, 2017 · 2 comments
Open

Button Debounce #15

worlds6440 opened this issue Mar 21, 2017 · 2 comments
Assignees

Comments

@worlds6440
Copy link
Contributor

We need to cope with multiple button presses in short succession and treat as a single hit.

@worlds6440 worlds6440 self-assigned this Mar 21, 2017
@robberwick
Copy link

robberwick commented Mar 22, 2017

I would suggest that applying a decorator to any function which you wish to debounce is by far the cleanest way of doing it. There is an excellent example which you can just lift in this here gist

also, yay for function decorators.

@worlds6440
Copy link
Contributor Author

Looks good, will give that a try

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

2 participants