from machine import Pin, ADC
from time import sleep


VRX = ADC(Pin(27))
VRY = ADC(Pin(28))
SW = Pin(26, Pin.IN, Pin.PULL_UP)

while True:
    xAxis= VRX.read_u16()
    yAxis= VRY.read_u16()
    switch= SW.value()

    print("X-axis: "+str(xAxis)+", Y-axis: "+ str(yAxis)+ ", switch "+ str(switch))
    if switch==0:
        print("Push button pressed!")
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT