added 3 new animations, simple css change
This commit is contained in:
parent
f0cbb639e8
commit
feced317af
4 changed files with 196 additions and 5 deletions
8
dmx.py
8
dmx.py
|
|
@ -5,7 +5,7 @@ from threading import Thread
|
|||
from time import sleep
|
||||
from typing import Union
|
||||
|
||||
from animation import Animation, Off, Steady, FadeTo, RotatingRainbow, Chase
|
||||
from animation import Animation, Off, RandomSingle, Steady, FadeTo, RotatingRainbow, Chase, TwoColor, Caramelldansen
|
||||
|
||||
|
||||
def ledlog(value):
|
||||
|
|
@ -125,6 +125,12 @@ class DMX:
|
|||
animation = RotatingRainbow()
|
||||
elif animation == "steady":
|
||||
animation = Steady(self._color)
|
||||
elif animation == "twocolor":
|
||||
animation = TwoColor(self._color)
|
||||
elif animation == "caramelldansen":
|
||||
animation = Caramelldansen(self._color)
|
||||
elif animation == "randomsingle":
|
||||
animation = RandomSingle(self._color)
|
||||
else:
|
||||
raise ValueError(f"No such animation {animation}")
|
||||
self._animation = animation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue