import time time.sleep(0.1) # wait for usb to become ready from machine import Pin led =Pin(0,Pin.OUT) led.value(1)