from machine import Pin,ADC
from time import sleep
pbutton = Pin(26, Pin.IN, Pin.PULL_UP)
ledpin=Pin(6,Pin.OUT)
while True :
if(pbutton.value()==1):
ledpin.value(1)
else:
ledpin.value(0)
from machine import Pin,ADC
from time import sleep
pbutton = Pin(26, Pin.IN, Pin.PULL_UP)
ledpin=Pin(6,Pin.OUT)
while True :
if(pbutton.value()==1):
ledpin.value(1)
else:
ledpin.value(0)