build(boards): xpython板卡执行 npm run build:prod
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user