diff --git a/main.ts b/main.ts index 768cb24..535bb7c 100644 --- a/main.ts +++ b/main.ts @@ -375,7 +375,7 @@ namespace grove { * @param xPin * @param yPin */ - //% blockId=grove_joystick_read block="%strip|read position of joystick" + //% blockId=grove_joystick_read block="%strip|read position of joystick at|%xpin|and|%ypin" //% advanced=true read(xPin: AnalogPin, yPin: AnalogPin): number { let xdata = 0, ydata = 0, result = 0; @@ -548,7 +548,7 @@ namespace grove { * @param ypin * @param handler code to run */ - //% blockId=grove_joystick_create_event block="on Key|%key" + //% blockId=grove_joystick_create_event block="on Key|%key at |%xpin|and|%ypin" export function onJoystick(key: GroveJoystickKey, xpin: AnalogPin, ypin: AnalogPin, handler: () => void) { control.onEvent(joystickEventID, key, handler); control.inBackground(() => {