Add initial support for DMX lighting
This commit is contained in:
11
events.py
11
events.py
@@ -193,3 +193,14 @@ class Lyrics(Event):
|
||||
if message == 'newdisplay':
|
||||
self._eventrunner.finished(self)
|
||||
|
||||
class LightScene(Event):
|
||||
def __init__(self, scene, fade=0, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self._scene = scene
|
||||
self._fade = fade
|
||||
|
||||
def start(self):
|
||||
scenes = self._eventrunner.get_config('scenes')
|
||||
scene = scenes[self._scene]
|
||||
scene.activate(self._fade)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user