added new animation RotatingRainbowKitchenWhite
This commit is contained in:
parent
2c4a0b2524
commit
e9971b843b
3 changed files with 33 additions and 1 deletions
4
dmx.py
4
dmx.py
|
|
@ -6,7 +6,7 @@ from time import sleep
|
|||
from typing import Union
|
||||
|
||||
from animation import Animation, Off, RandomSingle, Steady, FadeTo, RotatingRainbow, Chase, TwoColor, Caramelldansen, \
|
||||
Hackertours
|
||||
Hackertours, RotatingRainbowKitchenWhite
|
||||
|
||||
|
||||
def ledlog(value):
|
||||
|
|
@ -152,6 +152,8 @@ class DMX:
|
|||
animation = RandomSingle(self._color)
|
||||
elif animation == "hackertours":
|
||||
animation = Hackertours(self._color)
|
||||
elif animation == "kitchenlight":
|
||||
animation = RotatingRainbowKitchenWhite()
|
||||
else:
|
||||
raise ValueError(f"No such animation {animation}")
|
||||
self._animation = animation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue