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

Switch / Push button : short pressed / long pressed events #98

Open
s-celles opened this issue Nov 13, 2015 · 0 comments
Open

Switch / Push button : short pressed / long pressed events #98

s-celles opened this issue Nov 13, 2015 · 0 comments

Comments

@s-celles
Copy link
Contributor

Hello,

I think it will be nice to have an API to support short pressed / long pressed events with Switch (or maybe in an other class like PushButton).

here is an example
https://github.com/martinohanlon/pelmetcam/blob/master/pelmetcam.py (see ButtonControl class)
with Raspberry and RPi.GPIO

see also (sorry in french) http://hardware-libre.fr/2014/03/raspberry-pi-plusieurs-fonctions-avec-un-seul-bouton-2/

Kind regards

@s-celles s-celles changed the title Switch : short pressed / long pressed events Switch / Push button : short pressed / long pressed events Dec 5, 2015
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