NoSloppy

Untitled

Nov 6th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 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 2800
  6. const unsigned int maxLedsPerStrip = 264;
  7. #define CLASH_THRESHOLD_G 2
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define COLOR_CHANGE_DIRECT
  13. #define DISABLE_DIAGNOSTIC_COMMANDS
  14. #define FETT263_SWING_ON
  15. #define FETT263_TWIST_OFF
  16. // #define FETT263_LOCKUP_DELAY 300
  17. #define MOTION_TIMEOUT 60 * 5 * 1000
  18. #define IDLE_OFF_TIME 60 * 5 * 1000
  19. #define FETT263_MULTI_PHASE
  20. #endif
  21. #ifdef CONFIG_PROP
  22. #include "../props/saber_fett263_buttons.h"
  23. #endif
  24. #ifdef CONFIG_PRESETS
  25. Preset presets[] = {
  26. { "Return", "tracks/last.wav",
  27. StylePtr<Layers<Mix<SmoothStep<Scale<BladeAngle<>,Int<6000>,Int<24000>>,Int<10000>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>>
  28. ,AlphaL<AlphaL<BrownNoiseFlicker<Yellow,Black,300>,SwingSpeed<400>>,SmoothStep<Int<16000>,Int<16000>>>
  29. ,EffectSequence<EFFECT_POWERSAVE,AlphaL<Black,Int<3277>>,AlphaL<Black,Int<6554>>,AlphaL<Black,Int<9831>>,AlphaL<Black,Int<13108>>,AlphaL<Black,Int<16385>>,AlphaL<Black,Int<19662>>,AlphaL<Black,Int<22939>>,AlphaL<Black,Int<26216>>,AlphaL<Black,Int<29493>>,AlphaL<Black,Int<0>>>
  30. ,TransitionEffectL<TrConcat<TrInstant,White,TrFade<800>>,EFFECT_LOCKUP_END>
  31. ,ResponsiveLockupL<Strobe<White,BrownNoiseFlicker<White,Blue,300>,50,1>,TrConcat<TrInstant,White,TrFade<400>>,TrFade<100>,Int<32000>,Int<4000>,Scale<SwingSpeed<100>,Int<10000>,Int<14000>>>
  32. ,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>>>
  33. ,ResponsiveStabL<Orange,TrWipeIn<600>,TrWipe<600>>
  34. ,ResponsiveBlastWaveL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>
  35. ,ResponsiveBlastWaveL<White,Int<300>,Int<100>,Int<300>,Int<32000>,Int<4000>,EFFECT_CLASH>
  36. ,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>
  37. ,LockupTrL<AlphaL<BrownNoiseFlickerL<Magenta,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>
  38. ,LockupTrL<AlphaL<Mix<TwistAngle<>,Coral,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>
  39. ,InOutTrL<TrWipeSparkTip<White,300>,TrWipeInSparkTip<White,600>,Black>
  40. ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_BOOT>
  41. ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_NEWFONT>
  42. ,TransitionEffectL<TrConcat<TrInstant,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<-4000>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<4000>>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>>>()
  43. ,
  44.  
  45. StylePtr<Layers<Mix<SmoothStep<Scale<BladeAngle<>,Int<6000>,Int<24000>>,Int<10000>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>>
  46. ,AlphaL<AlphaL<BrownNoiseFlicker<Yellow,Black,300>,SwingSpeed<400>>,SmoothStep<Int<16000>,Int<16000>>>
  47. ,EffectSequence<EFFECT_POWERSAVE,AlphaL<Black,Int<3277>>,AlphaL<Black,Int<6554>>,AlphaL<Black,Int<9831>>,AlphaL<Black,Int<13108>>,AlphaL<Black,Int<16385>>,AlphaL<Black,Int<19662>>,AlphaL<Black,Int<22939>>,AlphaL<Black,Int<26216>>,AlphaL<Black,Int<29493>>,AlphaL<Black,Int<0>>>
  48. ,TransitionEffectL<TrConcat<TrInstant,White,TrFade<800>>,EFFECT_LOCKUP_END>
  49. ,ResponsiveLockupL<Strobe<White,BrownNoiseFlicker<White,Blue,300>,50,1>,TrConcat<TrInstant,White,TrFade<400>>,TrFade<100>,Int<32000>,Int<4000>,Scale<SwingSpeed<100>,Int<10000>,Int<14000>>>
  50. ,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>>>
  51. ,ResponsiveStabL<Orange,TrWipeIn<600>,TrWipe<600>>
  52. ,ResponsiveBlastWaveL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>
  53. ,ResponsiveBlastWaveL<White,Int<300>,Int<100>,Int<300>,Int<32000>,Int<4000>,EFFECT_CLASH>
  54. ,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>
  55. ,LockupTrL<AlphaL<BrownNoiseFlickerL<Magenta,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>
  56. ,LockupTrL<AlphaL<Mix<TwistAngle<>,Coral,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>
  57. ,InOutTrL<TrWipeSparkTip<White,300>,TrWipeInSparkTip<White,600>,Black>
  58. ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_BOOT>
  59. ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_NEWFONT>
  60. ,TransitionEffectL<TrConcat<TrInstant,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<-4000>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<4000>>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>>>(),
  61. "GreenAudioFlikrRedUnstableSwing"},
  62. };
  63.  
  64. BladeConfig blades[] = {
  65. {0,SubBladeWithStride (0, 262, 2, WS281XBladePtr<264, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ),
  66. SubBladeWithStride (1, 263, 2, NULL),
  67. CONFIGARRAY(presets)},
  68. };
  69. #endif
  70. #ifdef CONFIG_BUTTONS
  71. Button PowerButton(BUTTON_POWER, auxPin, "pow");
  72. Button AuxButton(BUTTON_AUX, powerButtonPin, "aux");
  73. #endif
Advertisement
Add Comment
Please, Sign In to add comment