Advertisement
Guest User

Untitled

a guest
Mar 20th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.89 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 3
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 1900
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 4.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define DISABLE_DIAGNOSTIC_COMMANDS
  13. #define COLOR_CHANGE_DIRECT
  14. #define FETT263_LOCKUP_DELAY 200
  15. #define FETT263_BATTLE_MODE_ALWAYS_ON
  16. #define FETT263_TWIST_OFF
  17. #endif
  18.  
  19. #ifdef CONFIG_PROP
  20. #include "../props/saber_fett263_buttons.h"
  21. #endif
  22.  
  23. #ifdef CONFIG_PRESETS
  24. Preset presets[] = {
  25. { "TeensySF", "tracks/venus.wav",
  26. StylePtr<Layers<StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Rgb<180,130,0>>,Black,20>,RotateColorsX<Variation,Rgb<7,5,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<190,150,20>>,70>,RotateColorsX<Variation,Rgb<90,65,0>>>,RotateColorsX<Variation,Rgb<56,41,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Rgb<180,130,0>>,Stripes<1500,-2500,White,Rgb<180,130,0>>>,Int<18000>>,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>>>,AlphaL<TransitionEffect<White,Rgb<128,0,0>,TrInstant,TrConcat<TrFade<1500>,Red,TrFade<2000>,Orange,TrFade<2500>>,EFFECT_IGNITION>,Bump<Int<0>,Int<6000>>>,ResponsiveStabL<Red,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>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<AudioFlicker<Blue,SteelBlue>,Bump<Int<0>,Int<8000>>>,TrFade<600>>,EFFECT_IGNITION>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<6000>>>,TrFade<3000>>,EFFECT_BOOT>,TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  27.  
  28. StylePtr<Layers<TransitionLoop<Black,TrConcat<TrJoin<TrWipe<800>,TrWipeIn<800>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoinR<TrWipe<500>,TrWipeIn<500>>>>,InOutTrL<TrFade<500>,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  29.  
  30. StylePtr<Layers<Stripes<3500,-3000,RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<50,40,0>>,RotateColorsX<Variation,Rgb<220,160,40>>,RotateColorsX<Variation,Rgb<90,65,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<7,5,0>>,3000>>>>(),
  31.  
  32. { "SmthJedi", "tracks/mars.wav",
  33. StylePtr<Layers<StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Rgb<180,130,0>>,Black,20>,RotateColorsX<Variation,Rgb<7,5,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<190,150,20>>,70>,RotateColorsX<Variation,Rgb<90,65,0>>>,RotateColorsX<Variation,Rgb<56,41,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Rgb<180,130,0>>,Stripes<1500,-2500,White,Rgb<180,130,0>>>,Int<18000>>,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>>>,AlphaL<TransitionEffect<White,Rgb<128,0,0>,TrInstant,TrConcat<TrFade<1500>,Red,TrFade<2000>,Orange,TrFade<2500>>,EFFECT_IGNITION>,Bump<Int<0>,Int<6000>>>,ResponsiveStabL<Red,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>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<AudioFlicker<Blue,SteelBlue>,Bump<Int<0>,Int<8000>>>,TrFade<600>>,EFFECT_IGNITION>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<6000>>>,TrFade<3000>>,EFFECT_BOOT>,TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  34.  
  35. StylePtr<Layers<Stripes<3500,-3000,RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<50,40,0>>,RotateColorsX<Variation,Rgb<220,160,40>>,RotateColorsX<Variation,Rgb<90,65,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<7,5,0>>,3000>>>>(),
  36.  
  37. StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"},
  38.  
  39. { "SmthGrey", "tracks/mercury.wav",
  40. StyleFirePtr<RED, YELLOW, 0>(),
  41. StyleFirePtr<RED, YELLOW, 1>(),
  42. StyleFirePtr<RED, YELLOW, 2>(), "fire"},
  43.  
  44. { "SmthFuzz", "tracks/uranus.wav",
  45.  
  46. StylePtr<Layers<StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Rgb<180,130,0>>,Black,20>,RotateColorsX<Variation,Rgb<7,5,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<190,150,20>>,70>,RotateColorsX<Variation,Rgb<90,65,0>>>,RotateColorsX<Variation,Rgb<56,41,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Rgb<180,130,0>>,Stripes<1500,-2500,White,Rgb<180,130,0>>>,Int<18000>>,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>>>,AlphaL<TransitionEffect<White,Rgb<128,0,0>,TrInstant,TrConcat<TrFade<1500>,Red,TrFade<2000>,Orange,TrFade<2500>>,EFFECT_IGNITION>,Bump<Int<0>,Int<6000>>>,ResponsiveStabL<Red,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>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<AudioFlicker<Blue,SteelBlue>,Bump<Int<0>,Int<8000>>>,TrFade<600>>,EFFECT_IGNITION>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<6000>>>,TrFade<3000>>,EFFECT_BOOT>,TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  47.  
  48. StylePtr<Layers<TransitionLoop<Black,TrConcat<TrJoin<TrWipe<800>,TrWipeIn<800>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoinR<TrWipe<500>,TrWipeIn<500>>>>,InOutTrL<TrFade<500>,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  49.  
  50. StylePtr<Layers<Stripes<3500,-3000,RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<50,40,0>>,RotateColorsX<Variation,Rgb<220,160,40>>,RotateColorsX<Variation,Rgb<90,65,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<7,5,0>>,3000>>>>(),
  51.  
  52. { "RgueCmdr", "tracks/venus.wav",
  53. StyleFirePtr<BLUE, CYAN, 0>(),
  54. StyleFirePtr<BLUE, CYAN, 1>(),
  55. StyleFirePtr<BLUE, CYAN, 2>(), "blue fire"},
  56.  
  57. { "TthCrstl", "tracks/mars.wav",
  58.  
  59. StylePtr<Layers<StyleFire<Stripes<2500,-5000,BrownNoiseFlicker<RotateColorsX<Variation,Rgb<180,130,0>>,Black,20>,RotateColorsX<Variation,Rgb<7,5,0>>,BrownNoiseFlicker<Black,RotateColorsX<Variation,Rgb<190,150,20>>,70>,RotateColorsX<Variation,Rgb<90,65,0>>>,RotateColorsX<Variation,Rgb<56,41,0>>,0,5,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>,FireConfig<2,3000,0>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Rgb<180,130,0>>,Stripes<1500,-2500,White,Rgb<180,130,0>>>,Int<18000>>,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>>>,AlphaL<TransitionEffect<White,Rgb<128,0,0>,TrInstant,TrConcat<TrFade<1500>,Red,TrFade<2000>,Orange,TrFade<2500>>,EFFECT_IGNITION>,Bump<Int<0>,Int<6000>>>,ResponsiveStabL<Red,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>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<AudioFlicker<Blue,SteelBlue>,Bump<Int<0>,Int<8000>>>,TrFade<600>>,EFFECT_IGNITION>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<6000>>>,TrFade<3000>>,EFFECT_BOOT>,TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Red,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
  60.  
  61. StylePtr<Layers<TransitionLoop<Black,TrConcat<TrJoin<TrWipe<800>,TrWipeIn<800>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoinR<TrWipe<500>,TrWipeIn<500>>>>,InOutTrL<TrFade<500>,TrInstant,Layers<Black,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_NEWFONT>,TransitionEffectL<TrConcat<TrInstant,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrDelay<30000>,TransitionLoop<Black,TrConcat<TrJoinR<TrWipe<500>,TrWipeIn<500>>,RotateColorsX<Variation,DeepSkyBlue>,TrJoin<TrWipe<500>,TrWipeIn<500>>>>,TrFade<500>>,EFFECT_BOOT>>>>>(),
  62.  
  63. StylePtr<Layers<Stripes<3500,-3000,RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<50,40,0>>,RotateColorsX<Variation,Rgb<220,160,40>>,RotateColorsX<Variation,Rgb<90,65,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<180,130,0>>,RotateColorsX<Variation,Rgb<7,5,0>>,3000>>>>(),
  64.  
  65. { "CODA", "tracks/mercury.wav",
  66. StyleNormalPtr<WHITE, RED, 300, 800, RED>(),
  67. StyleNormalPtr<WHITE, RED, 300, 800, RED>(),
  68. StyleNormalPtr<WHITE, RED, 300, 800, RED>(), "white"},
  69. { "LiquidStatic", "tracks/uranus.wav",
  70. StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(),
  71. StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(),
  72. StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(), "yellow"},
  73. { "SmthGrey", "tracks/venus.wav",
  74. StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(),
  75. StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(),
  76. StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(), "magenta"},
  77. { "SmthFuzz", "tracks/mars.wav",
  78. StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(),
  79. StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(),
  80. StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(), "gradient"},
  81. { "RgueCmdr", "tracks/mercury.wav",
  82. StyleRainbowPtr<300, 800>(),
  83. StyleRainbowPtr<300, 800>(),
  84. StyleRainbowPtr<300, 800>(), "rainbow"},
  85. { "TthCrstl", "tracks/uranus.wav",
  86. StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(),
  87. StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(),
  88. StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"},
  89. { "TeensySF", "tracks/venus.wav",
  90. &style_pov,
  91. StyleNormalPtr<BLACK, BLACK, 300, 800>(),
  92. StyleNormalPtr<BLACK, BLACK, 300, 800>(), "POV"},
  93. { "SmthJedi", "tracks/mars.wav",
  94. &style_charging,
  95. StyleNormalPtr<BLACK, BLACK, 300, 800>(),
  96. StyleNormalPtr<BLACK, BLACK, 300, 800>(), "Battery\nLevel"}
  97. };
  98. BladeConfig blades[] = {
  99. { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  100. WS281XBladePtr<10, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(),
  101. WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >()
  102. , CONFIGARRAY(presets) },
  103. };
  104. #endif
  105.  
  106. #ifdef CONFIG_BUTTONS
  107. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  108. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  109. #endif
  110.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement