Because it's analog, You'll have two analog looking at pins in your microcontroller to ascertain X and Y. Having an extra electronic input will Allow you to study the swap. This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and https://tysonjffhe.ivasdesign.com/59331595/top-guidelines-of-analog-stick