Add video abstraction class

This commit is contained in:
2024-02-17 20:06:37 -06:00
parent 21b1bf7992
commit db7c8c4577
7 changed files with 259 additions and 23 deletions

View File

@@ -170,7 +170,7 @@ def init():
data = list()
for x in range(len(leds)):
if leds_size[x] == 3:
data.append((50,50,255))
data.append((20,20,127))
elif leds_size[x] == 4:
data.append((50,50,255,0))
else:
@@ -290,7 +290,7 @@ def close():
time.sleep(0.5)
sender.stop()
def mapimage(image, fps=30):
def mapimage(image, fps=60):
global start
while uptime() - start < 1/fps:
time.sleep(0.00001)