Add Hackertours to list of animations
This commit is contained in:
parent
b904e3514b
commit
60ffeefd6a
1 changed files with 4 additions and 1 deletions
5
dmx.py
5
dmx.py
|
@ -5,7 +5,8 @@ from threading import Thread
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from typing import Union
|
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):
|
def ledlog(value):
|
||||||
|
@ -140,6 +141,8 @@ class DMX:
|
||||||
animation = Caramelldansen(self._color)
|
animation = Caramelldansen(self._color)
|
||||||
elif animation == "randomsingle":
|
elif animation == "randomsingle":
|
||||||
animation = RandomSingle(self._color)
|
animation = RandomSingle(self._color)
|
||||||
|
elif animation == "hackertours":
|
||||||
|
animation = Hackertours(self._color)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"No such animation {animation}")
|
raise ValueError(f"No such animation {animation}")
|
||||||
self._animation = animation
|
self._animation = animation
|
||||||
|
|
Loading…
Reference in a new issue