#write micropython program to ctrl the on board led by boot button
from machine import Pin,TouchPad 
from time import sleep
led=Pin(2,Pin.OUT)
swi=Pin(0,Pin.IN,Pin.PULL_UP)
while True:
    if(swi.value()==0):
        led.on()
    else:
        led.off()