mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
microbit: fix pin numbers for ADC and I2C
This commit is contained in:
@@ -25,15 +25,15 @@ const (
|
|||||||
|
|
||||||
// ADC pins
|
// ADC pins
|
||||||
const (
|
const (
|
||||||
ADC0 = 0
|
ADC0 = 3 // P0 on the board
|
||||||
ADC1 = 1
|
ADC1 = 2 // P1 on the board
|
||||||
ADC2 = 2
|
ADC2 = 1 // P2 on the board
|
||||||
)
|
)
|
||||||
|
|
||||||
// I2C pins
|
// I2C pins
|
||||||
const (
|
const (
|
||||||
SDA_PIN = 20
|
SDA_PIN = 30 // P20 on the board
|
||||||
SCL_PIN = 19
|
SCL_PIN = 0 // P19 on the board
|
||||||
)
|
)
|
||||||
|
|
||||||
// LED matrix pins
|
// LED matrix pins
|
||||||
|
|||||||
Reference in New Issue
Block a user