Advertisement
riccrocc789

bright led

Oct 28th, 2023
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.01 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 100
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 5.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define ENABLE_SERIAL
  13. #define DISABLE_DIAGNOSTIC_COMMANDS
  14. #define IDLE_OFF_TIME 60*5*1000
  15. #define SAVE_STATE
  16. #define SPEAK_BLADE_ID
  17. #define ENABLE_ALL_EDIT_OPTIONS
  18. #define FETT263_EDIT_MODE_MENU
  19. #define DISABLE_BASIC_PARSER_STYLES
  20. #define DISABLE_DIAGNOSTIC_COMMANDS
  21. #define FETT263_SAY_COLOR_LIST
  22. #define FETT263_SAY_COLOR_LIST_CC
  23. #define FETT263_HOLD_BUTTON_OFF
  24. #define FETT263_TWIST_OFF
  25. #define FETT263_THRUST_ON
  26. #define FETT263_FORCE_PUSH_ALWAYS_ON
  27. #define FETT263_SAY_BATTERY_PERCENT
  28. #endif
  29.  
  30. #ifdef CONFIG_PROP
  31. #include "../props/saber_fett263_buttons.h"
  32. #endif
  33.  
  34. #ifdef CONFIG_PRESETS
  35. Preset presets[] = {
  36. { "AniPad;common", "common/tracks/venus.wav",
  37. /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style
  38. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  39. OS6.7 v4.021
  40. Single Style
  41. Base Style: Rotoscope - Single Color (Prequels)
  42.  
  43. Base Color: Rgb<2,72,255> (0)
  44.  
  45. --Effects Included--
  46. Ignition Effect: Standard Ignition
  47. Retraction Effect: Standard Retraction
  48. Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash
  49. LightningBlock Effect: Responsive Lightning Block
  50. Drag Effect: Intensity Sparking Drag
  51. Melt Effect: Intensity Melt
  52. Stab Effect: AudioFlicker Stab
  53. Blast Effect: Blast Fade (Large)
  54. Clash Effect: Responsive Clash
  55. */
  56. StylePtr<Layers<RandomFlicker<Stripes<24000,-1400,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>,Mix<Int<11565>,Black,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<AudioFlickerL<RgbArg<STAB_COLOR_ARG,Rgb<255,97,0>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,TransitionEffectL<TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<EFFECT_BLAST>,Int<14000>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,97,0>>>>,TrFade<300>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Int<13000>>>,TrJoin<TrDelay<8000>,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrInstant,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Remap<Scale<RampF,Int<65536>,Int<0>>,StaticFire<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,Mix<TwistAngle<>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>,RotateColorsX<Int<3000>,Mix<Int<12000>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrJoin<TrDelay<4000>,TrFade<300>>,AlphaL<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeX<IgnitionTime<300>>,TrWipeInX<RetractionTime<0>>,Black>>>(),
  57. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  58. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  59. OS6.7 v4.021
  60. Single Style
  61. On Behavior: Blinking Off-On
  62. Off Behavior: Off
  63.  
  64. Base Color: Rgb<255,255,255> (0)
  65.  
  66. --Effects Included--
  67. Ignition Effect: Instant
  68. Retraction Effect: Instant
  69. */
  70. StylePtr<Layers<Blinking<Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,500,500>,InOutTrL<TrInstant,TrInstant,Black>>>(),
  71. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  72. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  73. OS6.7 v4.021
  74. Single Style
  75. On Behavior: Blinking On-Off
  76. Off Behavior: Off
  77.  
  78. Base Color: Rgb<255,255,255> (0)
  79.  
  80. --Effects Included--
  81. Ignition Effect: Instant
  82. Retraction Effect: Instant
  83. */
  84. StylePtr<Layers<Blinking<RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,Black,500,500>,InOutTrL<TrInstant,TrInstant,Black>>>(),
  85. "AniPad"},
  86. { "Vader;common", "common/tracks/venus.wav",
  87. /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style
  88. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  89. OS6.7 v4.021
  90. Single Style
  91. Base Style: Rotoscope - Single Color (Original Trilogy)
  92.  
  93. Base Color: Rgb<255,0,0> (0)
  94.  
  95. --Effects Included--
  96. Ignition Effect: Standard Ignition
  97. Retraction Effect: Standard Retraction
  98. Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash
  99. LightningBlock Effect: Responsive Lightning Block
  100. Drag Effect: Intensity Sparking Drag
  101. Melt Effect: Intensity Melt
  102. Stab Effect: AudioFlicker Stab
  103. Blast Effect: Blast Fade (Large)
  104. Clash Effect: Responsive Clash
  105. */
  106. StylePtr<Layers<RandomFlicker<Stripes<10000,-2600,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<AudioFlickerL<RgbArg<STAB_COLOR_ARG,Rgb<255,97,0>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,TransitionEffectL<TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<EFFECT_BLAST>,Int<14000>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,97,0>>>>,TrFade<300>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Int<13000>>>,TrJoin<TrDelay<8000>,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrInstant,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Remap<Scale<RampF,Int<65536>,Int<0>>,StaticFire<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,Mix<TwistAngle<>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>,RotateColorsX<Int<3000>,Mix<Int<12000>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrJoin<TrDelay<4000>,TrFade<300>>,AlphaL<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeX<IgnitionTime<600>>,TrWipeInX<RetractionTime<0>>,Black>>>(),
  107. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  108. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  109. OS6.7 v4.021
  110. Single Style
  111. On Behavior: Blinking Off-On
  112. Off Behavior: Off
  113.  
  114. Base Color: Rgb<255,255,255> (0)
  115.  
  116. --Effects Included--
  117. Ignition Effect: Instant
  118. Retraction Effect: Instant
  119. */
  120. StylePtr<Layers<Blinking<Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,500,500>,InOutTrL<TrInstant,TrInstant,Black>>>(),
  121. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  122. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  123. OS6.7 v4.021
  124. Single Style
  125. On Behavior: Blinking On-Off
  126. Off Behavior: Off
  127.  
  128. Base Color: Rgb<255,255,255> (0)
  129.  
  130. --Effects Included--
  131. Ignition Effect: Instant
  132. Retraction Effect: Instant
  133. */
  134. StylePtr<Layers<Blinking<RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,Black,500,500>,InOutTrL<TrInstant,TrInstant,Black>>>(),
  135. "Vader"},
  136. { "AniHero;common", "common/tracks/venus.wav",
  137. /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style
  138. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  139. OS6.7 v4.021
  140. Single Style
  141. Base Style: Rotoscope - Single Color (Prequels)
  142.  
  143. Base Color: Rgb<0,0,255> (0)
  144.  
  145. --Effects Included--
  146. Ignition Effect: Standard Ignition
  147. Retraction Effect: Standard Retraction
  148. Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash
  149. LightningBlock Effect: Responsive Lightning Block
  150. Drag Effect: Intensity Sparking Drag
  151. Melt Effect: Intensity Melt
  152. Stab Effect: AudioFlicker Stab
  153. Blast Effect: Blast Fade (Large)
  154. Clash Effect: Responsive Clash
  155. */
  156. StylePtr<Layers<RandomFlicker<Stripes<24000,-1400,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<11565>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<AudioFlickerL<RgbArg<STAB_COLOR_ARG,Rgb<255,97,0>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,TransitionEffectL<TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<EFFECT_BLAST>,Int<14000>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,97,0>>>>,TrFade<300>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Int<13000>>>,TrJoin<TrDelay<8000>,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,97,0>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrInstant,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Remap<Scale<RampF,Int<65536>,Int<0>>,StaticFire<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,Mix<TwistAngle<>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>,RotateColorsX<Int<3000>,Mix<Int<12000>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrJoin<TrDelay<4000>,TrFade<300>>,AlphaL<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeX<IgnitionTime<300>>,TrWipeInX<RetractionTime<0>>,Black>>>(),
  157. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  158. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  159. OS6.7 v4.021
  160. Single Style
  161. On Behavior: Blinking Off-On
  162. Off Behavior: Off
  163.  
  164. Base Color: Rgb<255,255,255> (0)
  165.  
  166. --Effects Included--
  167. Ignition Effect: Instant
  168. Retraction Effect: Instant
  169. */
  170. StylePtr<Layers<Blinking<Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,500,500>,InOutTrL<TrInstant,TrInstant,Black>>>(),
  171. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  172. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  173. OS6.7 v4.021
  174. Single Style
  175. On Behavior: Blinking On-Off
  176. Off Behavior: Off
  177.  
  178. Base Color: Rgb<255,255,255> (0)
  179.  
  180. --Effects Included--
  181. Ignition Effect: Instant
  182. Retraction Effect: Instant
  183. */
  184. StylePtr<Layers<Blinking<RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,Black,500,500>,InOutTrL<TrInstant,TrInstant,Black>>>(),
  185. "AniHero"},
  186. { "Batt00;common", "common/tracks/mars.wav",
  187. &style_charging,
  188. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  189. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  190. OS6.7 v4.021
  191. Single Style
  192. On Behavior: Off
  193. Off Behavior: Fast Pulse Dim-On
  194.  
  195. Base Color: Rgb<255,255,255> (0)
  196.  
  197. --Effects Included--
  198. Ignition Effect: Instant
  199. Retraction Effect: Instant
  200. */
  201. StylePtr<Layers<Black,InOutTrL<TrInstant,TrInstant,Pulsing<Mix<Int<8192>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,2000>>>>(),
  202. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  203. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  204. OS6.7 v4.021
  205. Single Style
  206. On Behavior: Off
  207. Off Behavior: Off
  208.  
  209. Base Color: Rgb<255,255,255> (0)
  210.  
  211. --Effects Included--
  212. Ignition Effect: Instant
  213. Retraction Effect: Instant
  214. */
  215. StylePtr<Layers<Black,InOutTrL<TrInstant,TrInstant,Black>>>(),
  216. "Battery\nLevel"}
  217. };
  218. BladeConfig blades[] = {
  219. { 0, WS281XBladePtr<115, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  220. SimpleBladePtr<CH1LED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
  221. SimpleBladePtr<CH2LED, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>(),
  222. CONFIGARRAY(presets) },
  223. };
  224. #endif
  225.  
  226. #ifdef CONFIG_BUTTONS
  227. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  228. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  229. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement