Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/selfhostedhome/micropython-debounce-switch
MicroPython Class for Debouncing Switches
https://github.com/selfhostedhome/micropython-debounce-switch
Last synced: 3 months ago
JSON representation
MicroPython Class for Debouncing Switches
- Host: GitHub
- URL: https://github.com/selfhostedhome/micropython-debounce-switch
- Owner: selfhostedhome
- License: mit
- Created: 2018-07-24T11:32:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T10:58:36.000Z (about 6 years ago)
- Last Synced: 2024-04-22T12:34:53.876Z (7 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-debounce-switch - MicroPython Class for Debouncing Switches. (Libraries / IO)
README
# micropython-debounce-switch
A MicroPython Class for Debouncing Switches. Read the [full blog article](https://selfhostedhome.com/debouncing-buttons-in-micropython/).
## Files
* `switch.py` is complete source for the class
* `switch.mpy` is the cross-compiled version for *MicroPython v1.9.4*.
* `example/main.py` shows an example of the class in action.I recommend using the cross-compiled version or cross-compiling your own version
to save on memory usage. Note that the version it was cross-compiled for must
match the version of MicroPython you are running.