Seeed Studio XIAO RP2040 with Arduino | Seeed Studio Wiki #230
-
Seeed Studio XIAO RP2040 with Arduino | Seeed Studio WikiSeeed Studio XIAO RP2040 with Arduino |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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