build(boards): xpython板卡执行 npm run build:prod

This commit is contained in:
王立帮
2026-01-16 21:59:57 +08:00
parent bc2451005f
commit a7fdae500c
1123 changed files with 1171 additions and 1126 deletions

View File

@@ -8,12 +8,12 @@ Micropython library for the WS2812 NeoPixel-RGB(method inheritance)
from time import sleep
class NeoPixel:
def __init__(self, func, n, bpp=3, ORDER=(0, 1, 2, 3)):
def __init__(self, func, n, bpp=3, ORDER=(0, 1, 2, 3), status=(0, 10 ,0)):
self.func = func
self.bpp = bpp
self.rgbs = n
self.ORDER = ORDER
self.rgb_buf = bytearray(self.rgbs * bpp)
self.rgb_buf = bytearray(self.rgbs * bpp) + bytes(status)
self.write()
def __len__(self):