from machine import Pin
from utime import sleep
import utime
# 定义LED管脚
leds =[Pin(i,Pin.OUT)for i inrange(0,8)]# 程序入口if __name__ =='__main__':# 循环语句whileTrue:for n inrange(0,8):# 依次点亮
leds[n].value(1)
sleep(0.05)
utime.sleep_ms(1)
utime.sleep_us(1)for n inrange(0,8):# 依次熄灭
leds[n].value(0)
sleep(0.05)
断电后再通电板子一直执行,Thonny 无法连接 干预
shell 一直显示
Device is busy or does not respond. Your options:
waituntil it completes current work;
use Ctrl+C to interrupt current work;
use Stop/Restart to interrupt more and enter REPL.