Add Hackertours room and animation #4

Merged
stb merged 9 commits from hackertours into main 2024-12-17 12:15:13 +01:00
Showing only changes of commit 60ffeefd6a - Show all commits

5
dmx.py
View file

@ -5,7 +5,8 @@ from threading import Thread
from time import sleep
from typing import Union
from animation import Animation, Off, RandomSingle, Steady, FadeTo, RotatingRainbow, Chase, TwoColor, Caramelldansen
from animation import Animation, Off, RandomSingle, Steady, FadeTo, RotatingRainbow, Chase, TwoColor, Caramelldansen, \
Hackertours
def ledlog(value):
@ -140,6 +141,8 @@ class DMX:
animation = Caramelldansen(self._color)
elif animation == "randomsingle":
animation = RandomSingle(self._color)
elif animation == "hackertours":
animation = Hackertours(self._color)
else:
raise ValueError(f"No such animation {animation}")
self._animation = animation