Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// From main part of the sketch:
- // Strand info
- CRGB rawleds[NUM_LEDS];
- CRGBSet leds(rawleds, NUM_LEDS);
- // Real size of arrays
- CRGBSet BoxAndRays(leds(0,59)); // 60 pixels used for box and rays of light.
- CRGBSet Staff(leds(60,105)); // 45 pixels for the staff
- CRGBSet Gap(leds(106,116)); // 10 unused pixels from top of staff to Eye
- CRGBSet Eye(leds(117,119)); // 3 pixels for eye
- // Test size of arrays
- //CRGBSet BoxAndRays(leds(0,9)); // 60 pixels used for box and rays of light.
- //CRGBSet Staff(leds(10,19)); // 35 pixels for the staff
- //CRGBSet Gap(leds(20,23)); // 10 unused pixels from top of staff to Eye
- //CRGBSet Eye(leds(24,26)); // 3 pixels for eye
- struct CRGB * ledarray[] ={BoxAndRays, Staff, Gap, Eye}; // An array of the CRGBSet arrays
- // Real size of array of arrays
- uint8_t sizearray[]= {60,45,10,3}; // size of the above arrays
- // Test size of array of arrays
- //uint8_t sizearray[]= {10,10,4,3}; // size of the above arrays
- /// From Time_Performance:
- void Performance1() // Using this for Anubis
- {
- AT(0,0,00.500) { fill_solid( ledarray[3], 3, CRGB::Red); FastLED.show();} // Turn on eye
- AT(0,0,01.000) { mp3.play(001); }
- FROM(0,0,01.000) { Anubis_fixed_color(CRGB::Green, 700, 8, 1, 1); FastLED.delay(20);} // In Halloween_chase.h. Conflicts with MP3 player if not enough pixels in strand
- AT(0,0,05.400) { fill_solid( ledarray[1], 45, CRGB::Green); FastLED.show();} // Turn on entire staff
- FROM(0,0,5.500) {FastLED.setBrightness(BRIGHTNESS);random16_add_entropy(random(0,65535));gPal = CRGBPalette16( CRGB::Black, CRGB::Gold, CRGB::Yellow, CRGB::Red); Anubis_Fire2012WithPalette(75,80, 0,0); FastLED.delay(1000 / FRAMES_PER_SECOND);}
- FROM(0,0,16.200) {FastLED.clear();FastLED.show();}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement