Skip to content

adding button debouncing example #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2020

Conversation

FoamyGuy
Copy link
Contributor

A few people in the #help-with-circuitpython channel of the discord recently have asked about using the debouncer library with pybadger buttons.

Since the buttons are not connected directly to digital IO pins it needs to be setup slightly differently.

This adds an example showing the use of lambda to wrap the pybadger button values in a function that can be used with the debouncer library.

@ladyada ladyada merged commit 978488a into adafruit:master May 17, 2020
@scs217
Copy link

scs217 commented May 17, 2020

Tested with PyBadge and works fine! Thanks @FoamyGuy for the assist!

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 19, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_DS1841 to 1.0.2 from 1.0.1:
  > fixing blinka example
  > Merge pull request adafruit/Adafruit_CircuitPython_DS1841#2 from adafruit/pylint-update
  > build.yml: add black formatting check

Updating https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display to 3.9.3 from 3.9.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#80 from makermelissa/master
  > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#79 from makermelissa/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_BluefruitConnect to 1.1.2 from 1.1.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BluefruitConnect#21 from caternuson/example_update

Updating https://github.com/adafruit/Adafruit_CircuitPython_framebuf to 1.3.2 from 1.3.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#32 from xdmtk/xdmtk-patch/font-bug

Updating https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation to 2.0.1 from 2.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LED_Animation#22 from kattni/comet-tail-exception

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 2.2.2 from 2.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#32 from FoamyGuy/button_debouncer_example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants