26 lines
1.7 KiB
JSON
26 lines
1.7 KiB
JSON
{
|
|
"devices": "Control a phone with the BBC micro:bit via Bluetooth.",
|
|
"devices.onGamepadButton": "Register code to run when the micro:bit receives a command from the paired gamepad.",
|
|
"devices.onGamepadButton|block": "on gamepad button|%NAME",
|
|
"devices.onGamepadButton|param|body": "code to run when button is pressed",
|
|
"devices.onGamepadButton|param|name": "button name",
|
|
"devices.onNotified": "Registers code to run when the device notifies about a particular event.",
|
|
"devices.onNotified|block": "on notified|%event",
|
|
"devices.onNotified|param|body": "code handler when event is triggered",
|
|
"devices.onNotified|param|event": "event description",
|
|
"devices.onSignalStrengthChanged": "Registers code to run when the device notifies about a change of signal strength.",
|
|
"devices.onSignalStrengthChanged|block": "on signal strength changed",
|
|
"devices.onSignalStrengthChanged|param|body": "Code run when the signal strength changes.",
|
|
"devices.raiseAlertTo": "Sends an ``alert`` command to the parent device.",
|
|
"devices.raiseAlertTo|block": "raise alert to|%property",
|
|
"devices.raiseAlertTo|param|event": "event description",
|
|
"devices.signalStrength": "Returns the last signal strength reported by the paired device.",
|
|
"devices.signalStrength|block": "signal strength",
|
|
"devices.tellCameraTo": "Sends a ``camera`` command to the parent device.",
|
|
"devices.tellCameraTo|block": "tell camera to|%property",
|
|
"devices.tellCameraTo|param|event": "event description",
|
|
"devices.tellRemoteControlTo": "Sends a ``remote control`` command to the parent device.",
|
|
"devices.tellRemoteControlTo|block": "tell remote control to|%property",
|
|
"devices.tellRemoteControlTo|param|event": "event description",
|
|
"devices|block": "devices"
|
|
} |