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

Conditional touch features, fixes #74 #78

Closed ncmreynolds closed 1 year ago

ncmreynolds commented 1 year ago

Some ESP32 variants (C3 speciifcally) do not support touch inputs. The changes in this PR check for this rather than assuming all ESP32s support touch, before including these features.