Advertisement
Guest User

Untitled

a guest
Sep 25th, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.43 KB | None | 0 0
  1. // This is a sample configuration file.
  2. // This saber has:
  3. // o Proffieboard V1 hardware.
  4. // o Two buttons
  5. // o An XP-E2 RGB LED star on LED 4-5-6
  6. // o A neopixel blade on LED 1-2-3 and neopixel data 1.
  7. // If you have a saber similar to this one, make a copy and use the copy.
  8. // This is also the default configuration file. Pre-programmed boards will
  9. // use this configuration file.
  10.  
  11. #ifdef CONFIG_TOP
  12. #include "proffieboard_config.h"
  13. #define NUM_BLADES 5
  14. #define NUM_BUTTONS 2
  15. #define VOLUME 1800
  16. const unsigned int maxLedsPerStrip = 264;
  17. #define CLASH_THRESHOLD_G 3.0
  18. #define ENABLE_AUDIO
  19. #define ENABLE_MOTION
  20. #define ENABLE_WS2811
  21. #define ENABLE_SD
  22. #define SAVE_STATE
  23. #define ENABLE_ALL_EDIT_OPTIONS
  24. #define ENABLE_SSD1306
  25. #define IDLE_OFF_TIME 60 * 10 * 500
  26. #define FETT263_TWIST_OFF
  27. #define FETT263_TWIST_ON
  28. #endif
  29.  
  30. #ifdef CONFIG_PROP
  31.  
  32. #include "../props/saber_fett263_buttons.h"
  33.  
  34. #endif
  35.  
  36. #ifdef CONFIG_PRESETS
  37. Preset presets[] = {
  38. { "Luke", "tracks/luke.wav",
  39. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,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<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>>,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>>>(),
  40. StylePtr<InOutHelper<ColorCycle<Green,20,200,Green,80,500,10000>,300,800,Cylon<Green,20,80,Green,20,80,5>>>(),
  41. StylePtr<InOutHelper<AudioFlicker<Gradient<ColorCycle<Gradient<Blue,Blue,Blue>,20,200,Gradient<Blue,Blue,Blue>,80,500,10000>,ColorCycle<Gradient<Blue,Blue,Blue>,20,200,Gradient<Blue,Blue,Blue>,80,500,10000>,ColorCycle<Gradient<Blue,Blue,Blue>,20,200,Gradient<Blue,Blue,Blue>,80,500,10000>,Green,Green>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,Green,Green>,Black,3000>>>(),
  42. StylePtr<Pulsing<Black,Red,1400>>(),
  43. StylePtr<InOutHelper<Blue,300,800>>(), "luke"},
  44. { "The_Lost_One", "tracks/thelost.wav",
  45. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,DeepSkyBlue>,RotateColorsX<Variation,Rgb<0,0,128>>>,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<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>>,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>>>(),
  46. StylePtr<InOutHelper<ColorCycle<DeepSkyBlue,20,200,DeepSkyBlue,80,500,10000>,300,800,Cylon<DeepSkyBlue,20,80,DeepSkyBlue,20,80,5>>>(),
  47. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,DeepSkyBlue>,RotateColorsX<Variation,Rgb<0,0,128>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,DeepSkyBlue>,RotateColorsX<Variation,Rgb<0,4,10>>,3000>>>>(),
  48. StylePtr<Pulsing<Black,Red,1400>>(),
  49. StylePtr<InOutHelper<Blue,300,800>>(), "the lost"},
  50. { "Scavengers_Destiny", "tracks/rey.wav",
  51. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Yellow>,RotateColorsX<Variation,Rgb<0,128,0>>>,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<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>>,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>>>(),
  52. StylePtr<InOutHelper<ColorCycle<Yellow,20,200,Yellow,80,500,10000>,300,800,Cylon<Yellow,20,80,Yellow,20,80,5>>>(),
  53. StylePtr<InOutHelper<AudioFlicker<Gradient<Blue,Blue,Blue,Yellow,Yellow>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,Yellow,Yellow>,Black,3000>>>(),
  54. StylePtr<Pulsing<Black,Red,1400>>(),
  55. StylePtr<InOutHelper<Blue,300,800>>(), "rey"},
  56. { "OB2", "tracks/ob2.wav",
  57. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,DodgerBlue>,RotateColorsX<Variation,Rgb<0,128,0>>>,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<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>>,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>>>(),
  58. StylePtr<InOutHelper<ColorCycle<DodgerBlue,20,200,DodgerBlue,80,500,10000>,300,800,Cylon<DodgerBlue,20,80,DodgerBlue,20,80,5>>>(),
  59. StylePtr<InOutHelper<AudioFlicker<Gradient<Blue,Blue,Blue,DodgerBlue,DodgerBlue>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,DodgerBlue,DodgerBlue>,Black,3000>>>(),
  60. StylePtr<Pulsing<Black,Red,1400>>(),
  61. StylePtr<InOutHelper<Blue,300,800>>(), "obi van"},
  62. { "DarthVader", "tracks/imperial.wav",
  63. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>>,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>>>(),
  64. StylePtr<InOutHelper<ColorCycle<Red,20,200,Red,80,500,10000>,300,800,Cylon<Red,20,80,Red,20,80,5>>>(),
  65. StylePtr<InOutHelper<AudioFlicker<Gradient<ColorCycle<Gradient<Red,Red,Red>,20,200,Gradient<Red,Red,Red>,80,500,10000>,ColorCycle<Gradient<Red,Red,Red>,20,200,Gradient<Red,Red,Red>,80,500,10000>,ColorCycle<Gradient<Red,Red,Red>,20,200,Gradient<Red,Red,Red>,80,500,10000>,Red,Red>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,Red,Red>,Black,3000>>>(),
  66. StylePtr<Pulsing<Black,Red,1400>>(),
  67. StylePtr<InOutHelper<Blue,300,800>>(), "vader"},
  68. { "Unstable", "tracks/kylo.wav",
  69. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,RandomPerLEDFlicker<Red,Black>>,RotateColorsX<Variation,Rgb<128,0,0>>>,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>>>(),
  70. StylePtr<InOutHelper<ColorCycle<Red,20,200,Red,80,500,10000>,300,800,Cylon<Red,20,80,Red,20,80,5>>>(),
  71. StylePtr<InOutHelper<AudioFlicker<Gradient<Blue,Blue,Blue,Red,Red>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,Red,Red>,Black,3000>>>(),
  72. StylePtr<Pulsing<Black,Red,1400>>(),
  73. StylePtr<InOutHelper<Blue,300,800>>(), "kylo"},
  74. { "Grumpy_Uncle", "tracks/grumpy.wav",
  75. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,GreenYellow>,RotateColorsX<Variation,Green>>,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<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>>,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>>>(),
  76. StylePtr<InOutHelper<ColorCycle<GreenYellow,20,200,GreenYellow,80,500,10000>,300,800,Cylon<GreenYellow,20,80,GreenYellow,20,80,5>>>(),
  77. StylePtr<InOutHelper<AudioFlicker<Gradient<Blue,Blue,Blue,GreenYellow,GreenYellow>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,GreenYellow,GreenYellow>,Black,3000>>>(),
  78. StylePtr<Pulsing<Black,Red,1400>>(),
  79. StylePtr<InOutHelper<Blue,300,800>>(), "grumpy"},
  80. { "Ukraine", "tracks/stefania.wav",
  81. StyleNormalPtr<Gradient<Yellow,Yellow,DeepSkyBlue,Blue>,Gradient<Cyan,Yellow>,300,800>(),
  82. StylePtr<InOutHelper<StyleFire<Gradient<Yellow,Yellow,DeepSkyBlue,Blue>,Black>,300,800,Cylon<Gradient<Yellow,Yellow,DeepSkyBlue,Blue>,20,80,Gradient<Yellow,Yellow,DeepSkyBlue,Blue>,20,80,5>>>(),
  83. StylePtr<InOutHelper<AudioFlicker<Gradient<Blue,Blue,Blue,Blue,Yellow>,Black>,1,1,Pulsing<Gradient<Red,Red,Red,Blue,Yellow>,Black,3000>>>(),
  84. StylePtr<Pulsing<Black,Red,1400>>(),
  85. StylePtr<InOutHelper<Blue,300,800>>(), "ukraine"},
  86. { "Battle", "tracks/venus.wav",
  87. StylePtr<Layers<Stripes<5000,-1500,RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,60>>,RotateColorsX<Variation,Rgb<50,50,255>>,RotateColorsX<Variation,Rgb<0,0,128>>>,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<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>>,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>>>(),
  88. StylePtr<InOutHelper<ColorCycle<Blue,20,200,Blue,80,500,10000>,300,800,Cylon<Blue,20,80,Blue,20,80,5>>>(),
  89. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,128>>>,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,10>>,3000>>>>(),
  90. StylePtr<Pulsing<Black,Red,1400>>(),
  91. StylePtr<InOutHelper<Blue,300,800>>(), "pulse"},
  92. { "TthCrstl", "tracks/uranus.wav",
  93. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,128>>>,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<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>>,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>>>(),
  94. StylePtr<InOutHelper<ColorCycle<Blue,20,200,Blue,80,500,10000>,300,800,Cylon<Blue,20,80,Blue,20,80,5>>>(),
  95. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,128>>>,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,10>>,3000>>>>(),
  96. StylePtr<Pulsing<Black,Red,1400>>(),
  97. StylePtr<InOutHelper<Blue,300,800>>(), "blue"},
  98. { "RgueCmdr", "tracks/mars.wav",
  99. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<48,0,105>>>,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<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>>,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>>>(),
  100. StylePtr<InOutHelper<StyleFire<Rgb<95,0,210>,Black>,300,800,Cylon<Rgb<95,0,210>,20,80,Rgb<95,0,210>,20,80,5>>>(),
  101. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<48,0,105>>>,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<4,0,9>>,3000>>>>(),
  102. StylePtr<Pulsing<Black,Red,1400>>(),
  103. StylePtr<InOutHelper<Blue,300,800>>(), "magenta"},
  104. { "SmthGrey", "tracks/mercury.wav",
  105. StyleNormalPtr<Gradient<Red,Blue>,Gradient<Cyan,Yellow>,300,800>(),
  106. StylePtr<InOutHelper<StyleFire<Gradient<Red,Blue>,Black>,300,800,Cylon<Gradient<Red,Blue>,20,80,Gradient<Red,Blue>,20,80,5>>>(),
  107. StylePtr<InOutHelper<AudioFlicker<Black,Magenta>,0,0,Pulsing<Magenta,Black,2000>>>(),
  108. StylePtr<Pulsing<Black,Red,1400>>(),
  109. StylePtr<InOutHelper<Blue,300,800>>(), "gradient"},
  110. { "Thunder_God", "tracks/venus.wav",
  111. StylePtr<InOutHelper<EasyBlade<Sparkle<Blue>,White>,300,800>>(),
  112. StylePtr<InOutHelper<ColorCycle<Blue,20,200,Blue,80,500,10000>,300,800,Cylon<Blue,20,80,Blue,20,80,5>>>(),
  113. StylePtr<InOutHelper<AudioFlicker<Black,Blue>,0,0,Pulsing<Blue,Black,2000>>>(),
  114. StylePtr<Pulsing<Black,Red,1400>>(),
  115. StylePtr<InOutHelper<Blue,300,800>>(), "thunder"},
  116. { "Fire", "tracks/venus.wav",
  117. StylePtr<Layers<Mix<Scale<BladeAngle<>,Int<32768>,Int<0>>,StyleFire<Gradient<RotateColorsX<Variation,Orange>,RotateColorsX<Variation,OrangeRed>,RotateColorsX<Variation,Red>>,RotateColorsX<Variation,Rgb<60,0,0>>,0,4,FireConfig<0,1500,5>,FireConfig<0,1500,5>,FireConfig<0,1500,5>,FireConfig<0,0,0>>,StyleFire<Gradient<RotateColorsX<Variation,DarkOrange>,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Red>>,Black,0,2,FireConfig<0,1600,30>,FireConfig<0,1600,30>,FireConfig<0,1600,30>,FireConfig<0,0,0>>>,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>,AlphaL<Black,SmoothStep<Scale<BladeAngle<0,16000>,Scale<SwingSpeed<400>,Int<10000>,Int<38000>>,Int<38000>>,Int<20000>>>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
  118. StylePtr<InOutHelper<ColorCycle<Orange,20,200,Orange,80,500,10000>,300,800,Cylon<Orange,20,80,Orange,20,80,5>>>(),
  119. StylePtr<Layers<Mix<Scale<BladeAngle<>,Int<32768>,Int<0>>,StyleFire<Gradient<RotateColorsX<Variation,Orange>,RotateColorsX<Variation,OrangeRed>,RotateColorsX<Variation,Red>>,RotateColorsX<Variation,Rgb<60,0,0>>,0,4,FireConfig<0,1500,5>,FireConfig<0,1500,5>,FireConfig<0,1500,5>,FireConfig<0,0,0>>,StyleFire<Gradient<RotateColorsX<Variation,DarkOrange>,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Red>>,Black,0,2,FireConfig<0,1600,30>,FireConfig<0,1600,30>,FireConfig<0,1600,30>,FireConfig<0,0,0>>>,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<10,0,0>>,3000>>>>(),
  120. StylePtr<Pulsing<Black,Red,1400>>(),
  121. StylePtr<InOutHelper<Blue,300,800>>(), "flame"},
  122. { "Dark_V3_Proffie", "tracks/track4.wav",
  123. StylePtr<Layers<AudioFlicker<BrownNoiseFlicker<Mix<SwingSpeed<400>,RotateColorsX<Variation,Rgb<120,100,150>>,RotateColorsX<Variation,Rgb<170,150,225>>>,Stripes<5000,-300,RotateColorsX<Variation,Rgb<35,25,55>>,RotateColorsX<Variation,Rgb<90,75,120>>,RotateColorsX<Variation,Rgb<15,10,20>>,RotateColorsX<Variation,Rgb<60,50,75>>>,300>,RotateColorsX<Variation,Rgb<45,35,75>>>,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<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>>,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>>>(),
  124. StylePtr<InOutHelper<ColorCycle<White,20,200,White,80,500,10000>,300,800,Cylon<White,20,80,White,20,80,5>>>(),
  125. StylePtr<Layers<AudioFlicker<BrownNoiseFlicker<Mix<SwingSpeed<400>,RotateColorsX<Variation,Rgb<120,100,150>>,RotateColorsX<Variation,Rgb<170,150,225>>>,Stripes<5000,-300,RotateColorsX<Variation,Rgb<35,25,55>>,RotateColorsX<Variation,Rgb<90,75,120>>,RotateColorsX<Variation,Rgb<15,10,20>>,RotateColorsX<Variation,Rgb<60,50,75>>>,300>,RotateColorsX<Variation,Rgb<45,35,75>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Rgb<100,100,150>>,RotateColorsX<Variation,Rgb<4,4,6>>,3000>>>>(),
  126. StylePtr<Pulsing<Black,Red,1400>>(),
  127. StylePtr<InOutHelper<Blue,300,800>>(), "darksaber"},
  128. { "SmthJedi", "tracks/rey.wav",
  129. &style_charging,
  130. StylePtr<InOutHelper<Cylon<Black,33,30,Green,33,30,0>,0,0,Pulsing<Green,Black,1500>>>(),
  131. StylePtr<InOutHelper<AudioFlicker<Black,Green>,0,0,Pulsing<Green,Black,2000>>>(),
  132. StylePtr<Pulsing<Black,Red,1400>>(),
  133. StylePtr<InOutHelper<Blue,300,800>>(), "Battery\nLevel"}
  134. };
  135. BladeConfig blades[] = {
  136. { 0,
  137. WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  138. WS281XBladePtr<15, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
  139. WS281XBladePtr<5, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >(),
  140. SimpleBladePtr<CH1LED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
  141. SimpleBladePtr<CH3LED, NoLED, NoLED, NoLED, bladePowerPin1, -1, -1, -1>(),
  142. CONFIGARRAY(presets) },
  143. };
  144. #endif
  145.  
  146. #ifdef CONFIG_BUTTONS
  147. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  148. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  149. #endif
  150.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement