Since it's analog, you'll need two analog looking at pins on the microcontroller to find out X and Y. Possessing an extra electronic input will Enable you to read the switch. The joystick values are then printed into the serial watch, with a small delay in between each reading through. https://howardv715mmj9.blogdemls.com/profile