from machine import Pin pin_diody = Pin(14, Pin.OUT) pin_tlacitka = Pin(0, Pin.IN) while True: pin_diody.value(1 - pin_tlacitka.value())