from machine import Pin #from time import sleep from time import sleep_ms led=Pin(2, Pin.OUT) #while True: # led.value(1) # sleep(1) # led.value(0) # sleep(1) while 1: led.on() #led亮 sleep_ms(500) #led滅 sleep_ms(500)