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

"onPressed" is actually "onRelease" ?? #57

Closed SteveRMann closed 2 years ago

SteveRMann commented 2 years ago

I run the single-press example, but I don't get the callback until the button is released. What did I miss?

jonathanschneider commented 2 years ago

That's exactly the behaviour described in the documentation.

evert-arias commented 2 years ago

Solved by @jonathanschneider