Since it's analog, you'll need two analog studying pins on your own microcontroller to ascertain X and Y. Getting an extra digital enter will Permit you to examine the swap. Note that this example assumes that you are utilizing an Arduino-suitable board that supports the Joystick library, such as the https://ralstony198suu7.wiki-promo.com/user