Since it's analog, You will need two analog looking at pins on your own microcontroller to determine X and Y. Owning an extra digital enter will Enable you to examine the swap.This code reads the analog values from the joystick's X and Y pins, converts them into corresponding voltage values, and prints them on the serial keep an eye on consistently… Read More