Because it's analog, You'll have two analog examining pins on your own microcontroller to determine X and Y. Obtaining an additional digital input will let you examine the switch. This code reads the analog values from the joystick's X and Y pins, converts them into corresponding voltage values, and prints https://analog-joystick11086.digiblogbox.com/62478359/the-fact-about-arcade-joystick-that-no-one-is-suggesting