diff --git a/rpi/antRender.py b/rpi/antRender.py index fdfdf0c..026307e 100644 --- a/rpi/antRender.py +++ b/rpi/antRender.py @@ -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()