Choreographer
A color pattern sequencer, intended for groups of RGB LEDs
Example
Check out the video in this tweet
use ;
use Timer;
use sleep;
use Duration;
// Timer with 1us ticks
type MicroTimer = ;
// Create a script for a single LED with up to
// eight different steps in the sequence
let mut script: = empty;
// This script will:
// * Keep the LED black for 1s
// * Fade from black to white and back in a sine pattern over 2.5s
// * Remain at black for 1s
// * End the sequence
script.set;
// Poll the script and update the LED until the
// script has completed (4.5s or so)
while let Some = script.poll
// Now we could leave the LED off, or set a
// new sequence on some event!
License
This project is licensed under the Mozilla Public License v2.0.