Mercurial > code > home > repos > light9
changeset 426:cd75a12ad66d
adjust dmx dimmer count back to PHS theater levels
author | drewp@bigasterisk.com |
---|---|
date | Tue, 10 Jun 2008 04:57:36 +0000 |
parents | 8713617cc08e |
children | e14a646853b1 |
files | bin/subcomposer light9/dmxchanedit.py light9/io/__init__.py |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/subcomposer Tue Jun 10 04:56:48 2008 +0000 +++ b/bin/subcomposer Tue Jun 10 04:57:36 2008 +0000 @@ -154,7 +154,7 @@ root.tk_setPalette("#004633") sc = Subcomposer(root, dmxdummy=0, - numchannels=276 # use this to see all the skyline dims + #numchannels=276 # use this to see all the skyline dims #numchannels=118 ) sc.pack()
--- a/light9/dmxchanedit.py Tue Jun 10 04:56:48 2008 +0000 +++ b/light9/dmxchanedit.py Tue Jun 10 04:57:36 2008 +0000 @@ -134,7 +134,7 @@ stdfont = tkFont.Font(size=8) self.levels = [] # Onelevel objects - rows = 48 + rows = 35 frames = [make_frame(self) for x in range((num_channels // rows) + 1)] for channel in range(1, num_channels+1):
--- a/light9/io/__init__.py Tue Jun 10 04:56:48 2008 +0000 +++ b/light9/io/__init__.py Tue Jun 10 04:57:36 2008 +0000 @@ -55,11 +55,11 @@ self.parport.outbyte(levels[p-1]*255 / 100) class UsbDMX(BaseIO): - dimmers = 512 - def __init__(self): + def __init__(self, dimmers=72): BaseIO.__init__(self) self.__name__ = "UsbDMX" self.out = None + self.dimmers = dimmers def _dmx(self): if self.out is None: