Because it's analog, You will need two analog looking at pins in your microcontroller to find out X and Y. Getting an additional digital enter will Enable you to browse the change.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 track of frequentl… Read More