diff --git a/light9/collector/output.py b/light9/collector/output.py --- a/light9/collector/output.py +++ b/light9/collector/output.py @@ -169,6 +169,13 @@ class ArtnetDmx(BackgroundLoopOutput): class Udmx(BackgroundLoopOutput): + """alternate lib: + + from PyDMXControl.controllers import uDMXController + u = uDMXController(autostart=False) + u._connect() + u._transmit([255, 0, 0, ... + """ def __init__(self, uri: URIRef, bus: int, address: int, lastDmxChannel: int, rate=22): self.bus = bus @@ -253,11 +260,11 @@ class Udmx(BackgroundLoopOutput): ''' # the code used in 2018 and before class UdmxOld(BackgroundLoopOutput): - + def __init__(self, uri, bus): from light9.io.udmx import Udmx self._dev = Udmx(bus) - + super().__init__(uri) def _write(self, buf: bytes): @@ -273,8 +280,8 @@ class UdmxOld(BackgroundLoopOutput): len(buf), self.uri, e) log.warn(msg) raise - - + + # out of date class EnttecDmx(BackgroundLoopOutput): stats = scales.collection('/output/enttecDmx', scales.PmfStat('write', recalcPeriod=1),