diff --git a/rpi/antRender.py b/rpi/antRender.py index 0219c0a..c579560 100644 --- a/rpi/antRender.py +++ b/rpi/antRender.py @@ -56,7 +56,7 @@ class Point2D: return (self.x, self.y) == (other.x, other.y) -def set_ProotScreen(): +def set_ProotScreen(matrix): prootScreen_frame_canvas = matrix.CreateFrameCanvas() image_prootScreen = Image.open("faces/eyeLeftOpen.png") prootScreen_frame_canvas.SetImage(image_prootScreen, unsafe=False) @@ -155,13 +155,7 @@ def interpolate_point_pairs(pairs: list[tuple[Point2D, Point2D]], percentage: fl return interpolated_points -print("start setting ProotScreen") -startT = curr_time = round(time.time()*1000) -# setting ProotScreen, This is the loading splash screen -set_ProotScreen() -endT = curr_time = round(time.time()*1000) -print("setting ProotScreen took: " + str(endT - startT) + " ms") @@ -181,6 +175,14 @@ endT = curr_time = round(time.time()*1000) print("configuring matrix took: " + str(endT - startT) + " ms") +print("start setting ProotScreen") +startT = curr_time = round(time.time()*1000) +# setting ProotScreen, This is the loading splash screen +set_ProotScreen(matrix) + +endT = curr_time = round(time.time()*1000) +print("setting ProotScreen took: " + str(endT - startT) + " ms") + print("start loading images") startT = curr_time = round(time.time()*1000)