changeset 2228:f45814654fdb

comment
author drewp@bigasterisk.com
date Tue, 23 May 2023 23:56:28 -0700
parents fe3543310d34
children d193689223fb
files light9/collector/output.py
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/light9/collector/output.py	Tue May 23 23:56:20 2023 -0700
+++ b/light9/collector/output.py	Tue May 23 23:56:28 2023 -0700
@@ -169,6 +169,13 @@
 
 
 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 @@
 '''
 # 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 @@
                     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),