from machine import Pin
led = Pin(0, Pin.OUT) # externe LED an GPIO 0
taster = Pin(28, Pin.IN, Pin.PULL_DOWN) # Taster an GPIO 28
led.on()
while True:
# LED folgt direkt dem Taster
led.value(taster.value())from machine import Pin
led = Pin(0, Pin.OUT) # externe LED an GPIO 0
taster = Pin(28, Pin.IN, Pin.PULL_DOWN) # Taster an GPIO 28
led.on()
while True:
# LED folgt direkt dem Taster
led.value(taster.value())