Hi,
then measure the voltage between the X Dir pin, looks to be pin 2 or 3 and earth with an X move in one direction and then
again but with the X axis moving in the other direction.
It might be 0, or thereabout one way and 5V , or thereabout the other way.
Craig