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

Interrupt operation is unstable #84

Open m1cje opened 1 year ago

m1cje commented 1 year ago

When using interrupts the MCU will randomly hang and/or reset. Probably this is due to the global variables accessed by the read() function are not declared as volatile.