Package SmootLight :: Package pixelcore :: Module PixelStrip
[hide private]
[frames] | no frames]

Source Code for Module SmootLight.pixelcore.PixelStrip

 1  from pixelcore.Pixel import * 
 2  import util.Strings as Strings 
 3  import util.Geo as Geo 
 4  from pixelevents.StepEvent import * 
 5  import math 
 6  import pdb 
7 -class PixelStrip:
8 """Python class representing a single Pixel strip (usually 50 Pixels)""" 9
10 - def __init__(self, layoutEngine):
11 self.initStrip(layoutEngine) 12 self.argDict = layoutEngine.getStripArgs()
13
14 - def initStrip(self, layoutEngine):
15 pixelLocations = layoutEngine.getPixelLocations() 16 self.pixels = [Pixel(l) for l in pixelLocations]
17
18 - def __iter__(self):
19 return self.pixels.__iter__()
20