回到首页 返回首页
回到顶部 回到顶部
返回上一页 返回上一页
best-icon

智能交通中的交通疏通调节系统(行空板) 简单

头像 宗静 2023.10.10 1169 4

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png


代码
#  -*- 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)

评论

user-avatar
  •    lily

    lily2024.05.17

    我等红绿灯的时候也想到了这个问题,但苦于实现,太厉害了

    0
    • _深蓝_

      _深蓝_2023.10.27

      值得试试

      0
      • DeadWalking

        DeadWalking2023.10.27

        666

        0
        • _深蓝_

          _深蓝_2023.10.19

          666

          0