Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Add debounce option #3

Open
tikismoke opened this issue May 31, 2016 · 1 comment
Open

Add debounce option #3

tikismoke opened this issue May 31, 2016 · 1 comment
Labels
Milestone

Comments

@tikismoke
Copy link
Owner

tikismoke commented May 31, 2016

Avoid user to add a 0.1uF on switch:

To debounce using software, add the bouncetime= parameter to a function where you specify a callback function. Bouncetime should be specified in milliseconds. For example:

add rising edge detection on a channel, ignoring further edges for 200ms for switch bounce handling
GPIO.add_event_detect(channel, GPIO.RISING, callback=my_callback, bouncetime=200)

@tikismoke tikismoke added the Todo label May 31, 2016
@tikismoke tikismoke added this to the Version 0.2 milestone May 31, 2016
@tikismoke
Copy link
Owner Author

After using the callback from #1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant