MakeCode extension to disable and enable the micro:bit(V2) buttons A and B (P5 and P11 can be used as GPIOs).
Open MakeCode and select '+ Extensions' in the menu. You need to enter this project URL https://github.com/brabl2/pxt-buttons in the search field, hit return and then select the buttons extension.
Licensed under the MIT License (MIT). See LICENSE file for more details.
- for PXT/microbit(V2)