1 Answers
Hi.
At the moment, we don’t have any example for button debounce.
However, I’ve found some solutions (I haven’t tested them):
https://kaspars.net/blog/micropython-button-debounce
https://gist.github.com/jedie/8564e62b0b8349ff9051d7c5a1312ed7
Pushbutton library for the pyboard – can be useful to get some ideas from it: https://github.com/peterhinch/Micropython-scheduler/blob/master/pushbutton.py
As well as this example: https://docs.micropython.org/en/v1.6/pyboard/pyboard/tutorial/debounce.html
I hope this helps.
Regards,
Sara