import time, pyb
led1 = pyb.LED(1) # Red LED = 1, Green LED = 2, Blue LED = 3, IR LEDs = 4.
led2 = pyb.LED(2)
led3 = pyb.LED(3)
usb = pyb.USB_VCP() # This is a serial port object that allows you to
# communciate with your computer. While it is not open the code below runs.
while(1):
led1.on()
led2.on()
led3.on()
time.sleep_ms(150)
led1.off()
led2.off()
led3.off()
time.sleep_ms(100)
led1.on()
led2.on()
led3.on()
time.sleep_ms(150)
led1.off()
led2.off()
led3.off()
time.sleep_ms(100)
![0_1620035166031_QQ图片20210503174553.jpg](正在上传 93%)
V
vu64 发布的帖子
-
为什么执行亮白灯,led只有亮红色和绿色的两个微小点,还有蓝色好像坏掉了,是什么原因?