Simple, that’s the way to begin. And we get some useful sequences out of it. On this page, we have
The World’s Shortest Sequence
One line of code. That’s it!
//world's shortest sequence //starts dark, fades up //repeats continuously //takes a moment to turn on the first time @300ms chn1 = fade from 100% to 0% for 300ms //turns chn1 On then fades Off //falls through to end and replays
Try adjusting the two 300ms numbers differently to control for how long the LED turns off or if it does at all. How would you speed it up to a frantic flutter or slow it down to almost imperceptible waning light?
Alien Glow
2 to 3 lines of code! Smooth, gradual fades.
//Alien glow //Two line version //doesn't fade to 0%, we chose a little persistence at 4%. //doesn't reverse instantly, we made a short 100ms hesitation //it takes two seconds to get started @2000ms chn1 = fade from 4% to 100% for 1900ms @4000ms chn1 = fade from 100% to 4% for 1900ms //falls through to repeat
//Alien Glow //Three line version //exactly the same as two line version, except it starts instantly. //doesn't fade to 0%, we chose a little persistence at 4%. //doesn't reverse instantly, we made a short 100ms hesitation chn1 = fade from 4% to 100% for 1900ms @2000ms chn1 = fade from 100% to 4% for 1900ms @4000ms //wait for 2nd fade //falls through to repeat
Sequences on this page used the following syntax. Refer to the help file in Sequence Composer or the tutorial chapters for more information.
Appearance Name // comments follow slashes and have no effect chn1 = set channel output's LED to brightness at right 15% brightness fade from 5% to 95% for 100ms Fade from one brightness to another @2345ms @+125 @+3.120s time stamps 4560ms 1s time durations