Advertisement
Guest User

Untitled

a guest
Mar 10th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.25 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 2
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 1500
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 2.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define ENABLE_SERIAL
  13. #define SHARED_POWER_PINS
  14. //#define SAVE_STATE
  15. #define FETT263_BATTLE_MODE
  16. #define FETT263_LOCKUP_DELAY 200
  17. #define FETT263_SWING_ON
  18. #define FETT263_TWIST_OFF
  19. //#define FETT263_STAB_ON
  20. #define FETT263_TWIST_ON
  21. #define MOTION_TIMEOUT 60 * 15 * 1000
  22. #define FETT263_MULTI_PHASE
  23. #define FETT263_FORCE_PUSH
  24. #define FETT263_FORCE_PUSH_LENGTH 5
  25.  
  26. #endif
  27.  
  28. #ifdef CONFIG_PROP
  29.  
  30. #include "../props/saber_fett263_buttons.h"
  31.  
  32. #endif
  33.  
  34. #ifdef CONFIG_PRESETS
  35. Preset presets[] = {
  36.  
  37. { "SithChnt", "tracks/darkside.wav",    
  38. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>>,TransitionEffectL<TrConcat<TrInstant,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,ResponsiveLockupL<Strobe<White,BrownNoiseFlicker<White,Red,300>,50,1>,TrConcat<TrInstant,White,TrFade<400>>,TrFade<100>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>,Scale<SwingSpeed<100>,Int<10000>,Int<14000>>>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Magenta>,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>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,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>>>(),
  39.  
  40. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>> ,TransitionEffectL<TrConcat<TrInstant,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,ResponsiveLockupL<AlphaL<Red,Int<0>>,TrConcat<TrInstant,White,TrFade<200>>,TrFade<400>>,ResponsiveLightningBlockL<AlphaL<Red,Int<0>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,BlastL<White>,SimpleClashL<White>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<RotateColorsX<Variation,Rgb<255,150,150>>>,TrFade<1200>>,EFFECT_IGNITION>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<RotateColorsX<Variation,Rgb<255,150,150>>>,TrFade<1200>>,EFFECT_RETRACTION>,InOutTrL<TrInstant,TrFade<300>,Stripes<1000,325,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<10,0,0>>>>>>(),
  41. "SithChnt"}
  42.  
  43. };
  44. BladeConfig blades[] = {
  45.  { 0,
  46.     SubBlade(16, 147, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
  47.     SubBlade(0, 15, NULL)
  48.   , CONFIGARRAY(presets) },
  49. };
  50. #endif
  51.  
  52. #ifdef CONFIG_BUTTONS
  53. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  54. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  55. #endif
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement