
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.
Run some code in your program when the micro:bit logo is pressed, touched, or released.
input.onLogoEvent(TouchButtonEvent.Pressed, function () {})

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. The logo will detect your touch. You can have code inside an event that will run when the logo is pressed.
released, pressed, touched or long pressed.Show a message on the LEDs when the micro:bit logo is pressed.
input.onLogoEvent(TouchButtonEvent.Pressed, function () {
basic.showString("I was pressed!")
})
micro:bit V2, logo is pressed, on pin pressed, touch set mode