from machine import Pin
from utime import sleep
sleep(0.01) # Wait for USB to connect
print("Hello, Pi Pico!")
taster = Pin(22, Pin.IN,)
while True:
zustand = taster.value();
if zustand == 0:
print ("nicht gedrückt")
else:
print("gedrückt")
sleep(1)