Skip to content

Instantly share code, notes, and snippets.

Created September 22, 2017 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0f2b93dcb2b79f65bf4854bab5afb3f7 to your computer and use it in GitHub Desktop.
Save anonymous/0f2b93dcb2b79f65bf4854bab5afb3f7 to your computer and use it in GitHub Desktop.
Part of demo reel
void juggle() {
// eight colored dots, weaving in and out of sync with each other
fadeToBlackBy( leds, NUM_LEDS, 10);
byte dothue = 0;
for( int i = 0; i < 2; i++) {
leds[beatsin16(i+50,0,NUM_LEDS)] |= CHSV(dothue, 200, 255);
dothue += 56;
}
}
//I dont understand the beatsin16 part.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment