def extra_demo(): # One cycle of red, green and blue each print('One strandtest of red, green and blue each') MY_CYCLE = colorschemes.StrandTest(num_leds=NUM_LEDS, pause_value=0, num_steps_per_cycle=NUM_LEDS, num_cycles=3, order="rbg", global_brightness=10) MY_CYCLE.start() # Two slow trips through the rainbow print('Two slow trips through the rainbow') MY_CYCLE = colorschemes.Rainbow(num_leds=NUM_LEDS, pause_value=0, num_steps_per_cycle=255, num_cycles=2, order="rbg", global_brightness=10) MY_CYCLE.start() # Five quick trips through the rainbow print('Five quick trips through the rainbow') MY_CYCLE = colorschemes.TheaterChase(num_leds=NUM_LEDS, pause_value=0.04, num_steps_per_cycle=35, num_cycles=4, order="rbg", global_brightness=5) MY_CYCLE = colorschemes.TheaterChase(num_leds=NUM_LEDS, pause_value=0.04, num_steps_per_cycle=35, num_cycles=4, order="rbg", global_brightness=100) MY_CYCLE.start() print('Finished the test')
# One Cycle with one step and a pause of theee seconds. Hence three seconds of white light print('Three Seconds of white light') MY_CYCLE = colorschemes.Solid(duration_s=3, **options) MY_CYCLE.start() if 1 in args.patterns: # Go twice around the clock print('Go twice around the clock') MY_CYCLE = colorschemes.RoundAndRound( num_steps_per_cycle=options['num_led'], num_cycles=2, **options) MY_CYCLE.start() if 2 in args.patterns: # One cycle of red, green and blue each print('One strandtest of red, green and blue each') MY_CYCLE = colorschemes.StrandTest( num_steps_per_cycle=options['num_led'], num_cycles=3, **options) MY_CYCLE.start() if 3 in args.patterns: # One slow trip through the rainbow print('One slow trip through the rainbow') MY_CYCLE = ColorCycleTemplate(num_steps_per_cycle=255, num_cycles=1, **options) rainbow = colorschemes.Rainbow(**options) MY_CYCLE.append_updater(rainbow.update) MY_CYCLE.append_updater(colorschemes.create_swipe(args.num_led - 1, 0)) MY_CYCLE.start() if 4 in args.patterns: # Five quick trips through the rainbow
num_steps_per_cycle=1, num_cycles=1) MY_CYCLE.start() # Go twice around the clock print('Go twice around the clock') MY_CYCLE = colorschemes.RoundAndRound(num_led=NUM_LED, pause_value=.05, num_steps_per_cycle=NUM_LED, num_cycles=5) MY_CYCLE.start() # One cycle of red, green and blue each print('One strandtest of red, green and blue each') MY_CYCLE = colorschemes.StrandTest(num_led=NUM_LED, pause_value=.05, num_steps_per_cycle=NUM_LED, num_cycles=5) MY_CYCLE.start() # One slow trip through the rainbow print('One slow trip through the rainbow') MY_CYCLE = colorschemes.Rainbow(num_led=NUM_LED, pause_value=0, num_steps_per_cycle=255, num_cycles=10) MY_CYCLE.start() # Five quick trips through the rainbow print('Five quick trips through the rainbow') MY_CYCLE = colorschemes.TheaterChase(num_led=NUM_LED, pause_value=0.04,
num_cycles=1) MY_CYCLE.start() # Go twice around the clock print('Go twice around the clock') MY_CYCLE = colorschemes.RoundAndRound(num_led=NUM_LED, pause_value=0, num_steps_per_cycle=NUM_LED, num_cycles=2) MY_CYCLE.start() # One cycle of red, green and blue each print('One strandtest of red, green and blue each') MY_CYCLE = colorschemes.StrandTest(num_led=NUM_LED, pause_value=0, num_steps_per_cycle=NUM_LED, num_cycles=3, global_brightness=10) MY_CYCLE.start() # Two slow trips through the rainbow print('Two slow trips through the rainbow') MY_CYCLE = colorschemes.Rainbow(num_led=NUM_LED, pause_value=0, num_steps_per_cycle=255, num_cycles=2, global_brightness=10) MY_CYCLE.start() # Five quick trips through the rainbow print('Five quick trips through the rainbow')
# One Cycle with one step and a pause of one second. Hence one second of white light myCycle = colorschemes.Solid(numLEDs=numLEDs, pauseValue=1, numStepsPerCycle=1, numCycles=1) myCycle.start() # Go twice around the clock myCycle = colorschemes.RoundAndRound(numLEDs=numLEDs, pauseValue=0, numStepsPerCycle=numLEDs, numCycles=2) myCycle.start() # One cycle of red, green and blue each myCycle = colorschemes.StrandTest(numLEDs=numLEDs, pauseValue=0, numStepsPerCycle=numLEDs, numCycles=3, globalBrightness=10) myCycle.start() # Two slow trips through the rainbow myCycle = colorschemes.Rainbow(numLEDs=numLEDs, pauseValue=0, numStepsPerCycle=255, numCycles=2, globalBrightness=10) myCycle.start() # Five quick trips through the rainbow myCycle = colorschemes.TheaterChase(numLEDs=numLEDs, pauseValue=0.04, numStepsPerCycle=35, numCycles=5,