13 lines
341 B
Python
13 lines
341 B
Python
|
from ws2812b import WS2812B
|
||
|
import time
|
||
|
|
||
|
ws = WS2812B(256, 28, 0.2)
|
||
|
|
||
|
array = [[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
|
||
|
[ws.BLACK, ws.BLACK, ws.BLACK, ws.BLACK],
|
||
|
[ws.BLACK, ws.BLACK, ws.BLACK, ws.BLACK],
|
||
|
[ws.BLACK, ws.BLACK, ws.BLACK, ws.BLACK]]
|
||
|
|
||
|
for i in range(4):
|
||
|
ws.pixels_set(i, array[i][0])
|
||
|
ws.pixels_show()
|