Update main.ts

update error of x instead of y
This commit is contained in:
sidikalamini authored and Baozhu Zuo committed 2019-12-10 11:26:53 +08:00
1 parent f006a8b115
commit 1d51956960
1 file changed
+1 -1
+1 -1
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);
} }