Allow initial animation and color to be set on the cmd line

This commit is contained in:
Stefan Bethke 2024-12-17 09:34:41 +01:00
commit 52c1cf5c11
2 changed files with 5 additions and 3 deletions

2
dmx.py
View file

@ -165,5 +165,5 @@ class DMX:
@color.setter
def color(self, color):
if self._color != color:
self._color = color
self._color = [int(c) for c in color]
self.animation = self.animation