from machine import Pin
gumb1=Pin(5, Pin.IN, Pin.PULL_UP)
gumb2=Pin(2, Pin.IN, Pin.PULL_UP)
p21=Pin(21,Pin.OUT)
p19=Pin(19,Pin.OUT)
while True:
p21.value(not gumb1.value())
p19.value(not gumb2.value())
from machine import Pin
gumb1=Pin(5, Pin.IN, Pin.PULL_UP)
gumb2=Pin(2, Pin.IN, Pin.PULL_UP)
p21=Pin(21,Pin.OUT)
p19=Pin(19,Pin.OUT)
while True:
p21.value(not gumb1.value())
p19.value(not gumb2.value())