Aktualisiere main.ts

This commit is contained in:
Michael Klein 2020-09-17 19:19:34 +02:00
parent b1aa39aa1e
commit d7d1a45d4f

View File

@ -414,7 +414,7 @@ namespace grove {
* @param xPin
* @param yPin
*/
//% blockId=grove_joystick_read block="%thumbJoystick|read position of joystick at|%xpin|and|%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;