updated shim definition

This commit is contained in:
Peli de Halleux 2016-07-26 16:17:54 -07:00
parent 6f00384891
commit 42c766b6d7

View File

@ -230,6 +230,15 @@ declare namespace input {
//% icon="\uf192" blockGap=8 shim=input::buttonIsPressed
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.
*/