From 3b331379333ada9c43983d3bfcccb2413c5f2977 Mon Sep 17 00:00:00 2001 From: Amerlander Date: Tue, 26 Sep 2023 17:03:05 +0200 Subject: [PATCH] Change visible Pin names --- libs/core/enums.d.ts | 25 +++++++++++++++++-------- libs/core/pins.cpp | 25 +++++++++++++++++-------- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index bb206f8c7..e8b7efeea 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -445,43 +445,52 @@ declare namespace input { P2 = 102, // MICROBIT_ID_IO_P2 P3 = 103, // MICROBIT_ID_IO_P3 - //% blockHidden=true C4 = 104, // MICROBIT_ID_IO_P4 + //% blockHidden=true P4 = 104, // MICROBIT_ID_IO_P4 C5 = 105, // MICROBIT_ID_IO_P5 + //% blockHidden=true P5 = 105, // MICROBIT_ID_IO_P5 - //% blockHidden=true C6 = 106, // MICROBIT_ID_IO_P6 + //% blockHidden=true P6 = 106, // MICROBIT_ID_IO_P6 - //% blockHidden=true C7 = 107, // MICROBIT_ID_IO_P7 + //% blockHidden=true P7 = 107, // MICROBIT_ID_IO_P7 - //% blockHidden=true C8 = 108, // MICROBIT_ID_IO_P8 + //% blockHidden=true P8 = 108, // MICROBIT_ID_IO_P8 - //% blockHidden=true C9 = 109, // MICROBIT_ID_IO_P9 + //% blockHidden=true P9 = 109, // MICROBIT_ID_IO_P9 - //% blockHidden=true C10 = 110, // MICROBIT_ID_IO_P10 + //% blockHidden=true P10 = 110, // MICROBIT_ID_IO_P10 - //% blockHidden=true + C11 = 111, // MICROBIT_ID_IO_P11 + //% blockHidden=true P11 = 111, // MICROBIT_ID_IO_P11 - //% blockHidden=true C12 = 112, // MICROBIT_ID_IO_P12 + //% blockHidden=true P12 = 112, // MICROBIT_ID_IO_P12 + C13 = 113, // MICROBIT_ID_IO_P13 + C14 = 114, // MICROBIT_ID_IO_P14 + C15 = 115, // MICROBIT_ID_IO_P15 + + //% blockHidden=true P13 = 113, // MICROBIT_ID_IO_P13 + //% blockHidden=true P14 = 114, // MICROBIT_ID_IO_P14 + //% blockHidden=true P15 = 115, // MICROBIT_ID_IO_P15 //% blockHidden=true diff --git a/libs/core/pins.cpp b/libs/core/pins.cpp index 91fdc4499..d0dc77cee 100644 --- a/libs/core/pins.cpp +++ b/libs/core/pins.cpp @@ -13,43 +13,52 @@ enum class DigitalPin { P2 = MICROBIT_ID_IO_P2, // edge connector 2 P3 = MICROBIT_ID_IO_P3, // edge connector 3 - //% blockHidden=true C4 = MICROBIT_ID_IO_P4, // -> P4 + //% blockHidden=true P4 = MICROBIT_ID_IO_P4, // LED matrix COLUMN 1 C5 = MICROBIT_ID_IO_P5, // -> P5 + //% blockHidden=true P5 = MICROBIT_ID_IO_P5, // LED matrix COLUMN 2 - //% blockHidden=true C6 = MICROBIT_ID_IO_P6, // -> P6 + //% blockHidden=true P6 = MICROBIT_ID_IO_P6, // LED matrix COLUMN 3 - //% blockHidden=true C7 = MICROBIT_ID_IO_P7, // -> P7 + //% blockHidden=true P7 = MICROBIT_ID_IO_P7, // LED matrix COLUMN 4 - //% blockHidden=true C8 = MICROBIT_ID_IO_P8, // -> P8 + //% blockHidden=true P8 = MICROBIT_ID_IO_P8, // LED matrix COLUMN 5 - //% blockHidden=true C9 = MICROBIT_ID_IO_P9, // -> P9 + //% blockHidden=true P9 = MICROBIT_ID_IO_P9, // LED matrix COLUMN 6 - //% blockHidden=true C10 = MICROBIT_ID_IO_P10, // -> P10 + //% blockHidden=true P10 = MICROBIT_ID_IO_P10, // LED matrix COLUMN 7 - //% blockHidden=true + C11 = MICROBIT_ID_IO_P11, // -> P11 + //% blockHidden=true P11 = MICROBIT_ID_IO_P11, // LED matrix COLUMN 8 - //% blockHidden=true C12 = MICROBIT_ID_IO_P12, // -> P12 + //% blockHidden=true P12 = MICROBIT_ID_IO_P12, // LED matrix COLUMN 9 + C13 = MICROBIT_ID_IO_P13, // LED matrix ROW 1 + C14 = MICROBIT_ID_IO_P14, // LED matrix ROW 2 + C15 = MICROBIT_ID_IO_P15, // LED matrix ROW 3 + + //% blockHidden=true P13 = MICROBIT_ID_IO_P13, // LED matrix ROW 1 + //% blockHidden=true P14 = MICROBIT_ID_IO_P14, // LED matrix ROW 2 + //% blockHidden=true P15 = MICROBIT_ID_IO_P15, // LED matrix ROW 3 //% blockHidden=true