Reduce heap allocation in interrupt handler in order to work with tinygo @ >0.28.0
API changes:
- Removed the
Bounce
struct - Added
State()
method to get the state of the pin on-demand. Could be useful for checking a button state as some kind of modifier key - Removed the error return value from
Duration()
- Renamed
Relay()
toDebounce()