diff options
author | Russell Cohen <rcoh@mit.edu> | 2011-01-21 00:57:14 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2011-01-21 00:57:14 -0500 |
commit | a223608dda0751551c6e8688c0c0e1c9a1d4e69c (patch) | |
tree | cd0620097745b7053abec7346f6bd7e65d99dafe /renderers | |
parent | f45b5e262c394cf00ef88f7fca1eab1b4de0fec9 (diff) |
Added a new config file to run the upstairs lights. Modified PixelMapper to
track cache hits. Added 60-strip layouts and renderer configs.
Diffstat (limited to 'renderers')
-rw-r--r-- | renderers/60StripSeq.xml | 130 | ||||
-rw-r--r-- | renderers/IndoorRenderer.py | 6 | ||||
-rw-r--r-- | renderers/PygameRenderer.py | 2 |
3 files changed, 134 insertions, 4 deletions
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 @@ +<Renderer> + <Class>renderers.IndoorRenderer</Class> + <Args> + <Id>indoorRenderer</Id> + <PowerSupply> + <IP>10.32.0.0</IP> + <PortMapping>{'strip0.1':1, 'strip0.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.1</IP> + <PortMapping>{'strip1.1':1, 'strip1.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.2</IP> + <PortMapping>{'strip2.1':1, 'strip2.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.3</IP> + <PortMapping>{'strip3.1':1, 'strip3.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.4</IP> + <PortMapping>{'strip4.1':1, 'strip4.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.5</IP> + <PortMapping>{'strip5.1':1, 'strip5.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.6</IP> + <PortMapping>{'strip6.1':1, 'strip6.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.7</IP> + <PortMapping>{'strip7.1':1, 'strip7.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.8</IP> + <PortMapping>{'strip8.1':1, 'strip8.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.9</IP> + <PortMapping>{'strip9.1':1, 'strip9.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.10</IP> + <PortMapping>{'strip10.1':1, 'strip10.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.11</IP> + <PortMapping>{'strip11.1':1, 'strip11.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.12</IP> + <PortMapping>{'strip12.1':1, 'strip12.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.13</IP> + <PortMapping>{'strip13.1':1, 'strip13.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.14</IP> + <PortMapping>{'strip14.1':1, 'strip14.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.15</IP> + <PortMapping>{'strip15.1':1, 'strip15.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.16</IP> + <PortMapping>{'strip16.1':1, 'strip16.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.17</IP> + <PortMapping>{'strip17.1':1, 'strip17.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.18</IP> + <PortMapping>{'strip18.1':1, 'strip18.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.19</IP> + <PortMapping>{'strip19.1':1, 'strip19.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.20</IP> + <PortMapping>{'strip20.1':1, 'strip20.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.21</IP> + <PortMapping>{'strip21.1':1, 'strip21.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.22</IP> + <PortMapping>{'strip22.1':1, 'strip22.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.23</IP> + <PortMapping>{'strip23.1':1, 'strip23.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.24</IP> + <PortMapping>{'strip24.1':1, 'strip24.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.25</IP> + <PortMapping>{'strip25.1':1, 'strip25.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.26</IP> + <PortMapping>{'strip26.1':1, 'strip26.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.27</IP> + <PortMapping>{'strip27.1':1, 'strip27.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.28</IP> + <PortMapping>{'strip28.1':1, 'strip28.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.29</IP> + <PortMapping>{'strip29.1':1, 'strip29.2':2}</PortMapping> + </PowerSupply> + <PowerSupply> + <IP>10.32.0.30</IP> + <PortMapping>{'strip30.1':1, 'strip30.2':2}</PortMapping> + </PowerSupply> + </Args> +</Renderer> 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')) |