logo

为什么执行亮白灯,led只有亮红色和绿色的两个微小点,还有蓝色好像坏掉了,是什么原因?

2021-05-03 17:46
4
vu64

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%)
2021-05-04 14:38
I
网红小智智 星瞳科技

那就寄回维修吧。