# Sample scenario # Indentation is just for clarity, it doesn't change the program # commands are sent on 'wait', to be able to send multiple commands at once. # So 'wait(0)' has a meaning... # Note that 'loop(x,10)' loops 10 times, so the code inside the loop # is executed 11 times ! reset() # forces all channels to 0 wait(200) label(ONE) label(TWO) channel(1) rgb(255,0,0) ; wait(100) rgb(0,255,0) ; wait(100) rgb(0,255,255); wait(100) loop(TWO,4) channel(9) ; rgb(255,255,255) wait(200) rgb(0,0,255) wait(200) loop(ONE,4) wait(1000) reset() wait(0) # to force to send the 'reset' data