Lil__Nicky

Untitled

Oct 22nd, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.51 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 4
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 2000
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 3.2
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define ENABLE_SSD1306
  13. #define COLOR_CHANGE_DIRECT
  14. #define DISABLE_DIAGNOSTIC_COMMANDS
  15. #define FETT263_LOCKUP_DELAY 200
  16. #define FETT263_TWIST_OFF
  17. #define SAVE_STATE
  18. #endif
  19.  
  20. #ifdef CONFIG_PROP
  21. #include "../props/saber_fett263_buttons.h"
  22. #endif
  23.  
  24. #ifdef CONFIG_PRESETS
  25. Preset presets[] = {
  26. { "Binary", "tracks/Order66.wav",
  27. StylePtr<Layers<Stripes<2000,-2500,RotateColorsX<Variation,Red>,RandomPerLEDFlicker<RotateColorsX<Variation,Rgb<60,0,0>>,Black>,BrownNoiseFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<30,0,0>>,200>,RandomPerLEDFlicker<RotateColorsX<Variation,Rgb<80,0,0>>,RotateColorsX<Variation,Rgb<30,0,0>>>>,TransitionLoopL<TrConcat<TrWaveX<RandomFlicker<RotateColorsX<Variation,Red>,BrownNoiseFlicker<RotateColorsX<Variation,Rgb<80,0,0>>,Black,300>>,Int<400>,Int<100>,Int<200>,Int<0>>,AlphaL<Red,Int<0>>,TrDelayX<Scale<SlowNoise<Int<1500>>,Int<200>,Int<1200>>>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Orange,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
  28. StylePtr<Layers<RotateColorsX<Variation,Red>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_BLAST>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<1200>>,EFFECT_IGNITION>,InOutTrL<TrInstant,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TrDelay<30000>,Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TrDelay<30000>,Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TrDelay<30000>,Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  29. StylePtr<Layers<ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_BLAST>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<1200>>,EFFECT_IGNITION>,InOutTrL<TrInstant,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TrDelay<30000>,ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TrDelay<30000>,ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TrDelay<30000>,ColorCycle<RotateColorsX<Variation,White>,25,100,RotateColorsX<Variation,Red>,25,300,4000>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  30. StylePtr<Layers<TransitionLoop<Black,TrConcat<TrWipe<200>,RotateColorsX<Variation,White>,TrWipe<200>>>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_BLAST>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<1200>>,EFFECT_IGNITION>,InOutTrL<TrInstant,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,Mix<Bump<Sin<Int<18>>,Int<20000>>,Black,RotateColorsX<Variation,Red>>,TrDelay<30000>,Mix<Bump<Sin<Int<18>>,Int<20000>>,Black,RotateColorsX<Variation,Red>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,Mix<Bump<Sin<Int<18>>,Int<20000>>,Black,RotateColorsX<Variation,Red>>,TrDelay<30000>,Mix<Bump<Sin<Int<18>>,Int<20000>>,Black,RotateColorsX<Variation,Red>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,Mix<Bump<Sin<Int<18>>,Int<20000>>,Black,RotateColorsX<Variation,Red>>,TrDelay<30000>,Mix<Bump<Sin<Int<18>>,Int<20000>>,Black,RotateColorsX<Variation,Red>>,TrFade<500>>,EFFECT_BOOT>>>>>(), "cyan"},
  31.  
  32. { "IgnitionRedux", "tracks/Order66.wav",
  33. StylePtr<
  34. Layers<
  35. Stripes<2000,-2500,RotateColorsX<Variation,Red>,RandomPerLEDFlicker<RotateColorsX<Variation,Rgb<60,0,0>>,Black>,BrownNoiseFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<30,0,0>>,200>,RandomPerLEDFlicker<RotateColorsX<Variation,Rgb<80,0,0>>,RotateColorsX<Variation,Rgb<30,0,0>>>>,
  36. TransitionLoopL<TrConcat<TrWaveX<RandomFlicker<RotateColorsX<Variation,Red>,BrownNoiseFlicker<RotateColorsX<Variation,Rgb<80,0,0>>,Black,300>>,Int<400>,Int<100>,Int<200>,Int<0>>,AlphaL<Red,Int<0>>,TrDelayX<Scale<SlowNoise<Int<1500>>,Int<200>,Int<1200>>>>>,
  37. AlphaL<BrownNoiseFlicker<Red,Black,300>,SwingSpeed<400>>,
  38. // Dim Blade 50% "Power Save" button combo
  39. EffectSequence<EFFECT_POWERSAVE,
  40. AlphaL<Black,Int<16384>>,
  41. AlphaL<Black,Int<0>>>,
  42. // Clash
  43. TransitionEffectL<TrConcat<TrInstant,GreenYellow,TrDelay<25>,AlphaL<TransitionEffect<BrownNoiseFlicker<Rgb<255,150,0>,Black,50>,Moccasin,TrInstant,TrFade<300>,EFFECT_CLASH>,Bump<Scale<BladeAngle<>,Int<25000>,Int<8000>>,Int<18000>>>,TrFade<600>>,EFFECT_CLASH>,
  44. // Stab
  45. TransitionEffectL<TrConcat<TrInstant,GreenYellow,TrDelay<25>,AlphaL<Black,Int<0>>,TrWipeIn<300>,AlphaL<Stripes<5000,1000,DarkOrange,Rgb<80,60,0>,Orange,Rgb<60,30,0>,Black,DarkOrange,Orange>,SmoothStep<Int<20000>,Int<2000>>>,TrJoin<TrSmoothFade<900>,TrWipe<700>>>,EFFECT_STAB>,
  46. // Universal color blade Blast
  47. TransitionEffectL<TrConcat<TrInstant,GreenYellow,TrDelay<25>>,EFFECT_BLAST>,
  48. BlastL<ColorSequence<300,White,DarkOrange>,400,250,401>,
  49. AlphaL<White,BlastF<300,300,100000>>,
  50. // Lockup
  51. LockupTrL<Layers<
  52. AlphaL<Blinking<Tomato,Strobe<Yellow,Black,15,30>,60,500>, Bump<Scale<BladeAngle<5000,28000>,Scale<BladeAngle<8000,16000>,Int<3000>,Int<44000>>,Int<3000>>,Scale<SlowNoise<Int<3000>>,Int<8000>,Int<18000>>>>,
  53. AlphaL<BrownNoiseFlicker<Yellow,Black,50>, Bump<Scale<BladeAngle<5000,28000>,Scale<BladeAngle<8000,16000>,Int<3000>,Int<44000>>,Int<3000>>,Int<10000>>>>,
  54. TrConcat<TrInstant,
  55. AlphaL<Blinking<White,Strobe<BrownNoiseFlicker<Yellow,Black,500>,Black,15,30>,60,500>,Bump<Scale<BladeAngle<5000,28000>,Scale<BladeAngle<8000,16000>,Int<3000>,Int<44000>>,Int<3000>>,Scale<SlowNoise<Int<3000>>,Int<25000>,Int<32000>>>>,TrFade<500>>,TrSmoothFade<900>,SaberBase::LOCKUP_NORMAL>,
  56. TransitionEffectL<TrConcat<TrInstant,AlphaL<Strobe<GreenYellow,Black,20,30>, Bump<Scale<BladeAngle<5000,28000>,Scale<BladeAngle<8000,16000>,Int<3000>,Int<44000>>,Int<3000>>,Int<15000>>>,TrFade<600>>,EFFECT_LOCKUP_BEGIN>,
  57. TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<Strobe<AlphaL<White,Int<20000>>,Black,20,30>,30>,TrSmoothFade<250>>,EFFECT_LOCKUP_BEGIN>,
  58. TransitionEffectL<TrConcat<TrInstant,GreenYellow,TrDelay<25>>,EFFECT_LOCKUP_BEGIN>,
  59. TransitionEffectL<TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<200>,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrJoinR<TrWipe<200>,TrWipeIn<200>,TrFade<300>>>,EFFECT_LOCKUP_END>,
  60. // Non-Responsive Drag
  61. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,200>,White>,SmoothStep<Int<30000>,Int<2000>>>,TrConcat<TrInstant,GreenYellow,TrDelay<25>,AlphaL<Black,Int<0>>,TrFade<150>>,TrColorCycle<1500,-2000,100>,SaberBase::LOCKUP_DRAG>,
  62. // Lightning Block
  63. ResponsiveLightningBlockL<RandomFlicker<Strobe<White,Rgb16<21301,0,65535>,50,10>,BrownNoiseFlicker<Rgb16<21301,0,65535>,Black,500>>,
  64. //Begin Lightning Transition
  65. TrConcat<TrInstant,GreenYellow,TrDelay<25>,BrownNoiseFlicker<Rgb16<21301,0,65535>,Black,500>,TrFade<100>>,
  66. //End Lightning Transition
  67. TrConcat<TrInstant,GreenYellow,TrDelay<25>,BrownNoiseFlicker<Rgb16<21301,0,65535>,Black,500>,TrFade<150>,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrJoinR<TrWipe<200>,TrWipeIn<200>,TrFade<400>> >>,
  68. // Melt
  69. LockupTrL<
  70. // Melt Colors
  71. AlphaL<Mix<TwistAngle<>,Yellow,RandomPerLEDFlicker<Orange,OrangeRed>,BrownNoiseFlicker<Rgb16<20095,128,128>,Rgb16<35103,8175,298>,150>,StyleFire<Rgb16<20393,93,93>,Red,0,4,FireConfig<0,2000,0>,FireConfig<3000,0,0>,FireConfig<0,4000,0>>>,
  72. // Melt Shape
  73. SmoothStep<Scale<TwistAngle<>,Int<24000>,Int<29000>>,Int<2000>>>,
  74. //Melt Begin and End transitions
  75. TrConcat<TrInstant,GreenYellow,TrDelay<25>,AlphaL<Black,Int<0>>,TrWipeIn<600>>,TrColorCycle<1500,-2000,100>,SaberBase::LOCKUP_MELT>,
  76. TransitionEffectL<TrConcat<TrDelay<150>,AlphaL<Black,Int<0>>,TrFade<500>,AlphaL<Strobe<White,Black,40,40>,Bump<Int<0>,Int<80000>>>,TrDelay<350>>,EFFECT_RETRACTION>,
  77. AlphaL<Black,SmoothStep<Scale<SlowNoise<Int<1800>>,Int<22000>,Int<40000>>,Int<24000>>>,
  78. InOutTrL<
  79. TrConcat<TrInstant,BrownNoiseFlicker<White,DarkOrange,300>,TrDelay<20>,Black,TrWipe<300>,StyleFire<Stripes<2500,5000,BrownNoiseFlicker<RotateColorsX<Variation,Red>,Black,20>,RotateColorsX<Variation,Rgb<10,1,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<255,20,0>>,70>,RotateColorsX<Variation,Rgb<128,34,0>>>,RotateColorsX<Variation,Rgb<80,11,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,TrWipe<100>,Black,TrBoing<300,3>>,
  80. TrConcat<TrInstant,BrownNoiseFlicker<White,DarkOrange,300>,TrFade<250>,AlphaL<Black,Int<0>>,TrJoin<TrWipeInX<Int<1200>>,TrWaveX<White,Int<2000>,Int<400>,Int<700>,Int<32768>>>>>,
  81. // Comment out this following line for non-stutter on actual ignition
  82. //TransitionEffectL<TrConcat<TrWaveX<White,Int<800>,Int<200>,Int<300>,Int<0>>,BrownNoiseFlicker<White,DarkOrange,300>,TrDelay<20>,Black,TrDelay<650>,BrownNoiseFlicker<White,DarkOrange,300>,TrDelay<20>,Black,TrDelay<100>,BrownNoiseFlicker<White,Red,70>,TrFade<500>,Black,TrInstant>,EFFECT_IGNITION>,
  83. TransitionEffectL<TrConcat<TrDelay<1000>,BrownNoiseFlicker<White,DarkOrange,300>,TrDelay<50>>,EFFECT_RETRACTION>,
  84. TransitionEffectL<TrConcat<
  85. TrInstant,AlphaL<BrownNoiseFlicker<Red,Black,100>,Bump<Int<0>,Int<30000>>>,TrDelay<100>,AlphaL<BrownNoiseFlicker<Red,Black,100>,Bump<Int<0>,Int<30000>>>,TrFade<100>,Black,
  86. TrDelay<50>,AlphaL<BrownNoiseFlicker<White,Black,100>,Bump<Int<0>,Int<50000>>>,TrDelay<150>,AlphaL<BrownNoiseFlicker<White,DarkOrange,300>,Bump<Int<0>,Int<70000>>>,TrFade<150>,Black,
  87. TrFade<100>,AlphaL<BrownNoiseFlicker<Rgb<255,100,100>,Black,40>,Bump<Int<0>,Int<40000>>>,TrFade<400>,AlphaL<BrownNoiseFlicker<Red,Black,40>,Bump<Int<0>,Int<20000>>>,TrFade<400>,Black,
  88.  
  89. TrInstant,AlphaL<BrownNoiseFlicker<White,Black,100>,Bump<Int<0>,Int<70000>>>,TrDelay<250>,AlphaL<BrownNoiseFlicker<White,DarkOrange,300>,Bump<Int<0>,Int<50000>>>,TrFade<200>,Black,
  90. TrFade<100>,AlphaL<BrownNoiseFlicker<Rgb<255,100,100>,Black,40>,Bump<Int<0>,Int<40000>>>,TrFade<500>,AlphaL<BrownNoiseFlicker<Red,Black,40>,Bump<Int<0>,Int<20000>>>,TrFade<600>,Black,
  91.  
  92. TrInstant,AlphaL<BrownNoiseFlicker<White,Black,100>,Bump<Int<0>,Int<10000>>>,TrDelay<100>,AlphaL<BrownNoiseFlicker<White,Red,300>,Bump<Int<0>,Int<5000>>>,TrFade<150>,Black,
  93. TrDelay<300>,Black,
  94. TrInstant,AlphaL<BrownNoiseFlicker<White,Black,100>,Bump<Int<0>,Int<10000>>>,TrDelay<70>,AlphaL<BrownNoiseFlicker<White,Red,300>,Bump<Int<0>,Int<5000>>>,TrFade<40>,Black,
  95. TrDelay<20>,Black,
  96.  
  97. TrInstant,AlphaL<BrownNoiseFlicker<Red,Black,100>,Bump<Int<0>,Int<30000>>>,TrDelay<100>,AlphaL<BrownNoiseFlicker<Red,Black,100>,Bump<Int<0>,Int<30000>>>,TrFade<100>,Black,
  98. TrDelay<50>,AlphaL<BrownNoiseFlicker<White,Black,100>,Bump<Int<0>,Int<50000>>>,TrDelay<150>,AlphaL<BrownNoiseFlicker<White,DarkOrange,300>,Bump<Int<0>,Int<70000>>>,TrFade<150>,Black,
  99. TrFade<100>,AlphaL<BrownNoiseFlicker<Rgb<255,100,100>,Black,40>,Bump<Int<0>,Int<40000>>>,TrFade<300>,AlphaL<BrownNoiseFlicker<Red,Black,40>,Bump<Int<0>,Int<20000>>>,TrFade<100>,
  100.  
  101. AlphaL<BrownNoiseFlicker<White,Red,100>,Bump<Int<0>,Int<10000>>>,
  102. TrFade<180>,AlphaL<BrownNoiseFlicker<White,DarkOrange,300>,Bump<Int<0>,Int<20000>>>,TrFade<180>,AlphaL<BrownNoiseFlicker<White,Red,100>,Bump<Int<0>,Int<10000>>>,
  103. TrFade<115>,AlphaL<BrownNoiseFlicker<White,DarkOrange,100>,Bump<Int<0>,Int<40000>>>,TrFade<115>,AlphaL<BrownNoiseFlicker<White,Red,300>,Bump<Int<0>,Int<20000>>>,
  104. TrFade<100>,AlphaL<BrownNoiseFlicker<White,DarkOrange,100>,Bump<Int<0>,Int<80000>>>,TrFade<100>,AlphaL<BrownNoiseFlicker<White,Red,300>,Bump<Int<0>,Int<40000>>>,
  105. TrFade<125>,BrownNoiseFlicker<White,DarkOrange,300>,
  106. TrInstant>,EFFECT_PREON>,
  107. AlphaL<Black,Scale<IsLessThan<BatteryLevel,Int<11000>>,Int<0>,Int<16384>>>
  108. >>()
  109. ,
  110. StylePtr<Layers<RotateColorsX<Variation,Red>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_BLAST>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,InOutTrL<TrInstant,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<RotateColorsX<Variation,Red>,TrConcat<TrBoing<1200,2>,RotateColorsX<Variation,Rgb<10,0,0>>,TrFade<1200>>>,TrDelay<30000>,TransitionLoop<RotateColorsX<Variation,Red>,TrConcat<TrBoing<1200,2>,RotateColorsX<Variation,Rgb<10,0,0>>,TrFade<1200>>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<RotateColorsX<Variation,Red>,TrConcat<TrBoing<1200,2>,RotateColorsX<Variation,Rgb<10,0,0>>,TrFade<1200>>>,TrDelay<30000>,TransitionLoop<RotateColorsX<Variation,Red>,TrConcat<TrBoing<1200,2>,RotateColorsX<Variation,Rgb<10,0,0>>,TrFade<1200>>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<RotateColorsX<Variation,Red>,TrConcat<TrBoing<1200,2>,RotateColorsX<Variation,Rgb<10,0,0>>,TrFade<1200>>>,TrDelay<30000>,TransitionLoop<RotateColorsX<Variation,Red>,TrConcat<TrBoing<1200,2>,RotateColorsX<Variation,Rgb<10,0,0>>,TrFade<1200>>>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  111. StylePtr<Layers<Pulsing<Black,RotateColorsX<Variation,Red>,3000>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_BLAST>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,InOutTrL<TrInstant,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  112. StylePtr<Layers<TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<800>,TrWipeIn<800>>,RotateColorsX<Variation,Red>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_BLAST>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL<White>,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,InOutTrL<TrInstant,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoin<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,Green>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  113. "cyan"},
  114.  
  115.  
  116.  
  117. { "Zombie", "tracks/Kevin_Sherwood_Damned_Bass_Kidz.wav",
  118. StylePtr<Layers<StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Red>,Black,20>,RotateColorsX<Variation,Rgb<10,0,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<255,25,25>>,70>,RotateColorsX<Variation,Rgb<128,0,0>>>,RotateColorsX<Variation,Rgb<80,0,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,
  119. LockupTrL<Layers<
  120. AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
  121. AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  122. ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
  123. ResponsiveStabL<Orange>,
  124. ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
  125. ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
  126. TransitionEffectL<TrConcat<TrInstant,Stripes<3000,-3500,White,RandomPerLEDFlicker<Rgb<60,60,60>,Black>,BrownNoiseFlicker<White,Rgb<30,30,30>,200>,RandomPerLEDFlicker<Rgb<80,80,80>,Rgb<30,30,30>>>,TrFade<800>>,EFFECT_IGNITION>,
  127. TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<White,40>,TrFade<1000>>,EFFECT_RETRACTION>,
  128. LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
  129. LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
  130. InOutTrL<TrWipeSparkTip<White,500>,TrWipeInSparkTip<White,550>>,
  131. TransitionEffectL<TrConcat<TrInstant,AlphaL<White,Bump<Int<0>,Int<10000>>>,TrFade<3000>,AlphaL<Orange,Bump<Int<0>,Int<8000>>>,TrFade<3000>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,
  132. TransitionEffectL<TrConcat<TrWipe<500>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<50000>>>,TrWipeIn<500>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<40000>>>,TrFade<400>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  133.  
  134. StylePtr<Layers<
  135. StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Red>,Black,20>,RotateColorsX<Variation,Rgb<10,0,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<255,25,25>>,70>,RotateColorsX<Variation,Rgb<128,0,0>>>,RotateColorsX<Variation,Rgb<80,0,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,
  136. LockupTrL<Layers<
  137. AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
  138. AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  139. ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
  140. ResponsiveStabL<Orange>,
  141. ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
  142. ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
  143. TransitionEffectL<TrConcat<TrInstant,Stripes<3000,-3500,White,RandomPerLEDFlicker<Rgb<60,60,60>,Black>,BrownNoiseFlicker<White,Rgb<30,30,30>,200>,RandomPerLEDFlicker<Rgb<80,80,80>,Rgb<30,30,30>>>,TrFade<800>>,EFFECT_IGNITION>,
  144. TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<White,40>,TrFade<1000>>,EFFECT_RETRACTION>,
  145. LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
  146. LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
  147. InOutTrL<TrWipeSparkTip<White,500>,TrWipeInSparkTip<White,550>>,
  148. TransitionEffectL<TrConcat<TrInstant,AlphaL<White,Bump<Int<0>,Int<10000>>>,TrFade<3000>,AlphaL<Orange,Bump<Int<0>,Int<8000>>>,TrFade<3000>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,
  149. TransitionEffectL<TrConcat<TrWipe<500>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<50000>>>,TrWipeIn<500>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<40000>>>,TrFade<400>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  150.  
  151. StylePtr<Layers<
  152. StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Red>,Black,20>,RotateColorsX<Variation,Rgb<10,0,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<255,25,25>>,70>,RotateColorsX<Variation,Rgb<128,0,0>>>,RotateColorsX<Variation,Rgb<80,0,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,
  153. LockupTrL<Layers<
  154. AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
  155. AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  156. ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
  157. ResponsiveStabL<Orange>,
  158. ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
  159. ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
  160. TransitionEffectL<TrConcat<TrInstant,Stripes<3000,-3500,White,RandomPerLEDFlicker<Rgb<60,60,60>,Black>,BrownNoiseFlicker<White,Rgb<30,30,30>,200>,RandomPerLEDFlicker<Rgb<80,80,80>,Rgb<30,30,30>>>,TrFade<800>>,EFFECT_IGNITION>,
  161. TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<White,40>,TrFade<1000>>,EFFECT_RETRACTION>,
  162. LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
  163. LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
  164. InOutTrL<TrWipeSparkTip<White,500>,TrWipeInSparkTip<White,550>>,
  165. TransitionEffectL<TrConcat<TrInstant,AlphaL<White,Bump<Int<0>,Int<10000>>>,TrFade<3000>,AlphaL<Orange,Bump<Int<0>,Int<8000>>>,TrFade<3000>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,
  166. TransitionEffectL<TrConcat<TrWipe<500>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<50000>>>,TrWipeIn<500>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<40000>>>,TrFade<400>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  167.  
  168. StylePtr<Layers<
  169. StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Red>,Black,20>,RotateColorsX<Variation,Rgb<10,0,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<255,25,25>>,70>,RotateColorsX<Variation,Rgb<128,0,0>>>,RotateColorsX<Variation,Rgb<80,0,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,
  170. LockupTrL<Layers<
  171. AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
  172. AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
  173. ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
  174. ResponsiveStabL<Orange>,
  175. ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
  176. ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
  177. TransitionEffectL<TrConcat<TrInstant,Stripes<3000,-3500,White,RandomPerLEDFlicker<Rgb<60,60,60>,Black>,BrownNoiseFlicker<White,Rgb<30,30,30>,200>,RandomPerLEDFlicker<Rgb<80,80,80>,Rgb<30,30,30>>>,TrFade<800>>,EFFECT_IGNITION>,
  178. TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<White,40>,TrFade<1000>>,EFFECT_RETRACTION>,
  179. LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
  180. LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
  181. InOutTrL<TrWipeSparkTip<White,500>,TrWipeInSparkTip<White,550>>,
  182. TransitionEffectL<TrConcat<TrInstant,AlphaL<White,Bump<Int<0>,Int<10000>>>,TrFade<3000>,AlphaL<Orange,Bump<Int<0>,Int<8000>>>,TrFade<3000>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,
  183. TransitionEffectL<TrConcat<TrWipe<500>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<50000>>>,TrWipeIn<500>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<40000>>>,TrFade<400>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  184. "zombie"},
  185. };
  186. BladeConfig blades[] = {
  187. { 0, WS281XBladePtr<138, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  188. WS281XBladePtr<1, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
  189. WS281XBladePtr<9, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >(),
  190. WS281XBladePtr<10, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >()
  191. , CONFIGARRAY(presets) },
  192. };
  193.  
  194.  
  195. #endif
  196.  
  197. #ifdef CONFIG_BUTTONS
  198. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  199. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  200. #endif
  201.  
Advertisement
Add Comment
Please, Sign In to add comment