From a97427ee4945138939f587150fecff3754e59243 Mon Sep 17 00:00:00 2001 From: Michael Klein <37311672+MKleinSB@users.noreply.github.com> Date: Wed, 13 Nov 2019 15:39:05 +0100 Subject: [PATCH] fixed missing arguments for blocks --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(() => {