From 9315ded6555a7afb8f11d96e5a4c446389f157cb Mon Sep 17 00:00:00 2001 From: rcoh Date: Tue, 11 Jan 2011 13:16:59 -0500 Subject: Some config changes to make everything a little more palatable. --- behaviors/AddPixelEvent.py | 4 ++++ behaviors/LoopAndDie.xml | 2 +- config/Outdoor.xml | 2 +- layouts/50PixelStrip.xml | 2 +- renderers/SixStripUDP.xml | 4 ++-- 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 behaviors/AddPixelEvent.py diff --git a/behaviors/AddPixelEvent.py b/behaviors/AddPixelEvent.py new file mode 100644 index 0000000..bf3cfff --- /dev/null +++ b/behaviors/AddPixelEvent.py @@ -0,0 +1,4 @@ +from operationscore.Behavior import * +class AddPixelEvent(Behavior): + def initBehavior(self): + className = self['Class'] diff --git a/behaviors/LoopAndDie.xml b/behaviors/LoopAndDie.xml index af26562..e2940e4 100644 --- a/behaviors/LoopAndDie.xml +++ b/behaviors/LoopAndDie.xml @@ -1,6 +1,6 @@ behaviors.RecursiveDecay - 70 + 20 diff --git a/config/Outdoor.xml b/config/Outdoor.xml index f0995b1..9ee0c3a 100644 --- a/config/Outdoor.xml +++ b/config/Outdoor.xml @@ -87,7 +87,7 @@ behaviors/LoopAndDie.xml - 2000 + 200 diff --git a/layouts/50PixelStrip.xml b/layouts/50PixelStrip.xml index 11fa5e1..beabb97 100644 --- a/layouts/50PixelStrip.xml +++ b/layouts/50PixelStrip.xml @@ -3,6 +3,6 @@ 4 4 - 500 + 50 diff --git a/renderers/SixStripUDP.xml b/renderers/SixStripUDP.xml index f3c9e75..04f493b 100644 --- a/renderers/SixStripUDP.xml +++ b/renderers/SixStripUDP.xml @@ -3,11 +3,11 @@ indoorRenderer - 10.31.255.233 + 10.32.97.17 {'strip1':1, 'strip2':2} - 10.32.97.17 + 10.31.255.233 {'strip3':1, 'strip4':2} -- cgit v1.2.3 From 7700e6b6c80033b4084beadc2e27164bcfa09166 Mon Sep 17 00:00:00 2001 From: rcoh Date: Wed, 12 Jan 2011 14:34:39 -0500 Subject: "NoPygame" friendly config --- LightInstallation.py | 1 - config/NoPygame.xml | 125 ++++++++++++++++++++++++++++++++++++++++++++++++ pixelcore/PixelStrip.py | 1 - 3 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 config/NoPygame.xml diff --git a/LightInstallation.py b/LightInstallation.py index b1ad90e..2eb03c9 100644 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -2,7 +2,6 @@ from xml.etree.ElementTree import ElementTree from pixelcore.Screen import * from pixelcore.PixelStrip import * import pdb, sys, time, thread -from pygame.locals import * import util.TimeOps as clock import util.Config as configGetter import util.ComponentRegistry as compReg diff --git a/config/NoPygame.xml b/config/NoPygame.xml new file mode 100644 index 0000000..be7849b --- /dev/null +++ b/config/NoPygame.xml @@ -0,0 +1,125 @@ + + + + + simplemap + + + + layouts/BasicSixStrip.xml + + + + pixelmappers.SimpleMapper + + simplemap + 20 + + + + pixelmappers.GaussianMapper + + gaussmap + 20 + 0.01 + 3 + 1 + + + + + + renderers/SixStripUDP.xml + + + + + inputs.RandomLocs + + randomLoc + + + + + + behaviors.EchoBehavior + + echo + 0 + False + + + + behaviors/RandomColor.xml + + + behaviors/PixelDecay.xml + + + behaviors.DebugBehavior + + debug + 0 + + + + + + behaviors.AllPixelsLeft + + pixelsleft + + + + behaviors/LoopAndDie.xml + + 200 + + + + behaviors.BehaviorChain + + runcolordecay + + randomLoc + + + colorchange + running + decay + + {'running':'acceleratedie'} + True + gaussmap + + + + behaviors/Accelerate.xml + + + behaviors.BehaviorChain + + acceleratedie + + accelerate + recursivedecay + + + + + behaviors.BehaviorChain + + mousechaser + + echo + pixelsleft + decay + + True + + + + behaviors/RunningBehavior.xml + + + diff --git a/pixelcore/PixelStrip.py b/pixelcore/PixelStrip.py index fceff8e..662b8fe 100644 --- a/pixelcore/PixelStrip.py +++ b/pixelcore/PixelStrip.py @@ -2,7 +2,6 @@ from pixelcore.Pixel import * import util.Strings as Strings import util.Geo as Geo from pixelevents.StepEvent import * -import pygame import math import pdb #Python class representing a single Pixel strip (usually 50 Pixels) -- cgit v1.2.3