First, can you check the voltage with a multimeter? Just measure the voltage between gnd and the pin you are reading as you move the joystick? Just to be sure it's not a faulty potentiometer / wiring.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
First, can you check the voltage with a multimeter? Just measure the voltage between gnd and the pin you are reading as you move the joystick? Just to be sure it's not a faulty potentiometer / wiring.