evert-arias / EasyButton

Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
https://easybtn.earias.me
MIT License
447 stars 62 forks source link

Press duration #66

Closed dynek closed 2 years ago

dynek commented 2 years ago

Hey,

I'm not seeing much activity, reason why I did not submit a PR straight away. Is this codebase still maintained?

I'd like to make a suggestion to fetch how long the button has been pushed from within onPressed's callback. Reason is I'd like to have a button with different actions if it's pressed for 1, 2, x seconds.

Thank you

dynek commented 2 years ago

Ended up using AceButton.