As it's analog, You will need two analog studying pins on your microcontroller to ascertain X and Y. Getting an additional digital enter will Enable you to go through the swap.The joystick values are then printed for the serial observe, with a small hold off amongst Just about every looking through.The joystick’s X-axis worth is used to work out … Read More