from machine import Pin
led=Pin(13,Pin.OUT)
pushbutton=Pin(33,Pin.IN)
while True:
print(pushbutton.value())
if(pushbutton.value()==True):
led(1)
elif(pushbutton.value()==False):
led(0)
from machine import Pin
led=Pin(13,Pin.OUT)
pushbutton=Pin(33,Pin.IN)
while True:
print(pushbutton.value())
if(pushbutton.value()==True):
led(1)
elif(pushbutton.value()==False):
led(0)