#touch pad onboard and on board led
from machine import Pin,TouchPad
from time import sleep
led=Pin(2,Pin.OUT)
switchh=Pin(0,Pin.IN,Pin.PULL_UP)
#touch=TouchPad(Pin(4,Pin.IN))
while True:
#touch_val=TouchPad.read(touch)
#print(touch_val)
if(switchh.value()==0):
led.on()
else:
led.off()