Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4863

Python • Re: Debouncing digital inputs, best practices ?

$
0
0
If using the gpiozero Button, you can set bounce_time:

https://gpiozero.readthedocs.io/en/stab ... tml#button
Could you please explain how to add a second parameter using the example quoted in your link.
I have the following code:

Code:

button = Button(4)
but I need to add 2 seconds bounce time for this button

Any help appreciated,

Statistics: Posted by RDS — Sat Jul 20, 2024 3:14 pm



Viewing all articles
Browse latest Browse all 4863

Trending Articles