-
Notifications
You must be signed in to change notification settings - Fork 0
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
Quick Press of Button messes up PIO on DebouncerLowPIO #1
Comments
Thanks for the bug report. I'll give it a test. Can I just confirm that
you're using the latest version of Debouncer PIO (I updated it yesterday)?
You'll need the latest micropython firmware (from
https://www.raspberrypi.org/documentation/pico/getting-started/) in order
for it to run properly as there's a new feature in PIO which this needs.
Thanks,
Ben
…On Fri, 12 Feb 2021 at 00:43, Brandon Ingli ***@***.***> wrote:
Expected Behavior
Quickly pressing a button won't register a press, but will allow for a
subsequent press.
Actual Behavior
Quickly pressing and releasing a button messes up the state machine
somehow and prevents all subsequent presses until the board is reset.
Steps to Reproduce
1. Start the button object
2. Press and release the physical button very rapidly
Additional Information
The same behavior isn't observed when using DebouncerHighPIO
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHMR7AAPJ3FWLUMBU7W6SX3S6R2T7ANCNFSM4XP2BWJQ>
.
|
Yes, I'm running the latest version of both your script and the micropython firmware. |
Hmm. I think we're hitting a bug on MicroPython PIO. I think it does something odd sometimes when you have a label at the end of a program - I hit this before with debouncerHigh, but didn't seem to get it on Low. I've added an extra instruction that does nothing at the end. I think that will solve it, but I've had trouble reproducing it here, so let me know how you get on. |
That patch seems to have fixed the issue. |
Expected Behavior
Quickly pressing a button won't register a press, but will allow for a subsequent press.
Actual Behavior
Quickly pressing and releasing a button messes up the state machine somehow and prevents all subsequent presses until the board is reset.
Steps to Reproduce
Additional Information
The same behavior isn't observed when using
DebouncerHighPIO
The text was updated successfully, but these errors were encountered: