Advertisement
Guest User

Hero Config

a guest
Nov 4th, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.75 KB | Source Code | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 3
  4. #define NUM_BUTTONS 2
  5. const unsigned int maxLedsPerStrip = 144;
  6. #define EXTRA_COLOR_BUFFER_SPACE 60
  7. #define VOLUME 1000
  8. #define CLASH_THRESHOLD_G 3
  9. #define ENABLE_AUDIO
  10. #define ENABLE_MOTION
  11. #define ENABLE_WS2811
  12. #define ENABLE_SD
  13. #define MOTION_TIMEOUT 60 * 5 * 1000
  14. #define IDLE_OFF_TIME 60 * 5 * 1000
  15. #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
  16. #define DISABLE_BASIC_PARSER_STYLES
  17. #define DISABLE_DIAGNOSTIC_COMMANDS
  18. #define ENABLE_ALL_EDIT_OPTIONS
  19. #define NO_REPEAT_RANDOM
  20. #define COLOR_CHANGE_DIRECT
  21. #define ENABLE_SSD1306
  22. #define OLED_FLIP_180
  23. #define FETT263_EDIT_MODE_MENU
  24. #define FETT263_CLASH_STRENGTH_SOUND
  25. #define FETT263_MAX_CLASH 16
  26. #define FETT263_HOLD_BUTTON_OFF
  27. #define FETT263_HOLD_BUTTON_LOCKUP
  28. #define FETT263_LOCKUP_DELAY 200
  29. #define FETT263_BM_CLASH_DETECT 6
  30. #define FETT263_TWIST_ON
  31. #define FETT263_TWIST_ON_NO_BM
  32. #define FETT263_TWIST_OFF
  33. #define FETT263_FORCE_PUSH_ALWAYS_ON
  34. #define FETT263_FORCE_PUSH_LENGTH 5
  35. #endif
  36.  
  37. #ifdef CONFIG_PROP
  38. #include "../props/saber_fett263_buttons.h"
  39. #endif
  40.  
  41.  
  42. #ifdef CONFIG_PRESETS
  43.  
  44. Preset presets[] = {
  45. { "rotj;common", "rotj/tracks/track1.wav",
  46. /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style
  47. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  48. OS6.7 v4.021
  49. This Style Contains 2 Unique Combinations
  50. Base Style: Hyper Responsive Rotoscope (Original Trilogy)
  51.  
  52. Base Color: Rgb<0,255,0> (0)
  53.  
  54. --Effects Included--
  55. Preon Effect: Disable
  56. Ignition Effect Options: Default (0): SparkTip Ignition, 1: Standard Ignition
  57. Retraction Effect: Standard Retraction
  58. Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash, End Effect: Full Blade Absorb
  59. LightningBlock Effect: Responsive Lightning Block
  60. Drag Effect: Intensity Sparking Drag
  61. Melt Effect: Intensity Melt
  62. Blast Effect: Blast Wave (Random)
  63. Clash Effect: Real Clash V1
  64. */
  65. StylePtr<Layers<Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,RandomFlicker<StripesX<Int<15000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingAcceleration<100>,Int<50>,Int<300>>,Scale<SwingAcceleration<100>,Int<24000>,Int<16000>>>,Int<-3200>,Int<-200>>,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,Mix<Int<19276>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>,TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<255,244,157>>,Scale<EffectRandomF<EFFECT_BLAST>,Int<100>,Int<400>>,Int<100>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Scale<EffectPosition<EFFECT_BLAST>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,244,157>>,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>,TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,Rgb<255,244,157>>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,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>>>>,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,244,157>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>>>,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,244,157>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>,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>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,244,157>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,244,157>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,244,157>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,244,157>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,244,157>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,14,0>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,14,0>>,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<TrSelect<IntArg<IGNITION_OPTION_ARG,0>,TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,244,157>>,IgnitionTime<300>>,TrWipeX<IgnitionTime<300>>>,TrWipeInX<RetractionTime<0>>,Black>,TransitionEffectL<TrInstant,EFFECT_PREON>>>(),
  66.  
  67. /* copyright Fett263 (Crystal Chamber) OS6 Style
  68. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  69. OS6.7 v4.021
  70. This Style Contains 4 Unique Combinations
  71. On Behavior Options: Default (0): Luke ROTJ (Red Arrow),
  72.  
  73. /* copyright Fett263 (Crystal Chamber) OS6 Style
  74. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  75. OS6.7 v4.021
  76. This Style Contains 4 Unique Combinations
  77. On Behavior Options: Default (0): Luke ROTJ (Green Arrow),
  78.  
  79. "preset1"
  80. },
  81.  
  82. };
  83.  
  84. BladeConfig blades[] = {
  85. { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  86. WS281XBladePtr<1, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(),
  87. WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >()
  88. , CONFIGARRAY(presets) },
  89. };
  90.  
  91. #endif
  92.  
  93. #ifdef CONFIG_BUTTONS
  94. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  95. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  96. #endif
  97.  
  98. /* Generated with Fett263 Config Helper v3.04 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement