
This block requires the micro:bit V2 hardware. If you use this block with a micro:bit v1 board, you will see the 927 error code on the screen.
Check if the micro:bit logo is currently being pressed.
input.logoIsPressed()
This block requires the micro:bit V2 hardware. If you use this block with a micro:bit v1 board, you will see the 927 error code on the screen.
The logo on the micro:bit works just like a touch pin. You can check the whether or not the logo is currently being pressed. You use the boolean value for the status of the logo press to make a logical decision in your program.
true if the logo is pressed, false if the logo is not pressed.Show an icon on the LEDs while the logo is pressed.
basic.forever(function () {
    if (input.logoIsPressed()) {
        basic.showIcon(IconNames.Diamond)
    } else {
        basic.clearScreen()
    }
})