Created
September 22, 2017 21:05
-
-
Save anonymous/0f2b93dcb2b79f65bf4854bab5afb3f7 to your computer and use it in GitHub Desktop.
Part of demo reel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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