# Candleflicker effect by penfold42 # Algorithm courtesy of # https://cpldcpu.com/2013/12/08/hacking-a-candleflicker-led/ # candles can be : # a single led number, a list of candle numbers # "all" to flicker all the leds randomly # "all-together" to flicker all the leds in unison import hyperion import time import colorsys import random # Get parameters color = hyperion.args.get('color', (255,138,0)) colorShift = float(hyperion.args.get('colorShift', 1))/100.0 brightness = float(hyperion.args.get('brightness', 100))/100.0 sleepTime = float(hyperion.args.get('sleepTime', 0.14)) candles = hyperion.args.get('candles', "all") ledlist = hyperion.args.get('ledlist', "1") candlelist = () if (candles == "list") and (type(ledlist) is str): for s in ledlist.split(','): i = int(s) if (i