Generates different click actions from button state changes.
jag pkg install button_handler
A simple usage example.
import gpio
import buttonHandler show *
main:
pushButton := gpio.Pin GPIO_BUTTON --input --pull_up
buttonHandler := ButtonHandler pushButton
--singleClickAction= ::
print "CLICK"
...
See the examples
folder for more examples.
Please file feature requests and bugs at the issue tracker.