added new animation RotatingRainbowKitchenWhite

This commit is contained in:
tessak9 2026-02-20 18:13:24 +01:00
commit e9971b843b
3 changed files with 33 additions and 1 deletions

4
dmx.py
View file

@ -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