updated shim definition
This commit is contained in:
parent
6f00384891
commit
42c766b6d7
9
libs/microbit/shims.d.ts
vendored
9
libs/microbit/shims.d.ts
vendored
@ -230,6 +230,15 @@ declare namespace input {
|
|||||||
//% icon="\uf192" blockGap=8 shim=input::buttonIsPressed
|
//% icon="\uf192" blockGap=8 shim=input::buttonIsPressed
|
||||||
function buttonIsPressed(button: Button): boolean;
|
function buttonIsPressed(button: Button): boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the pin state (pressed or not). Requires to hold the ground to close the circuit.
|
||||||
|
* @param name pin used to detect the touch
|
||||||
|
*/
|
||||||
|
//% help=input/pin-is-pressed weight=56
|
||||||
|
//% blockId="device_pin_is_pressed" block="pin %NAME|is pressed" icon="\uf094"
|
||||||
|
//% blockGap=8 shim=input::pinIsPressed
|
||||||
|
function pinIsPressed(name: TouchPin): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current compass compass heading in degrees.
|
* Get the current compass compass heading in degrees.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user