EsploraTFT Joystick help(hardware)

hello

whenever i run the EsploraTFTEtch example

my joystick tends to go to the right side while on another esplora stays put in the center

how can i calibrate my joystick?

my joystick tends to go to the right side while on another esplora stays put in the center

What does this mean? Does the output when the stick is centered make it appear that the stick is slightly to the right? Or, does the stick actually move to the right even though you are not touching it?

it moves to the right when im not touching, i move it a little bit to the left and then its centered

there is the video

ok i fixed it!

the code below is to read the data from the joysticks x axis


#include <Esplora.h>
#include <SPI.h>

void setup() {

Serial.begin(9600);

}

void loop()
{

int xAxis = Esplora.readJoystickX(); // read the X axis

Serial.println(xAxis);

}

i tried it on 2 esploras
the one that worked fine with the example was giving me a 10 read on stand by
while the one movin to the right was giving me -12 on stand by

so just changed the values from the code in the example EsploraTFTEtchASketch on the loop

if (xAxis<13 && xAxis>-13){
xPos=xPos;