aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsago35 <[email protected]>2021-09-24 10:24:21 +0900
committerRon Evans <[email protected]>2021-09-27 12:37:26 +0200
commit7df8e8db42c30be37c2b763b1ebc63dbfa751119 (patch)
tree04542cb33a61a2938962320e40ac9165a0e95008
parent25011c50783b55cae85833f0e7c60f2726a25a1a (diff)
downloadtinygo-7df8e8db42c30be37c2b763b1ebc63dbfa751119.tar.gz
tinygo-7df8e8db42c30be37c2b763b1ebc63dbfa751119.zip
feather-stm32f405, feather-rp2040: add I2C pin names
-rw-r--r--src/machine/board_feather-stm32f405.go3
-rw-r--r--src/machine/board_feather_rp2040.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/machine/board_feather-stm32f405.go b/src/machine/board_feather-stm32f405.go
index ebba9edc8..0fd149567 100644
--- a/src/machine/board_feather-stm32f405.go
+++ b/src/machine/board_feather-stm32f405.go
@@ -231,6 +231,9 @@ const (
I2C_SDA_PIN = I2C0_SDA_PIN // default/primary I2C pins
I2C_SCL_PIN = I2C0_SCL_PIN //
+
+ SDA_PIN = I2C0_SDA_PIN
+ SCL_PIN = I2C0_SCL_PIN
)
var (
diff --git a/src/machine/board_feather_rp2040.go b/src/machine/board_feather_rp2040.go
index 9226760bd..77981b230 100644
--- a/src/machine/board_feather_rp2040.go
+++ b/src/machine/board_feather_rp2040.go
@@ -38,6 +38,9 @@ const (
I2C1_SDA_PIN = GPIO2
I2C1_SCL_PIN = GPIO3
+
+ SDA_PIN = I2C1_SDA_PIN
+ SCL_PIN = I2C1_SCL_PIN
)
// SPI default pins