Microbit Button

Microbit_Button

The Microbit_Button extension provides App Inventor with information about the state of the BBC micro:bit’s buttons. Developers can use this extension to request updates for when a user presses a button or read the current state of the buttons. The buttons have three states:

Properties

get Microbit_Button1 BluetoothDevice

set Microbit_Button1 BluetoothDevice  to

Methods

call Microbit_Button1 ReadButtonAState

call Microbit_Button1 ReadButtonBState

call Microbit_Button1 RequestButtonAStateUpdates

call Microbit_Button1 RequestButtonBStateUpdates

call Microbit_Button1 StopButtonAStateUpdates

call Microbit_Button1 StopButtonBStateUpdates

Events

when Microbit_Button1 ButtonAStateReceived Button_State_Value do

when Microbit_Button1 ButtonBStateReceived Button_State_Value do