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

Added setPin() function #91

Open prakai opened 7 months ago

prakai commented 7 months ago

Added setPin() function to allow GPIO to be set/changed after creating an EasyButton Instant. It must be set/changed before calling start().