Skip to content

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

Description

@s-celles

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions