Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
board.TX
andboard.RX
completely. User will need to specifyboard.D0
andboard.D1
as appropriate.board.D0
andboard.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.