As it's analog, You'll have two analog reading pins on your microcontroller to ascertain X and Y. Owning an additional digital input will let you read through the switch. The joystick values are then printed into the serial observe, with a small delay concerning Just about every examining. The joystick https://judahdbwyw.canariblogs.com/analog-joystick-an-overview-52974851