import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
def joystick_ausgabe_check():
from machine import Pin, ADC
import utime
xAxis = ADC(Pin(27))
yAxis = ADC(Pin(26))
button = Pin(16,Pin.IN, Pin.PULL_UP)
xValue = xAxis.read_u16()
yValue = yAxis.read_u16()
buttonValue= button.value()
return(str(xValue) +", " + str(yValue) + " -- " + str(buttonValue))
import time
lul = 0
while lul < 10:
print(joystick_ausgabe_check())
time.sleep(1)
lul +=1