Aktualisiere main.ts
This commit is contained in:
parent
2a183e0148
commit
f8733cb673
3
main.ts
3
main.ts
@ -414,8 +414,7 @@ namespace grove {
|
|||||||
* @param xPin
|
* @param xPin
|
||||||
* @param yPin
|
* @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 {
|
joyread(xPin: AnalogPin, yPin: AnalogPin): number {
|
||||||
let xdata = 0, ydata = 0, result = 0;
|
let xdata = 0, ydata = 0, result = 0;
|
||||||
if (xPin && yPin) {
|
if (xPin && yPin) {
|
||||||
|
Loading…
Reference in New Issue
Block a user