Since it's analog, you'll need two analog examining pins with your microcontroller to ascertain X and Y. Possessing an additional electronic enter will Permit you to browse the swap. This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and prints https://analog-joystick24173.jts-blog.com/36978436/5-easy-facts-about-analog-joystick-described