From a223608dda0751551c6e8688c0c0e1c9a1d4e69c Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Fri, 21 Jan 2011 00:57:14 -0500 Subject: Added a new config file to run the upstairs lights. Modified PixelMapper to track cache hits. Added 60-strip layouts and renderer configs. --- renderers/60StripSeq.xml | 130 ++++++++++++++++++++++++++++++++++++++++++++ renderers/IndoorRenderer.py | 6 +- renderers/PygameRenderer.py | 2 +- 3 files changed, 134 insertions(+), 4 deletions(-) create mode 100644 renderers/60StripSeq.xml (limited to 'renderers') diff --git a/renderers/60StripSeq.xml b/renderers/60StripSeq.xml new file mode 100644 index 0000000..3f5255f --- /dev/null +++ b/renderers/60StripSeq.xml @@ -0,0 +1,130 @@ + + renderers.IndoorRenderer + + indoorRenderer + + 10.32.0.0 + {'strip0.1':1, 'strip0.2':2} + + + 10.32.0.1 + {'strip1.1':1, 'strip1.2':2} + + + 10.32.0.2 + {'strip2.1':1, 'strip2.2':2} + + + 10.32.0.3 + {'strip3.1':1, 'strip3.2':2} + + + 10.32.0.4 + {'strip4.1':1, 'strip4.2':2} + + + 10.32.0.5 + {'strip5.1':1, 'strip5.2':2} + + + 10.32.0.6 + {'strip6.1':1, 'strip6.2':2} + + + 10.32.0.7 + {'strip7.1':1, 'strip7.2':2} + + + 10.32.0.8 + {'strip8.1':1, 'strip8.2':2} + + + 10.32.0.9 + {'strip9.1':1, 'strip9.2':2} + + + 10.32.0.10 + {'strip10.1':1, 'strip10.2':2} + + + 10.32.0.11 + {'strip11.1':1, 'strip11.2':2} + + + 10.32.0.12 + {'strip12.1':1, 'strip12.2':2} + + + 10.32.0.13 + {'strip13.1':1, 'strip13.2':2} + + + 10.32.0.14 + {'strip14.1':1, 'strip14.2':2} + + + 10.32.0.15 + {'strip15.1':1, 'strip15.2':2} + + + 10.32.0.16 + {'strip16.1':1, 'strip16.2':2} + + + 10.32.0.17 + {'strip17.1':1, 'strip17.2':2} + + + 10.32.0.18 + {'strip18.1':1, 'strip18.2':2} + + + 10.32.0.19 + {'strip19.1':1, 'strip19.2':2} + + + 10.32.0.20 + {'strip20.1':1, 'strip20.2':2} + + + 10.32.0.21 + {'strip21.1':1, 'strip21.2':2} + + + 10.32.0.22 + {'strip22.1':1, 'strip22.2':2} + + + 10.32.0.23 + {'strip23.1':1, 'strip23.2':2} + + + 10.32.0.24 + {'strip24.1':1, 'strip24.2':2} + + + 10.32.0.25 + {'strip25.1':1, 'strip25.2':2} + + + 10.32.0.26 + {'strip26.1':1, 'strip26.2':2} + + + 10.32.0.27 + {'strip27.1':1, 'strip27.2':2} + + + 10.32.0.28 + {'strip28.1':1, 'strip28.2':2} + + + 10.32.0.29 + {'strip29.1':1, 'strip29.2':2} + + + 10.32.0.30 + {'strip30.1':1, 'strip30.2':2} + + + diff --git a/renderers/IndoorRenderer.py b/renderers/IndoorRenderer.py index 5f8546a..76ec172 100644 --- a/renderers/IndoorRenderer.py +++ b/renderers/IndoorRenderer.py @@ -21,7 +21,7 @@ class IndoorRenderer(Renderer): self.stripLocations[stripId] = (ip, \ stripsInPowerSupply[stripId]) def render(self, lightSystem, currentTime=timeops.time()): - try: + #try: for pixelStrip in lightSystem.pixelStrips: stripId = pixelStrip.argDict['Id'] (ip, port) = self.stripLocations[stripId] @@ -30,6 +30,6 @@ class IndoorRenderer(Renderer): self.sockets[ip] = network.getConnectedSocket(ip,sock_port) packet = composer.composePixelStripPacket(pixelStrip, port, currentTime) self.sockets[ip].send(packet, 0x00) - except Exception as inst: - print inst + #except Exception as inst: + # print inst diff --git a/renderers/PygameRenderer.py b/renderers/PygameRenderer.py index 24b2d08..9582a03 100644 --- a/renderers/PygameRenderer.py +++ b/renderers/PygameRenderer.py @@ -6,7 +6,7 @@ import pdb class PygameRenderer(Renderer): def initRenderer(self): pygame.init() - self.screen = pygame.display.set_mode((1300,50)) + self.screen = pygame.display.set_mode((1300,500)) self.background = pygame.Surface(self.screen.get_size()) self.background = self.background.convert() self.background.fill(Color('Black')) -- cgit v1.2.3