As it's analog, you'll need two analog examining pins in your microcontroller to find out X and Y. Having an additional digital input will let you read the switch. You will find there's Specific map, known as "Mouse Pointer" which transforms the gadget right into a mouse cursor pointer. The https://andresikjex.qodsblog.com/38299112/how-much-you-need-to-expect-you-ll-pay-for-a-good-analog-stick