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