From 61b3bd28333eb5cbedffcf12f602c2025120ce43 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 3 Sep 2019 13:29:23 -0700 Subject: [PATCH] hide pin p19/p20 (#2268) --- libs/core/enums.d.ts | 4 ++++ libs/core/pins.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index facf8f2d..8c70fe7c 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -445,7 +445,9 @@ declare namespace led { P14 = 21, // MICROBIT_ID_IO_P14 P15 = 22, // MICROBIT_ID_IO_P15 P16 = 23, // MICROBIT_ID_IO_P16 + //% blockHidden=1 P19 = 24, // MICROBIT_ID_IO_P19 + //% blockHidden=1 P20 = 25, // MICROBIT_ID_IO_P20 } @@ -480,8 +482,10 @@ declare namespace led { //% block="P16 (write only)" P16 = 23, // MICROBIT_ID_IO_P16 //% block="P19 (write only)" + //% blockHidden=1 P19 = 24, // MICROBIT_ID_IO_P19 //% block="P20 (write only)" + //% blockHidden=1 P20 = 25, // MICROBIT_ID_IO_P20 } diff --git a/libs/core/pins.cpp b/libs/core/pins.cpp index dde282ba..3474e8f5 100644 --- a/libs/core/pins.cpp +++ b/libs/core/pins.cpp @@ -18,7 +18,9 @@ enum class DigitalPin { P14 = MICROBIT_ID_IO_P14, P15 = MICROBIT_ID_IO_P15, P16 = MICROBIT_ID_IO_P16, + //% blockHidden=1 P19 = MICROBIT_ID_IO_P19, + //% blockHidden=1 P20 = MICROBIT_ID_IO_P20, }; @@ -52,8 +54,10 @@ enum class AnalogPin { //% block="P16 (write only)" P16 = MICROBIT_ID_IO_P16, //% block="P19 (write only)" + //% blockHidden=1 P19 = MICROBIT_ID_IO_P19, //% block="P20 (write only)" + //% blockHidden=1 P20 = MICROBIT_ID_IO_P20 };