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