From c4ef2908eedd710358a8aaf9602b789b93052b4e Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 11 Nov 2018 19:23:09 +0100 Subject: [PATCH] microbit: fix pin numbers for ADC and I2C --- src/machine/board_microbit.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/machine/board_microbit.go b/src/machine/board_microbit.go index 88e15e7a..f5c6029f 100644 --- a/src/machine/board_microbit.go +++ b/src/machine/board_microbit.go @@ -25,15 +25,15 @@ const ( // ADC pins const ( - ADC0 = 0 - ADC1 = 1 - ADC2 = 2 + ADC0 = 3 // P0 on the board + ADC1 = 2 // P1 on the board + ADC2 = 1 // P2 on the board ) // I2C pins const ( - SDA_PIN = 20 - SCL_PIN = 19 + SDA_PIN = 30 // P20 on the board + SCL_PIN = 0 // P19 on the board ) // LED matrix pins