Update main.ts

update error of x instead of y
This commit is contained in:
sidikalamini 2019-11-18 22:16:50 +08:00 committed by Baozhu Zuo
parent f006a8b115
commit 1d51956960

View File

@ -513,7 +513,7 @@ namespace grove {
* get Joystick key * get Joystick key
* *
*/ */
//% blockId=grove_getjoystick block="get joystick key at|%xpin|and|%xpin" //% blockId=grove_getjoystick block="get joystick key at|%xpin|and|%ypin"
export function getJoystick(xpin: AnalogPin, ypin: AnalogPin): number { export function getJoystick(xpin: AnalogPin, ypin: AnalogPin): number {
return joystick.read(xpin, ypin); return joystick.read(xpin, ypin);
} }