import time
from machine import Pin
led = Pin(28, Pin.OUT) # 28 als Ausgabepin
setpin = Pin(0, Pin.IN, Pin.PULL_DOWN) #0 als Set-in
resetpin = Pin(15, Pin.IN, Pin.PULL_DOWN) # als Reset-Pin
while True:
if setpin.value() == 1: # Wenn setpin gedrückt wird
led.on()
if resetpin.value() == 1: # Wenn resetpin gedrückt wird
led.off()