Since it's analog, You will need two analog reading pins with your microcontroller to ascertain X and Y. Getting an extra digital enter will Allow you to examine the change. This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and https://abdula813owc2.wikigop.com/user