Update main.ts
update error of x instead of y
This commit is contained in:
parent
f006a8b115
commit
1d51956960
2
main.ts
2
main.ts
@ -513,7 +513,7 @@ namespace grove {
|
||||
* 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 {
|
||||
return joystick.read(xpin, ypin);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user