Delete heart.py

This commit is contained in:
jimmy 2023-12-30 13:42:34 +00:00
parent b4c4a5f954
commit 8f1ecb907b
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
from ws2812b import WS2812B
import time
ws = WS2812B(256, 28, 0.2)
array = [
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
[ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK, ws.RED, ws.BLACK, ws.BLACK, ws.BLACK],
]
for i in range(16):
if i % 2 == 1:
array[i] = array[i][::-1]
array = [elem for row in array for elem in row]
for i in range(256):
ws.pixels_set(i, array[i])
ws.pixels_show()