##
##
import time
time.sleep(0.1) # Wait for USB to become ready
from machine import Pin
led=Pin(15,Pin.OUT)
while True :
cmd=input('What is your command ( on , off, toggle) ? ')
if cmd=='on' :
led.value(1)
if cmd=='off' :
led.value(0)
if cmd=='toggle' :
led.toggle()