-
Notifications
You must be signed in to change notification settings - Fork 495
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
i75/i75w: Auto-detect board and set up user button. #655
Conversation
Thanks @ageeandakeyboard. This should really do some handling of Interstate75 vs Interstate75W. GPIO23 which is used for boot button in Interstate, is the WIFI_ON pin on Interstate W, so we should not be touching that. |
Thanks. I suggested some edits. It could also do with the updates to the C++ definitions and readme too: https://github.com/pimoroni/pimoroni-pico/tree/main/libraries/interstate75 i.e. the addition of |
There must be a way to auto-detect that the code is running on a Pico W, rather than relying upon user testimony? |
Since we have Pico W and Non-W builds, we could be evil and swap out which version of interstate75 gets baked in. |
It makes sense but then we i'll need to have two differently named modules. |
I think the user-facing logic here can be replaced with |
4f489ec
to
5f9d4e3
Compare
@ageeandakeyboard if you still have i75 and i75w boards to hand, could you see if this works please? |
@Gadgetoid This works great with i75 and i75w the self.interstate75w variable detects correctly and the wifi is running fine on the i75w. |
Allows for the Interstate75 (non W) user button to be used with our new python module