adafruit / Adafruit_CircuitPython_RGB_Display

Drivers for RGB displays for Adafruit CircuitPython.
MIT License
133 stars 52 forks source link

button debouncing in the gif example #107

Closed FoamyGuy closed 2 years ago

FoamyGuy commented 2 years ago

This is a different implementation to save the same problem presented in #105

This one uses debouncing logic and a few new variables to track the current and previous button states to enforce the next and previous actions to only occur if the button has been released since the last time it was pressed. It will no longer advance or back multiple times if you hold the button down.