diff --git a/light_manager.py b/light_manager.py index 689c7ea..e4aa98b 100644 --- a/light_manager.py +++ b/light_manager.py @@ -25,8 +25,8 @@ class LightStrip: n = np.n for i in range(n): col = self.pattern(i, t) - logging.debug("TEST VALUES: np {} col {} same {}".format(np[i], col, np[i] != col)) - if np[i] != col: + logging.debug("TEST VALUES: np {} col {} same {}".format(np[i], col, tuple(np[i]) != col)) + if tuple(np[i]) != col: np[i] = col logging.debug("CHANGE COLOR OF PIXEL {} TO {} ON TICK {}".format(i, col, t)) break;