Skip to content

Seeed Studio XIAO RP2040 with Arduino | Seeed Studio Wiki #230

Answered by TheTreeSee
giscus[bot] bot asked this question in Q&A
Discussion options

You must be logged in to vote

I recently encountered a frustrating challenge while working with the XIAO RP2040 and its I2C interfaces, and I wanted to share my experience to help others who might face the same confusion.

The default I2C interface on the XIAO RP2040 is located on pins D4 and D5, corresponding to processor pins 6 and 7 (I2C1). However, it is unexpectedly mapped to "Wire0" instead of "Wire1." This can lead to confusion since the RP2040 offers two I2C interfaces accessible from multiple pins.

To utilize I2C on specific pins, such as D2-3 or P28-29 connected to I2C1 and D8-10 or P2-3 connected to I2C0, you need to use "Wire0" and "Wire1," respectively.

TLDR: I2C0 = Wire1, I2C1 = Wire0

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MatthewJeffson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant