Add video abstraction class
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user