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

Custom SPI pins #12

Closed
biemster opened this issue Oct 16, 2023 · 3 comments
Closed

Custom SPI pins #12

biemster opened this issue Oct 16, 2023 · 3 comments

Comments

@biemster
Copy link

The README mentions it is possible to reconfigure the SPI pins on the rp2040, but the official documentation seems to refute that mentioning that the hardware spi pins are fixed.
Testing on different pins indeed does not seem to work, should this be changed in the readme?

There is a way though this might work, using PIO SPI. I'm currently trying to build this, as I am pin constrained here.

@akshayabali
Copy link
Owner

The Pi Pico board has two SPI devices. This would give you the ability to switch between them. Also, the pin mapping of these two devices can be chosen from a fixed set defined in the datasheet.

Thanks for mentioning this, I'll update the Readme to make it more clearer.

pinout.png

@biemster
Copy link
Author

I actually just got fully custom pins working with the PIO SPI, care for a PR?

@akshayabali
Copy link
Owner

That sounds great.

PRs are always welcome.

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

No branches or pull requests

2 participants