https://makecode.microbit.org/device/pins
https://makecode.microbit.org/reference/pins
****Using the Micro:bit's built-in pull-up and down resistor functions, you can create buttons without connecting any external resistors.
micro:bit code: https://makecode.microbit.org/S07229-76358-49237-90810