'''
闪烁LED
'''
from machine import Pin #导入Pin模块
import time
led1 = Pin(25,Pin.OUT) #创建LED对象
led2 = Pin(12,Pin.OUT)
while True:
led1.on() #红灯蓝灯交替闪烁
led2.off()
time.sleep_ms(1000) #延时1s
led1.off()
led2.on()
time.sleep_ms(1000)