Because it's analog, You'll have two analog reading pins in your microcontroller to find out X and Y. Acquiring an extra electronic input will Allow you to examine the switch. This code reads the analog values from the joystick's X and Y pins, converts them into corresponding voltage values, and https://franciszekb563mfv2.wikikali.com/user