from microbit import * display.off() pin16.write_digital(0) while True: p1 = pin1.read_digital() if str(p1) == '1': # prvi izlaz pin16.write_digital(1) sleep(50) pin16.write_digital(0)