diff --git a/effects/knight-rider.json b/effects/knight-rider.json old mode 100755 new mode 100644 diff --git a/effects/mood-blobs-blue.json b/effects/mood-blobs-blue.json old mode 100755 new mode 100644 diff --git a/effects/mood-blobs-green.json b/effects/mood-blobs-green.json old mode 100755 new mode 100644 diff --git a/effects/mood-blobs-red.json b/effects/mood-blobs-red.json old mode 100755 new mode 100644 diff --git a/effects/rainbow-mood.json b/effects/rainbow-mood.json old mode 100755 new mode 100644 diff --git a/effects/rainbow-swirl-fast.json b/effects/rainbow-swirl-fast.json old mode 100755 new mode 100644 diff --git a/effects/rainbow-swirl.json b/effects/rainbow-swirl.json old mode 100755 new mode 100644 diff --git a/effects/strobe.json b/effects/strobe-blue.json similarity index 54% rename from effects/strobe.json rename to effects/strobe-blue.json index 1af14afc..9a40b4d1 100644 --- a/effects/strobe.json +++ b/effects/strobe-blue.json @@ -1,8 +1,9 @@ -{ - "name" : "Stroboscope", - "script" : "strobe.py", - "args" : - { - "frequency" : 10.0 - } -} +{ + "name" : "Strobe blue", + "script" : "strobe.py", + "args" : + { + "color" : [ 0, 0, 255 ], + "frequency" : 10.0 + } +} diff --git a/effects/strobe-raspbmc.json b/effects/strobe-raspbmc.json new file mode 100644 index 00000000..2f69e110 --- /dev/null +++ b/effects/strobe-raspbmc.json @@ -0,0 +1,9 @@ +{ + "name" : "Strobe Raspbmc", + "script" : "strobe.py", + "args" : + { + "color" : [ 188, 17, 66 ], + "frequency" : 10.0 + } +} diff --git a/effects/strobe-white.json b/effects/strobe-white.json new file mode 100644 index 00000000..1552013b --- /dev/null +++ b/effects/strobe-white.json @@ -0,0 +1,9 @@ +{ + "name" : "Strobe white", + "script" : "strobe.py", + "args" : + { + "color" : [ 255, 255, 255 ], + "frequency" : 10.0 + } +} diff --git a/effects/strobe.py b/effects/strobe.py index c35cbab6..70cdb2e0 100644 --- a/effects/strobe.py +++ b/effects/strobe.py @@ -3,6 +3,7 @@ import time import colorsys # Get the rotation time +color = hyperion.args.get('color', (255,255,255)) frequency = float(hyperion.args.get('frequency', 10.0)) # Check parameters @@ -13,7 +14,7 @@ sleepTime = 1.0 / frequency # Initialize the led data blackLedsData = bytearray(hyperion.ledCount * ( 0, 0, 0)) -whiteLedsData = bytearray(hyperion.ledCount * (255,255,255)) +whiteLedsData = bytearray(hyperion.ledCount * colo) # Start the write data loop while not hyperion.abort():