code cleanup

Former-commit-id: 76226289a6
This commit is contained in:
johan 2013-11-30 17:46:07 +01:00
parent 4784b4ec42
commit 1cf16210e3
2 changed files with 2 additions and 14 deletions

View File

@ -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

View File

@ -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