aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsago35 <[email protected]>2021-05-05 14:29:47 +0900
committerRon Evans <[email protected]>2021-05-05 10:12:08 +0200
commitdd3d8a363aa4cfc27068ce379ba47edc451c57dd (patch)
tree455af5ba86d8a5e288a5874cdbef77960682bd76
parentbb509ec91dcc558752ad6768a2e26e0bc706fd71 (diff)
downloadtinygo-dd3d8a363aa4cfc27068ce379ba47edc451c57dd.tar.gz
tinygo-dd3d8a363aa4cfc27068ce379ba47edc451c57dd.zip
qtpy: fix i2c setting
-rw-r--r--src/machine/board_qtpy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/board_qtpy.go b/src/machine/board_qtpy.go
index 2d4f7fbef..e21e288a3 100644
--- a/src/machine/board_qtpy.go
+++ b/src/machine/board_qtpy.go
@@ -94,8 +94,8 @@ const (
// I2C on the QT Py M0.
var (
I2C0 = &I2C{
- Bus: sam.SERCOM2_I2CM,
- SERCOM: 2,
+ Bus: sam.SERCOM1_I2CM,
+ SERCOM: 1,
}
)