As it's analog, You'll have two analog reading pins on your own microcontroller to determine X and Y. Having an extra digital input will let you read the swap. The joystick values are then printed towards the serial observe, with a little hold off concerning each reading through. Description This https://joystick-controller22198.dbblog.net/11220770/analog-joystick-fundamentals-explained