shims and locales files

This commit is contained in:
Amerlander 2020-02-20 17:55:01 +01:00
parent b91ae2c4b5
commit 0803a13033
3 changed files with 5 additions and 5 deletions

View File

@ -390,15 +390,15 @@
"input.onLogoDown|param|body": "TODO", "input.onLogoDown|param|body": "TODO",
"input.onLogoUp": "Attaches code to run when the logo is oriented upwards and the board is vertical.", "input.onLogoUp": "Attaches code to run when the logo is oriented upwards and the board is vertical.",
"input.onLogoUp|param|body": "TODO", "input.onLogoUp|param|body": "TODO",
"input.onPinTouched": "Do something when a pin is touched and released again (while also touching the GND pin).",
"input.onPinTouched|param|body": "the code to run when event is fired on pin",
"input.onPinTouched|param|name": "the pin, eg: TouchPin.P0",
"input.onPinPressed": "Do something when a pin is touched and released again (while also touching the GND pin).", "input.onPinPressed": "Do something when a pin is touched and released again (while also touching the GND pin).",
"input.onPinPressed|param|body": "the code to run when the pin is pressed", "input.onPinPressed|param|body": "the code to run when the pin is pressed",
"input.onPinPressed|param|name": "the pin that needs to be pressed, eg: TouchPin.P0", "input.onPinPressed|param|name": "the pin that needs to be pressed, eg: TouchPin.P0",
"input.onPinReleased": "Do something when a pin is released.", "input.onPinReleased": "Do something when a pin is released.",
"input.onPinReleased|param|body": "the code to run when the pin is released", "input.onPinReleased|param|body": "the code to run when the pin is released",
"input.onPinReleased|param|name": "the pin that needs to be released, eg: TouchPin.P0", "input.onPinReleased|param|name": "the pin that needs to be released, eg: TouchPin.P0",
"input.onPinTouched": "Do something when a pin is touched and released again (while also touching the GND pin).",
"input.onPinTouched|param|body": "the code to run when event is fired on pin",
"input.onPinTouched|param|name": "the pin, eg: TouchPin.P0",
"input.onScreenDown": "Attaches code to run when the screen is facing down.", "input.onScreenDown": "Attaches code to run when the screen is facing down.",
"input.onScreenDown|param|body": "TODO", "input.onScreenDown|param|body": "TODO",
"input.onScreenUp": "Attaches code to run when the screen is facing up.", "input.onScreenUp": "Attaches code to run when the screen is facing up.",

View File

@ -313,9 +313,9 @@
"input.onButtonEvent|block": "on button %NAME| is %eventType=control_button_event_value_id", "input.onButtonEvent|block": "on button %NAME| is %eventType=control_button_event_value_id",
"input.onButtonPressed|block": "on button|%NAME|pressed", "input.onButtonPressed|block": "on button|%NAME|pressed",
"input.onGesture|block": "on |%NAME", "input.onGesture|block": "on |%NAME",
"input.onPinTouched|block": "on pin %name|is %eventType=control_button_event_value_id",
"input.onPinPressed|block": "on pin %name|pressed", "input.onPinPressed|block": "on pin %name|pressed",
"input.onPinReleased|block": "on pin %NAME|released", "input.onPinReleased|block": "on pin %NAME|released",
"input.onPinTouched|block": "on pin %name|is %eventType=control_button_event_value_id",
"input.pinIsPressed|block": "pin %NAME|is pressed", "input.pinIsPressed|block": "pin %NAME|is pressed",
"input.rotation|block": "rotation (°)|%NAME", "input.rotation|block": "rotation (°)|%NAME",
"input.runningTimeMicros|block": "running time (micros)", "input.runningTimeMicros|block": "running time (micros)",

View File

@ -270,7 +270,7 @@ declare namespace input {
* @param name the pin, eg: TouchPin.P0 * @param name the pin, eg: TouchPin.P0
* @param body the code to run when event is fired on pin * @param body the code to run when event is fired on pin
*/ */
//% help=input/on-pin-input weight=83 blockGap=32 //% help=input/on-pin-touch weight=83 blockGap=32
//% blockId=device_pin_touch block="on pin %name|is %eventType=control_button_event_value_id" shim=input::onPinTouched //% blockId=device_pin_touch block="on pin %name|is %eventType=control_button_event_value_id" shim=input::onPinTouched
function onPinTouched(name: TouchPin, eventType: int32, body: () => void): void; function onPinTouched(name: TouchPin, eventType: int32, body: () => void): void;