From 6f7f0e8e59f1840b5f7eb6cae4f1e4d83c68ab66 Mon Sep 17 00:00:00 2001 From: hugo Date: Mon, 21 Oct 2024 10:37:29 +0200 Subject: [PATCH] rearrange pin order --- model/MicroBitIO.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/model/MicroBitIO.cpp b/model/MicroBitIO.cpp index 0a6e72f4..d501e6c2 100644 --- a/model/MicroBitIO.cpp +++ b/model/MicroBitIO.cpp @@ -71,16 +71,6 @@ MicroBitIO::MicroBitIO(NRF52ADC &a, TouchSensor &s) : /// P20(ID_PIN_P20, P1_00, PIN_CAPABILITY_AD), A0SDA(ID_PIN_P20, P1_00, PIN_CAPABILITY_AD), //[Calliope] Place holder for micro:bit pin P3 (P0_31) : DELETE - // Calliope mini3 - RGB(ID_PIN_RGB, P0_07, PIN_CAPABILITY_AD),// RGBLED P0_07 - M_A_IN1(ID_PIN_M_A_IN1, P1_01, PIN_CAPABILITY_AD),// Motor A IN1 P1_01 - M_A_IN2(ID_PIN_M_A_IN2, P0_27, PIN_CAPABILITY_AD),// Motor A IN2 P0_27 - M_B_IN1(ID_PIN_M_B_IN1, P1_07, PIN_CAPABILITY_AD),// Motor B IN1 P1_07 - M_B_IN2(ID_PIN_M_B_IN2, P1_09, PIN_CAPABILITY_AD),// Motor B IN2 P1_09 - M_MODE(ID_PIN_M_MODE, P1_06, PIN_CAPABILITY_AD),// Motor Mode P1_06 - //PAD3(ID_PIN_PAD3, P1_03, PIN_CAPABILITY_AD),// PAD 3 P1_03 - //GA0(ID_PIN_GA0, P0_29, PIN_CAPABILITY_AD),// Grove Analog P0_29 - // Other exposed pins logo(ID_PIN_LOGO, P1_04, PIN_CAPABILITY_AD), @@ -99,6 +89,16 @@ MicroBitIO::MicroBitIO(NRF52ADC &a, TouchSensor &s) : usbRx(ID_PIN_USBRX, MICROBIT_PIN_UART_RX, PIN_CAPABILITY_DIGITAL), irq1(ID_PIN_IRQ1, P0_25, PIN_CAPABILITY_AD), + // Calliope mini3 + RGB(ID_PIN_RGB, P0_07, PIN_CAPABILITY_AD),// RGBLED P0_07 + M_A_IN1(ID_PIN_M_A_IN1, P1_01, PIN_CAPABILITY_AD),// Motor A IN1 P1_01 + M_A_IN2(ID_PIN_M_A_IN2, P0_27, PIN_CAPABILITY_AD),// Motor A IN2 P0_27 + M_B_IN1(ID_PIN_M_B_IN1, P1_07, PIN_CAPABILITY_AD),// Motor B IN1 P1_07 + M_B_IN2(ID_PIN_M_B_IN2, P1_09, PIN_CAPABILITY_AD),// Motor B IN2 P1_09 + M_MODE(ID_PIN_M_MODE, P1_06, PIN_CAPABILITY_AD),// Motor Mode P1_06 + //PAD3(ID_PIN_PAD3, P1_03, PIN_CAPABILITY_AD),// PAD 3 P1_03 + //GA0(ID_PIN_GA0, P0_29, PIN_CAPABILITY_AD),// Grove Analog P0_29 + // Aliases col1(P4), col2(P7),