def main(parseOpts = False, looplimit = 100000): print ' sending pixels forever ~~ (control-c to exit)...' global strip strip = utils.init(parseOpts) # forever rainbow stripes rainbow_stripes(looplimit)
def main(parseOpts = False, looplimit=100000): global strip print ' sending pixels forever (control-c to exit)...' strip = utils.init(parseOpts) print "OK" for x in range(looplimit): for i in range(len(colors)): next_color() fade_to(colors[color])
def main(parseOpts=False, looplimit=5): global strip print " sending pixels forever (control-c to exit)..." strip = utils.init(parseOpts) print "OK" for i in range(looplimit * len(colors)): for i in range(utils.n_strips): if i % 2 == 0: next_color() fade_strip(i, colors[color])
def main(parseOpts = False, looplimit=5): global strip strip = utils.init(parseOpts) for x in range(looplimit): show_tiger() time.sleep(5) show_elephant() time.sleep(5) show_octopus() time.sleep(5) show_nautilus() time.sleep(5)
def main(parseOpts=False, looplimit=5): global strip strip = utils.init(parseOpts) panel_test(looplimit)