shims and locales files
This commit is contained in:
parent
b91ae2c4b5
commit
0803a13033
@ -390,15 +390,15 @@
|
||||
"input.onLogoDown|param|body": "TODO",
|
||||
"input.onLogoUp": "Attaches code to run when the logo is oriented upwards and the board is vertical.",
|
||||
"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|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.onPinReleased": "Do something when a 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.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|param|body": "TODO",
|
||||
"input.onScreenUp": "Attaches code to run when the screen is facing up.",
|
||||
|
@ -313,9 +313,9 @@
|
||||
"input.onButtonEvent|block": "on button %NAME| is %eventType=control_button_event_value_id",
|
||||
"input.onButtonPressed|block": "on button|%NAME|pressed",
|
||||
"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.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.rotation|block": "rotation (°)|%NAME",
|
||||
"input.runningTimeMicros|block": "running time (micros)",
|
||||
|
2
libs/core/shims.d.ts
vendored
2
libs/core/shims.d.ts
vendored
@ -270,7 +270,7 @@ declare namespace input {
|
||||
* @param name the pin, eg: TouchPin.P0
|
||||
* @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
|
||||
function onPinTouched(name: TouchPin, eventType: int32, body: () => void): void;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user