diff --git a/libs/microbit-devices/devices.cpp b/libs/microbit-devices/devices.cpp index 880a7ef4..2caab277 100644 --- a/libs/microbit-devices/devices.cpp +++ b/libs/microbit-devices/devices.cpp @@ -129,7 +129,7 @@ namespace devices { /** * Sends a ``camera`` command to the parent device. - * @param event TODO + * @param event event description */ //% weight=30 help=devices/tell-camera-to //% blockId=devices_camera icon="\uf030" block="tell camera to|%property" blockGap=8 @@ -139,7 +139,7 @@ namespace devices { /** * Sends a ``remote control`` command to the parent device. - * @param event TODO + * @param event event description */ //% weight=29 help=devices/tell-remote-control-to //% blockId=devices_remote_control block="tell remote control to|%property" blockGap=14 icon="\uf144" @@ -149,7 +149,7 @@ namespace devices { /** * Sends an ``alert`` command to the parent device. - * @param event TODO + * @param event event description */ //% weight=27 help=devices/raise-alert-to //% blockId=devices_alert block="raise alert to|%property" icon="\uf0f3" @@ -159,19 +159,19 @@ namespace devices { /** * Registers code to run when the device notifies about a particular event. - * @param event TODO - * @param body TODO + * @param event event description + * @param body code handler when event is triggered */ //% help=devices/on-notified weight=26 - //% blockId=devices_device_info_event block="on notified" icon="\uf10a" + //% blockId=devices_device_info_event block="on notified|%event" icon="\uf10a" void onNotified(MesDeviceInfo event, Action body) { registerWithDal(MES_DEVICE_INFO_ID, (int)event, body); } /** * Register code to run when the micro:bit receives a command from the paired gamepad. - * @param name TODO - * @param body TODO + * @param name button name + * @param body code to run when button is pressed */ //% help=devices/on-gamepad-button weight=40 //% weight=25 diff --git a/libs/microbit-devices/pxt.json b/libs/microbit-devices/pxt.json index ec7b6ee6..ca3a681c 100644 --- a/libs/microbit-devices/pxt.json +++ b/libs/microbit-devices/pxt.json @@ -20,5 +20,5 @@ } } }, - "installedVersion": "zakvul" + "installedVersion": "ljipgq" } diff --git a/libs/microbit-devices/shims.d.ts b/libs/microbit-devices/shims.d.ts index 7745a194..97bf4431 100644 --- a/libs/microbit-devices/shims.d.ts +++ b/libs/microbit-devices/shims.d.ts @@ -7,7 +7,7 @@ declare namespace devices { /** * Sends a ``camera`` command to the parent device. - * @param event TODO + * @param event event description */ //% weight=30 help=devices/tell-camera-to //% blockId=devices_camera icon="\uf030" block="tell camera to|%property" blockGap=8 shim=devices::tellCameraTo @@ -15,7 +15,7 @@ declare namespace devices { /** * Sends a ``remote control`` command to the parent device. - * @param event TODO + * @param event event description */ //% weight=29 help=devices/tell-remote-control-to //% blockId=devices_remote_control block="tell remote control to|%property" blockGap=14 icon="\uf144" shim=devices::tellRemoteControlTo @@ -23,7 +23,7 @@ declare namespace devices { /** * Sends an ``alert`` command to the parent device. - * @param event TODO + * @param event event description */ //% weight=27 help=devices/raise-alert-to //% blockId=devices_alert block="raise alert to|%property" icon="\uf0f3" shim=devices::raiseAlertTo @@ -31,17 +31,17 @@ declare namespace devices { /** * Registers code to run when the device notifies about a particular event. - * @param event TODO - * @param body TODO + * @param event event description + * @param body code handler when event is triggered */ //% help=devices/on-notified weight=26 - //% blockId=devices_device_info_event block="on notified" icon="\uf10a" shim=devices::onNotified + //% blockId=devices_device_info_event block="on notified|%event" icon="\uf10a" shim=devices::onNotified function onNotified(event: MesDeviceInfo, body: () => void): void; /** * Register code to run when the micro:bit receives a command from the paired gamepad. - * @param name TODO - * @param body TODO + * @param name button name + * @param body code to run when button is pressed */ //% help=devices/on-gamepad-button weight=40 //% weight=25