As it's analog, you'll need two analog studying pins on your own microcontroller to find out X and Y. Acquiring an additional electronic enter will Enable you to browse the switch. The joystick values are then printed for the serial watch, with a small delay amongst Just about every reading. https://johnnyfoyhn.newbigblog.com/44553569/analog-joystick-an-overview