代码
# -*- coding: UTF-8 -*-
# MindPlus
# Python
from pinpong.extension.unihiker import *
from pinpong.board import Board,Pin
from pinpong.board import NeoPixel
from pinpong.board import Board
import time
Board().begin()
np1 = NeoPixel(Pin((Pin.P24)),3)
np1.clear()
np1.brightness(255)
while True:
np1[2] = (255,0,0)
time.sleep(10)
np1[2] = (0,0,0)
np1[1] = (255,255,0)
time.sleep(2)
np1[1] = (0,0,0)
np1[0] = (0,255,0)
time.sleep(10)
np1[0] = (0,0,0)
np1[2] = (255,0,0)
time.sleep(5)
np1[2] = (0,0,0)
np1[1] = (255,255,0)
time.sleep(2)
np1[1] = (0,0,0)
np1[0] = (0,255,0)
time.sleep(5)
np1[0] = (0,0,0)
lily2024.05.17
我等红绿灯的时候也想到了这个问题,但苦于实现,太厉害了
_深蓝_2023.10.27
值得试试
DeadWalking2023.10.27
666
_深蓝_2023.10.19
666