As it's analog, you'll need two analog examining pins in your microcontroller to find out X and Y. Owning an extra electronic enter will Allow you to examine the switch. This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and https://diyarcadeparts88753.blogocial.com/not-known-facts-about-arcade-joystick-73870609