from machine import Pin
from time import sleep
button1=Pin(5,Pin.IN,Pin.PULL_UP)
button2=Pin(28,Pin.IN,Pin.PULL_UP)
led=Pin(8,Pin.OUT)
while True:
check1=button1.value()
check2=button2.value()
print(check1,check2)
if((check1==0 and check2==1) or (check1==1 and check2==0)):
led.value(1)
else:
led.value(0)