Skip to content

Commit 5f30bbb

Browse files
inindevdeadprogram
authored andcommitted
Pins D4 & D5 are I2C1. Use pins D2 & D3 for I2C0.
Signed-off-by: John Clark <[email protected]>
1 parent 5087951 commit 5f30bbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/machine/board_xiao-rp2040.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ const (
5050

5151
// I2C pins
5252
const (
53-
I2C0_SDA_PIN Pin = D4
54-
I2C0_SCL_PIN Pin = D5
53+
I2C0_SDA_PIN Pin = D2
54+
I2C0_SCL_PIN Pin = D3
5555

56-
I2C1_SDA_PIN Pin = NoPin
57-
I2C1_SCL_PIN Pin = NoPin
56+
I2C1_SDA_PIN Pin = D4
57+
I2C1_SCL_PIN Pin = D5
5858
)
5959

6060
// SPI pins

0 commit comments

Comments
 (0)