On Gamepad Button

Register code to run when the micro:bit receives a command from the paired gamepad.

For another device like a smartphone to use any of the Bluetooth “services” which the micro:bit has, it must first be paired with the micro:bit. Once paired, the other device may connect to the micro:bit and exchange data relating to many of the micro:bit’s features.

devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})

Parameters

  • body: Action code to run when the the micro:bit receives a command from the paired gamepad.

See Also

tell remote control to, raise alert to, signal strength, on signal strength changed

devices