aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohn Clark <[email protected]>2023-02-19 18:57:57 -0500
committerRon Evans <[email protected]>2023-02-24 02:20:26 +0100
commitbad7bfc4d55bacd8ad8ef0fae7f93f3864279243 (patch)
tree96de14a8529c09d60f3c62a3dcebfd57b00800bb
parentad1da7d26f735a9edbd30383b1972f99512baf85 (diff)
downloadtinygo-bad7bfc4d55bacd8ad8ef0fae7f93f3864279243.tar.gz
tinygo-bad7bfc4d55bacd8ad8ef0fae7f93f3864279243.zip
Pins D4 & D5 are I2C1. Use pins D2 & D3 for I2C0.
Signed-off-by: John Clark <[email protected]>
-rw-r--r--src/machine/board_xiao-rp2040.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/machine/board_xiao-rp2040.go b/src/machine/board_xiao-rp2040.go
index 197ad31fe..272fcc599 100644
--- a/src/machine/board_xiao-rp2040.go
+++ b/src/machine/board_xiao-rp2040.go
@@ -50,11 +50,11 @@ const (
// I2C pins
const (
- I2C0_SDA_PIN Pin = D4
- I2C0_SCL_PIN Pin = D5
+ I2C0_SDA_PIN Pin = D2
+ I2C0_SCL_PIN Pin = D3
- I2C1_SDA_PIN Pin = NoPin
- I2C1_SCL_PIN Pin = NoPin
+ I2C1_SDA_PIN Pin = D4
+ I2C1_SCL_PIN Pin = D5
)
// SPI pins