diff --git a/libs/calliope-test/calliope.ts b/libs/calliope-test/calliope.ts index 44f2091d..57b43168 100644 --- a/libs/calliope-test/calliope.ts +++ b/libs/calliope-test/calliope.ts @@ -1,4 +1,3 @@ -/*basic.showString("RGB") basic.setLedColor(Colors.Blue) basic.pause(500) basic.setLedColor(Colors.Red) @@ -8,7 +7,6 @@ basic.pause(500) basic.setLedColor(Colors.Violet) basic.pause(500) basic.setLedColor(0); -basic.showString("Gesten") input.onGesture(Gesture.Shake, () => { basic.showString("S") }) @@ -39,7 +37,6 @@ input.onGesture(Gesture.ThreeG, () => { input.onGesture(Gesture.SixG, () => { basic.showString("6") }) -*/ input.onPinPressed(TouchPin.P0, () => { basic.showNumber(0) }) diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index eb921b58..0e0e68de 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -37,7 +37,7 @@ declare namespace basic { P0 = 7, // MICROBIT_ID_IO_P0 P1 = 8, // MICROBIT_ID_IO_P1 P2 = 9, // MICROBIT_ID_IO_P2 - P3 = 33, // CALLIOPE_ID_IO_P3 + P3 = 40, // CALLIOPE_ID_IO_P22 } @@ -264,6 +264,7 @@ declare namespace motors { //P16 = MICROBIT_ID_IO_P16, P19 = 24, // MICROBIT_ID_IO_P19 P20 = 25, // MICROBIT_ID_IO_P20 + P22 = 40, // CALLIOPE_ID_IO_P22 } diff --git a/libs/core/input.cpp b/libs/core/input.cpp index c8c0b181..0b3b1a45 100644 --- a/libs/core/input.cpp +++ b/libs/core/input.cpp @@ -29,7 +29,7 @@ enum class TouchPin { P0 = MICROBIT_ID_IO_P0, P1 = MICROBIT_ID_IO_P1, P2 = MICROBIT_ID_IO_P2, - P3 = CALLIOPE_ID_IO_P3 + P3 = CALLIOPE_ID_IO_P22 }; enum class AcceleratorRange {