added some antrender debugging

This commit is contained in:
CiscoTheWolf 2023-10-02 08:02:30 +02:00
parent 4dc91c3eeb
commit 2530dd51be

View file

@ -9,12 +9,6 @@ import paho.mqtt.client as mqtt
import time
import threading
import pickle
print("start configuring matrix")
startT = curr_time = round(time.time()*1000)
# Configuration for the matrix screens
options = RGBMatrixOptions()
options.rows = 32
@ -26,9 +20,6 @@ matrix = RGBMatrix(options=options)
prootState = StateSingleton()
prootState.set_matrix(matrix)
endT = curr_time = round(time.time()*1000)
print("configuring matrix took: " + str(endT - startT) + " ms")
def generate_eye_frames(emote_eye_png):
eye_frames = []
@ -105,13 +96,13 @@ def animate():
]:
print("start generating ten face frames for " + emote_eye_png)
startT = curr_time = round(time.time()*1000)
startT = round(time.time()*1000)
print("generating face with features: " + emote_eye_png +" "+ emote_mouth_png +" "+ emote_nose_png)
face_frames_canvases = generate_face_frames_canvases(emote_eye_png, emote_mouth_png, emote_nose_png)
emote_FrameCanvasses.extend(face_frames_canvases)
endT = curr_time = round(time.time()*1000)
endT = round(time.time()*1000)
print("generating ten face frames took: " + str(endT - startT) + " ms")
state = StateSingleton()