{{ message }}
Conversation
cumin777
force-pushed
the
fix-xiao-rp2040-plus-pin-map
branch
from
September 10, 2026 08:05
0f96583 to
e4c915f
Compare
D13 and D15 were mapped to each other's GPIO. Per the Seeed Studio wiki pin map and the board schematic, D13 is wired to GPIO21 (SCL1) and D15 to GPIO19. This also makes D13 agree with the existing SCL1 entry (GPIO21) and D14 with SDA1 (GPIO20). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: cumin <13809292481@163.com>
cumin777
force-pushed
the
fix-xiao-rp2040-plus-pin-map
branch
from
September 10, 2026 08:06
e4c915f to
d8da830
Compare
earlephilhower
pushed a commit
to earlephilhower/arduino-pico
that referenced
this pull request
Sep 10, 2026
D13 and D15 were mapped to each other GPIO. Per the official Seeed wiki pin map and the board schematic, D13 is GPIO21 (SCL1) and D15 is GPIO19; the actual pad order is 18, 21, 20, 19, not sequential. Also correct the neighboring comments: SDA1 is on D14 (GPIO20), and PIN_WIRE1_SCL (GPIO21) is D13. MicroPython had the identical bug, fixed in micropython/micropython#19695 Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Fixes a swapped pin mapping for the Seeed Studio XIAO RP2040 Plus that was introduced in #19253 (the Plus-only pins live in
SEEED_XIAO_RP2040/pins.csv).Problem:
D13was mapped toGPIO19andD15toGPIO21, but on the actual hardware D13 is wired to GPIO21 and D15 to GPIO19.Evidence:
D13 = GPIO21 (I2C1 clock),D14 = GPIO20 (I2C1 data),D15 = GPIO19(https://wiki.seeedstudio.com/XIAO-RP2040/, "Pin Map" table).GPIO21/SCL1/D13,GPIO20/SDA1/D14,GPIO19/D15.SCL1,GPIO21andSDA1,GPIO20, and the wiki/schematic identify D13 as SCL1 and D14 as SDA1, so D13 must be GPIO21.The mistaken sequential assignment (
GPIO18,19,20,21->D12..D15) also exists in the arduino-picoseeed_xiao_rp2040_plusvariant and will be reported there separately.Effect of the bug: code referring to board pins
D13/D15(e.g.machine.Pin("D13")) drove the opposite pad.SCL1/SDA1and the other Plus-only pins were unaffected.Fix: swap the two GPIO values so that
D13,GPIO21andD15,GPIO19.