Mercurial > code > home > repos > light9
changeset 1394:0bfaeaa40cfe
debug effects
Ignore-this: 74e4b63b84eb58d37d1402400d77e8b4
author | drewp@bigasterisk.com |
---|---|
date | Sun, 14 Jun 2015 20:05:18 +0000 |
parents | 152f42e6297b |
children | b6ba0e7d126b |
files | light9/Effects.py light9/effecteval/effectloop.py |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/Effects.py Sun Jun 14 19:10:45 2015 +0000 +++ b/light9/Effects.py Sun Jun 14 20:05:18 2015 +0000 @@ -20,6 +20,10 @@ """list of r,g,b tuples for sending to an LED strip""" which = 'L' # LR means both. W is the wide one pixels = [] + + def __repr__(self): + return '<Strip which=%r px0=%r>' % (self.which, self.pixels[0,:]) + @classmethod def solid(cls, which='L', color=(1,1,1), hsv=None): """hsv overrides color"""
--- a/light9/effecteval/effectloop.py Sun Jun 14 19:10:45 2015 +0000 +++ b/light9/effecteval/effectloop.py Sun Jun 14 20:05:18 2015 +0000 @@ -22,7 +22,7 @@ def __init__(self, graph, stats): self.graph, self.stats = graph, stats self.currentSong = None - self.currentEffects = [] + self.currentEffects = [] # EffectNodes for the current song plus the submaster ones self.lastLogTime = 0 self.lastLogMsg = "" self.lastErrorLog = 0 @@ -107,6 +107,7 @@ @inlineCallbacks def sendLevels(self): + print '' t1 = time.time() log.debug("time since last call: %.1f ms" % (1000 * (t1 - self.lastSendLevelsTime))) self.lastSendLevelsTime = t1