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

Raspberry Pi Pico should have default SPI, I2C, UART pins #5041

Closed
shuyuan-liu opened this issue Jul 23, 2021 · 4 comments
Closed

Raspberry Pi Pico should have default SPI, I2C, UART pins #5041

shuyuan-liu opened this issue Jul 23, 2021 · 4 comments
Labels
board New board or update to a single board enhancement rp2040 Raspberry Pi RP2040
Milestone

Comments

@shuyuan-liu
Copy link

Hi! I'm using CircuitPython 7.0.0-alpha.5-8-g779b5c185 on a Raspberry Pi Pico.

Despite the Pico's datasheet labelling GP16-19 as default for SPI, GP4&5 as default for I2C, and GP0&1 as default for UART, there is no board.SPI(), board.I2C(), or board.UART() available.

The pinout diagram on Getting Started with Raspberry Pi Pico and CircuitPython seems outdated as it only includes the default pins for UART but not SPI or I2C. The page also states that "The Pico does not label specific pins as the defaults to use for I2C, SPI, or UART connections," whereas default pins for those functions are marked in the datasheet.

@dhalbert
Copy link
Collaborator

We discussed this in #4121 and made a decision not to do this, for the reasons given there.

@tannewt
Copy link
Member

tannewt commented Jul 23, 2021

We should revisit this. As @shuyuan-liu points out, the Pico datasheet designates defaults now:

Screenshot 2021-07-23 at 11-01-47 Raspberry Pi Pico Datasheet - pico-datasheet(1) pdf

@tannewt tannewt reopened this Jul 23, 2021
@tannewt tannewt added board New board or update to a single board rp2040 Raspberry Pi RP2040 labels Jul 23, 2021
@tannewt tannewt added this to the 7.0.0 milestone Jul 23, 2021
@dhalbert
Copy link
Collaborator

The datasheet, the SDK doc, and MicroPython all use somewhat different "default" pins. Our conclusion before was that since it's not obvious which is the most authoritative for CircuitPython, and there are no silkscreen markings, that this would be a continuing support issue. I'm not sure that situation has changed.

@tannewt
Copy link
Member

tannewt commented Aug 4, 2021

Ok, closing this because the board itself doesn't label the default busses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board New board or update to a single board enhancement rp2040 Raspberry Pi RP2040
Projects
None yet
Development

No branches or pull requests

3 participants