Skip to content
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

Fix Button class on Pico 2W #1043

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

isaac-webb
Copy link

I just picked up a Pico 2W and GFX Pack to dip my toes into Raspberry Pi microcontrollers. While experimenting, running the button demo didn't work. I stumbled upon a few forum threads and eventually discovered #1041

This pull request modifies the Button class to specify the mode of the Pin object created within and, in my testing, this seems to fix the original example/built-in functionality that #1041 bypasses by locally creating Pin objects.

Note: I don't have the hardware to test this on any other Picos, so I only verified on my Pico 2W.

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.

1 participant