From 7df8e8db42c30be37c2b763b1ebc63dbfa751119 Mon Sep 17 00:00:00 2001 From: sago35 Date: Fri, 24 Sep 2021 10:24:21 +0900 Subject: [PATCH] feather-stm32f405, feather-rp2040: add I2C pin names --- src/machine/board_feather-stm32f405.go | 3 +++ src/machine/board_feather_rp2040.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/machine/board_feather-stm32f405.go b/src/machine/board_feather-stm32f405.go index ebba9edc..0fd14956 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 9226760b..77981b23 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