Joystick with Espruino WiFi #1026
Replies: 2 comments
-
Posted at 2019-05-14 by @gfwilliams Looks to me like that's an analog joystick, so you need to read analog values. You also don't need the pin modes that you had:
Something like the above should print some values between 0 and 1, and you should be able to figure out when the joystick is over one side by looking at those values (eg less than 0.2 or greater than 0.8 maybe). Also one thing to watch out for is I'd really avoid |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-05-14 by Andrea GREAT, IT WORKS! THANK YOU SO MUCH! :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-05-14 by Andrea
Hi everyone,
I would like to use this Joystick: https://www.adafruit.com/product/512
with the Espruino WiFi (2v02), it currently works on Feather M4 Express (CircuitPython):
In JavaScript I'm doing tests, Y and X both are recognized at '50 %' (yes UP and LEFT, no DOWN and RIGHT) ...
What do you think I can solve?
THANK YOU
Beta Was this translation helpful? Give feedback.
All reactions