Skip to content

Commit 0780c1d

Browse files
committed
OUTPUT_CTR and I2C0
1 parent b6b6648 commit 0780c1d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/machine/board_wioterminal.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ const (
7373
WIO_5S_RIGHT = SWITCH_Z
7474
WIO_5S_DOWN = SWITCH_B
7575
WIO_5S_PRESS = SWITCH_U
76+
77+
OUTPUT_CTR_5V = PC14
78+
OUTPUT_CTR_3V3 = PC15
7679
)
7780

7881
// UART0 aka USBCDC pins
@@ -95,15 +98,15 @@ const (
9598

9699
// I2C pins
97100
const (
98-
SDA_PIN = D22 // SDA: SERCOM2/PAD[0]
99-
SCL_PIN = D21 // SCL: SERCOM2/PAD[1]
101+
SDA_PIN = D21 // SDA: SERCOM4/PAD[0]
102+
SCL_PIN = D22 // SCL: SERCOM4/PAD[1]
100103
)
101104

102105
// I2C on the Feather M4.
103106
var (
104107
I2C0 = I2C{
105-
Bus: sam.SERCOM2_I2CM,
106-
SERCOM: 2,
108+
Bus: sam.SERCOM4_I2CM,
109+
SERCOM: 4,
107110
}
108111
)
109112

0 commit comments

Comments
 (0)