From f8733cb67311d02451353e979885fa2fda0af4d1 Mon Sep 17 00:00:00 2001 From: Michael Klein <37311672+MKleinSB@users.noreply.github.com> Date: Thu, 17 Sep 2020 20:47:07 +0200 Subject: [PATCH] Aktualisiere main.ts --- main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 3205265..de50d2b 100644 --- a/main.ts +++ b/main.ts @@ -414,8 +414,7 @@ namespace grove { * @param xPin * @param yPin */ - //% blockId=grove_joystick_read block="%thumbJoystick|read position of joystick at|%xPin|and|%yPin" - //% group="Thumbjoystick" xPin.defl=AnalogPin.C16 yPin.defl=AnalogPin.C17 + joyread(xPin: AnalogPin, yPin: AnalogPin): number { let xdata = 0, ydata = 0, result = 0; if (xPin && yPin) {