diff options
author | Thomas B Thompson <tbent@spice.(none)> | 2010-12-24 03:18:43 -0500 |
---|---|---|
committer | Thomas B Thompson <tbent@spice.(none)> | 2010-12-24 03:23:26 -0500 |
commit | 64eafb98f988818de423e91f662817cf2b94942f (patch) | |
tree | 5ce876dc64131cf0fc405a0d0bd1f1027b57d9fe /LightInstallation.py | |
parent | 8cecf83f16fcdec5b3ee68cc40c2b360e0f845d0 (diff) |
done with logging stuff -- pretty simple, just need to import from logger module and then run something like "main_log.debug("text")"
Diffstat (limited to 'LightInstallation.py')
-rw-r--r-- | LightInstallation.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LightInstallation.py b/LightInstallation.py index e4adab7..87aa629 100644 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -3,10 +3,13 @@ from pixelcore.Screen import * from pixelcore.PixelStrip import * import pdb, sys, time, Util, thread from pygame.locals import * +from logger import main_log #Python class to instantiate and drive a Screen through different patterns, #and effects. class LightInstallation: def __init__(self, configFileName): + main_log.critical("hi russell, i'm sending info to the log files") + main_log.critical("initializing based on file: " + str(configFileName)) self.timer = Util.Stopwatch() self.timer.start() self.inputs = {} #dict of inputs and their bound behaviors, keyed by InputId @@ -45,6 +48,7 @@ class LightInstallation: self.timer.stop() print 'Initialization done. Time: ', self.timer.elapsed(), 'ms' self.mainLoop() + def initializeMapper(self, mapperConfig): self.mapper = self.initializeComponent(mapperConfig)[0] #TODO: support #multiple mappers |