microbit: fix pin numbers for ADC and I2C

This commit is contained in:
Ayke van Laethem
2018-11-11 19:23:09 +01:00
parent 26acc89f9c
commit c4ef2908ee
+5 -5
View File
@@ -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