# 导入相应模块 进行跑马灯试验
from pyb import LED,delay #从pyb导入LED模块
#关闭全部LED
LED(1).off()
LED(2).off()
LED(3).off()
LED(4).off()
#while True表示一直循环进行跑马灯试验
while True:
#LED4亮2秒
LED(4).on()
pyb.delay(2000)
LED(4).off()
#LED3亮2秒
LED(3).on()
pyb.delay(2000)
LED(3).off()
#LED2亮2秒
LED(2).on()
pyb.delay(2000)
LED(2).off()
#LED1亮2秒
LED(1).on()
pyb.delay(2000)
LED(1).off()



