feather-stm32f405, feather-rp2040: add I2C pin names

This commit is contained in:
sago35
2021-09-24 10:24:21 +09:00
committed by Ron Evans
parent 25011c5078
commit 7df8e8db42
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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 (
+3
View File
@@ -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