Hello everyone!
Before complaining I want to thank you for the effort you are putting in this project :)
I am using the bouncetime parameter, which I expected to be a debounce.
I expected it to wait for a given time before generate an edge event, checking for the pin to be stable in the new state.
But instead bouncetime is a minimum time between two generated events.
The event is generated immediately, without any wait.
Possible solutions I see giving a look to the code:
- when an edge is found, set a callback after bouncetime, in this callback check the pin again, and if it is good generate the event
- to be more accurate it could generate more frequent callbacks, acting like a polling check
- or declare a function for the user to call, to poll the pin
At least... the internet should stop talking about bouncetime as a debounce