From 1cf16210e3571278f24c3561e29377d1b2d1e248 Mon Sep 17 00:00:00 2001 From: johan Date: Sat, 30 Nov 2013 17:46:07 +0100 Subject: [PATCH] code cleanup Former-commit-id: 76226289a660d39fd4571e96f899e8fceebcd39b --- effects/rainbow-mood.py | 8 +------- effects/rainbow-swirl.py | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/effects/rainbow-mood.py b/effects/rainbow-mood.py index bba368ab..7f3c5727 100644 --- a/effects/rainbow-mood.py +++ b/effects/rainbow-mood.py @@ -2,16 +2,10 @@ import hyperion import time import colorsys -# Get the rotation time +# Get the parameters rotationTime = hyperion.args.get('rotation-time', 3.0) - -# Get the brightness brightness = hyperion.args.get('brightness', 1.0) - -# Get the saturation saturation = hyperion.args.get('saturation', 1.0) - -# Get the direction reverse = hyperion.args.get('reverse', False) # Calculate the sleep time and hue increment diff --git a/effects/rainbow-swirl.py b/effects/rainbow-swirl.py index c55bf9d7..a274ace2 100644 --- a/effects/rainbow-swirl.py +++ b/effects/rainbow-swirl.py @@ -2,16 +2,10 @@ import hyperion import time import colorsys -# Get the rotation time +# Get the parameters rotationTime = hyperion.args.get('rotation-time', 3.0) - -# Get the brightness brightness = hyperion.args.get('brightness', 1.0) - -# Get the saturation saturation = hyperion.args.get('saturation', 1.0) - -# Get the direction reverse = hyperion.args.get('reverse', False) # Initialize the led data