#LED control using key
print("PRESS the KEY to turn on the LED")
from machine import Pin
from time import sleep
led=Pin(25,Pin.OUT)
key=Pin(14,Pin.IN)
while True:
a=key.value()
if(a==True):
led.value(1)
else:
led.value(0)