from operationscore.PixelAssembler import * class SpecifiedLayout(PixelAssembler): """SpecifiedLayout is a class that allows precise specification of each individual LED. Configure with a tag in the args dict as follows': (1,1) (50,50) etc. You may put attributes on the Locs so that you don't get confused. """ def initLayout(self): self.lightNum = -1 def layoutFunc(self, lastLocation): self.lightNum += 1 return self['Locations'][self.lightNum]