From 60ffeefd6aec5e02e50dfa1c17362e1b15d2c11e Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Mon, 16 Dec 2024 16:33:08 +0100 Subject: [PATCH] Add Hackertours to list of animations --- dmx.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dmx.py b/dmx.py index b34a850..d313f11 100644 --- a/dmx.py +++ b/dmx.py @@ -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