Advertisement
Guest User

Config

a guest
Jan 19th, 2022
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 1
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 100
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 3.5
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_SPINS
  11. #define ENABLE_WS2811
  12. #define ENABLE_SD
  13. #define FETT263_TWIST_ON
  14. #define FETT263_TWIST_OFF
  15. #define FETT263_SWING_ON
  16. #define FETT263_MULTI_PHASE
  17. #define SAVE_STATE
  18. #define DISABLE_DIAGNOSTIC_COMMANDS
  19. #define ENABLE_ALL_EDIT_OPTIONS
  20. #define FETT263_EDIT_MODE_MENU
  21. #define NO_REPEAT_RANDOM
  22. //#define FILTER_CUTOFF_FREQUENCY 100
  23. //#define FILTER_ORDER 8
  24. #endif
  25.  
  26. #ifdef CONFIG_PROP
  27. #include "../props/saber_fett263_buttons.h"
  28. #endif
  29.  
  30. #ifdef CONFIG_PRESETS
  31. Preset presets[] = {
  32.  
  33. { "Maz;common", "tracks/Palp.wav",
  34. /* © Fett263 ShimmerBlade (Primary Blade) OS6 Style
  35. fett263-proffieOS6-style-library.html#ShimmerBlade
  36. OS6.5 v1.0
  37. This Style Contains 108 Unique Combinations
  38. Base Style: Interactive Shimmer Blade
  39.  
  40. --Effects Included--
  41. Ignition Effect Options: Default (0): Gravity Ignition, 1: SparkTip Ignition, 2: Standard Ignition, 3: Glitch On
  42. PowerUp Effect Options: Default (0): Power Burst Forward, 1: Unstable Power Up Forward, 2: Disable
  43. Retraction Effect Options: Default (0): Gravity Retraction, 1: Standard Retraction, 2: Cycle Down
  44. CoolDown Effect Options: Default (0): Power Burst Reverse, 1: Unstable Cool Down Reverse, 2: Disable
  45. Lockup Effect: DUNE Intensity Lockup
  46. LightningBlock Effect: Responsive Lightning Block
  47. Drag Effect: Intensity Sparking Drag
  48. Melt Effect: Responsive Melt
  49. Stab Effect: AudioFlicker Stab
  50. Blast Effect (Randomly Selected): Blast Wave (Sound Based), Blast Fade (Sound Based), Responsive Blast Wave (Sound Based)
  51. Clash Effect: DUNE Shield Clash
  52. Battery Level: Emitter Effect (Green to Red)
  53. Battery Monitor: Passive Battery Monitor (Change Preset)
  54. */
  55. StylePtr<Layers<Mix<HoldPeakF<SwingSpeed<200>,Int<300>,Scale<SwingSpeed<200>,Int<8000>,Int<24000>>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,RandomFlicker<Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,StripesX<Int<16000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingSpeed<200>,Int<1000>,Int<4000>>,Scale<SwingSpeed<200>,Int<4000>,Int<8000>>>,Int<-100>,Int<-3000>>,Mix<Int<24576>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,Mix<Int<8192>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>>>>,TransitionEffectL<TrSelect<IntArg<IGNITION_POWER_UP_ARG,0>,TrConcat<TrExtendX<IgnitionTime<300>,TrInstant>,Stripes<5000,-2500,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<7710>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,Mix<Int<3855>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>>,TrFade<800>>,TrConcat<TrExtendX<IgnitionTime<300>,TrInstant>,Stripes<3000,-3500,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,RandomPerLEDFlicker<Mix<Int<7710>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,Black>,BrownNoiseFlicker<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<3855>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,200>,RandomPerLEDFlicker<Mix<Int<3137>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,Mix<Int<3855>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>>>,TrFade<800>>,TrInstant>,EFFECT_IGNITION>,TransitionEffectL<TrSelect<IntArg<RETRACTION_COOL_DOWN_ARG,0>,TrConcat<TrExtendX<RetractionTime<0>,TrInstant>,Stripes<5000,2500,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<7710>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,Mix<Int<3855>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>>,TrFade<800>>,TrConcat<TrExtendX<RetractionTime<0>,TrInstant>,Stripes<3000,3500,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,RandomPerLEDFlicker<Mix<Int<7710>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,Black>,BrownNoiseFlicker<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<3855>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,200>,RandomPerLEDFlicker<Mix<Int<3137>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>,Mix<Int<3855>,Black,RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>>>>,TrFade<800>>,TrInstant>,EFFECT_RETRACTION>TransitionEffectL<TrConcat<TrExtendX<WavLen<>,TrWipeIn<200>>,AlphaL<AudioFlickerL<RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,MultiTransitionEffectL<TrRandom<TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<30,60,200>>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<EffectRandomF<EFFECT_BLAST>,Int<28000>,Int<8000>>>,TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<>,Scale<WavLen<>,Int<9000>,Int<12000>>>,RgbArg<BLAST_COLOR_ARG,Rgb<30,60,200>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<30,60,200>>>>,TrFade<300>>,TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<30,60,200>>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Int<28000>,Int<8000>>>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrExtendX<Scale<ClashImpactF<>,Int<100>,Int<600>>,TrCenterWipeX<Int<150>,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>>>>>,AlphaL<Remap<CenterDistF<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>>>>,StripesX<Int<16000>,Scale<ClashImpactF<>,Int<3000>,Int<10000>>,Mix<IsGreaterThan<ClashImpactF<>,Int<23000>>,Rgb<0,20,128>,Rgb<128,0,0>>,Mix<IsGreaterThan<ClashImpactF<>,Int<23000>>,DodgerBlue,Red>,Mix<IsGreaterThan<ClashImpactF<>,Int<23000>>,Rgb<0,10,80>,Rgb<90,0,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<50000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<600>>>>,EFFECT_CLASH>,LockupTrL<AlphaL<StripesX<Int<16000>,Int<12000>,Rgb<128,0,0>,Red,Rgb<90,0,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<50000>>>,TrConcat<TrExtendX<Scale<ClashImpactF<>,Int<2000>,Int<100>>,TrCenterWipeX<Int<150>,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>>>>>,AlphaL<StripesX<Int<16000>,Scale<ClashImpactF<>,Int<3000>,Int<10000>>,Mix<IsGreaterThan<ClashImpactF<>,Int<23000>>,Rgb<0,20,128>,Rgb<128,0,0>>,Mix<IsGreaterThan<ClashImpactF<>,Int<23000>>,DodgerBlue,Red>,Mix<IsGreaterThan<ClashImpactF<>,Int<23000>>,Rgb<0,10,80>,Rgb<90,0,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<50000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<600>,Int<100>>>>,TrFade<400>,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,26000>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,26000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<,AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<Red,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<4000>>>,TrFade<300>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrSelect<IntArg<IGNITION_OPTION_ARG,0>,TrSelect<Scale<IsLessThan<BladeAngle<>,Int<18384>>,Scale<IsGreaterThan<SwingAcceleration<>,Int<16384>>,Int<0>,Int<2>>,Int<1>>,TrWipeInX<Scale<BladeAngle<>,Int<1000>,Int<100>>>,TrWipeX<Scale<BladeAngle<>,Int<100>,Int<1000>>>,TrWipe<100>>,TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,IgnitionTime<300>>,TrWipeX<IgnitionTime<300>>,TrConcat<TrExtendX<Mult<IgnitionTime<300>,Int<16384>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>,Mix<SmoothStep<NoisySoundLevel,Int<-1>>,Black,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,TrWipeX<Mult<IgnitionTime<300>,Int<16384>>>>>,TrSelect<IntArg<RETRACTION_OPTION_ARG,0>,TrSelect<Scale<IsLessThan<BladeAngle<>,Int<18384>>,Int<0>,Int<1>>,TrWipeInX<Scale<BladeAngle<>,Int<2000>,Int<100>>>,TrWipeX<Scale<BladeAngle<>,Int<100>,Int<2000>>>>,TrWipeInX<RetractionTime<0>>,TrColorCycleX<RetractionTime<0>>>,Black>,TransitionEffectL<TrConcat<TrExtend<2000,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>,TrFade<300>>,EFFECT_BATTERY_LEVEL>,TransitionEffectL<TrConcat<TrExtend<2000,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>,TrFade<300>>,EFFECT_NEWFONT>>>()},
  56.  
  57.  
  58.  
  59.  
  60. };
  61. BladeConfig blades[] = {
  62. { 0, WS281XBladePtr<42, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
  63. };
  64. #endif
  65.  
  66. #ifdef CONFIG_BUTTONS
  67. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  68. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  69. #endif
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement