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
452 stars 63 forks source link

Using this library with buttons that are tied high and low when pressed #81

Closed TechOverflow closed 1 year ago

TechOverflow commented 1 year ago

Hi! Is there a way to use this library in a project that has buttons tied to gnd, but also buttons tied to vcc?

TechOverflow commented 1 year ago

RTFM, as they say. EasyButton powerButton(PWR_BTN_PIN, debounce, pullup, invert); invert is what I needed.