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

Add Adafruit Metro RP2040 #8035

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Add Adafruit Metro RP2040 #8035

merged 1 commit into from
Jul 12, 2023

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented May 26, 2023

Tested on prototype board. STEMMA I2C works. SD card works with sdcardio (sdioio not implemented on RP2040).

Pin naming note:

The Metro RP2040 has a TX/RX swap switch, because on RP2040 GPIO0 must be TX and GPIO1 must be RX, which is opposite from the Arduino pin convention.

Since the RX and TX pins no longer correspond immutably to D0 and D1, ther are two possibilities I can think of for handling this:

  1. Omit board.TX and board.RX completely. User will need to specify board.D0 and board.D1 as appropriate.
  2. Have plain board.D0 and board.D1. Also have:
  • board.RX_D0_SWITCH_LEFT
  • board.TX_D1_SWITCH_LEFT
  • board.RX_D1_SWITCH_RIGHT
  • board.TX_D0_SWITCH_RIGHT

I did the latter in this PR.

@dhalbert dhalbert requested a review from ladyada May 26, 2023 16:47
@dhalbert
Copy link
Collaborator Author

@ladyada ping for eventual review

Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super stoked about the TX/RX pin naming but otherwise this looks good.

tested:

  • boots to circuitpython :) :)
  • sd card works with sdcardio
  • red LED works

@ladyada
Copy link
Member

ladyada commented Jul 12, 2023

thanks!

@jepler jepler merged commit 6b5cf55 into adafruit:main Jul 12, 2023
@dhalbert dhalbert deleted the metro-rp2040 branch July 12, 2023 16:26
@dhalbert
Copy link
Collaborator Author

I'm not super stoked about the TX/RX pin naming but otherwise this looks good.

Alternatives 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

Successfully merging this pull request may close these issues.

3 participants