added printing to set animations for debugging.

This commit is contained in:
CiscoTheWolf 2023-06-05 22:14:17 +02:00
parent 82d0725cfa
commit 6781c53cfd
2 changed files with 6 additions and 3 deletions

View file

@ -28,9 +28,11 @@ class StateSingleton:
def set_blink_animation_frames(self, blink_animation_FrameCanvases):
self.blink_animation_FrameCanvases = blink_animation_FrameCanvases
print("blink animations set")
def set_angry_animation_frames(self, angry_animation_FrameCanvases):
self.angry_animation_FrameCanvases = angry_animation_FrameCanvases
print("angry animations set")
def set_desired_expression(self, state):
if state in self.states:
@ -97,8 +99,9 @@ class StateSingleton:
def get_animations_ready(self):
return self.animations_ready
def set_animations_ready(self, state):
self.animations_ready = state
def set_animations_ready(self):
self.animations_ready = True
print("animations set to ready")
def set_matrix(self, matrix):
self.matrix = matrix

View file

@ -106,7 +106,7 @@ def animate():
state.set_blink_animation_frames(blink_animation_FrameCanvases)
state.set_angry_animation_frames(angry_animation_FrameCanvases)
state.set_animations_ready(True)
state.set_animations_ready()
animate()