Skip to content

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

@s-celles

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions