2.0.0 - Long press and double click refactoring
This release refactors the Button class to behave more similarly to the Debouncer class. This is a breaking change due to the renaming of the active_down
argument which is now more clearly named value_when_pressed
. Any code not using Button and the active_down
argument specifically should be unaffected. Thank you @Neradoc
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-debouncer
.
Read the docs for info on how to use it.