Advertisement
BurningWreck

Anubis light effect - blank section

Oct 24th, 2021 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. /// From main part of the sketch:
  2.  
  3. // Strand info
  4. CRGB rawleds[NUM_LEDS];
  5. CRGBSet leds(rawleds, NUM_LEDS);
  6. // Real size of arrays
  7. CRGBSet BoxAndRays(leds(0,59)); // 60 pixels used for box and rays of light.
  8. CRGBSet Staff(leds(60,105)); // 45 pixels for the staff
  9. CRGBSet Gap(leds(106,116)); // 10 unused pixels from top of staff to Eye
  10. CRGBSet Eye(leds(117,119)); // 3 pixels for eye
  11.  
  12. // Test size of arrays
  13. //CRGBSet BoxAndRays(leds(0,9)); // 60 pixels used for box and rays of light.
  14. //CRGBSet Staff(leds(10,19)); // 35 pixels for the staff
  15. //CRGBSet Gap(leds(20,23)); // 10 unused pixels from top of staff to Eye
  16. //CRGBSet Eye(leds(24,26)); // 3 pixels for eye
  17.  
  18. struct CRGB * ledarray[] ={BoxAndRays, Staff, Gap, Eye}; // An array of the CRGBSet arrays
  19.  
  20. // Real size of array of arrays
  21. uint8_t sizearray[]= {60,45,10,3}; // size of the above arrays
  22.  
  23. // Test size of array of arrays
  24. //uint8_t sizearray[]= {10,10,4,3}; // size of the above arrays
  25.  
  26.  
  27.  
  28. /// From Time_Performance:
  29.  
  30. void Performance1() // Using this for Anubis
  31. {
  32. AT(0,0,00.500) { fill_solid( ledarray[3], 3, CRGB::Red); FastLED.show();} // Turn on eye
  33. AT(0,0,01.000) { mp3.play(001); }
  34. 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
  35. AT(0,0,05.400) { fill_solid( ledarray[1], 45, CRGB::Green); FastLED.show();} // Turn on entire staff
  36. 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);}
  37.  
  38. FROM(0,0,16.200) {FastLED.clear();FastLED.show();}
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement