Advertisement
Sabersense

Luke Switchbox

Apr 15th, 2024 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 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 1200
  6. const unsigned int maxLedsPerStrip = 269;
  7. #define CLASH_THRESHOLD_G 3.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #endif
  13.  
  14. #ifdef CONFIG_PROP
  15. #include "../props/saber_shtok_buttons.h"
  16. #endif
  17.  
  18. #ifdef CONFIG_PRESETS
  19. Preset presets[] = {
  20. { "CaveScene", "tracks/Beeps.wav",
  21. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<Rgb<255,240,80>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<LemonChiffon,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,TransitionEffect<Rgb<255,180,50>,LemonChiffon,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat<TrJoinR<TrWipe<100>,TrWipeIn<100>>,TransitionEffect<LemonChiffon,Rgb<255,180,50>,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrJoinR<TrWipe<100>,TrWipeIn<100>>>,SaberBase::LOCKUP_NORMAL>,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>>>,ResponsiveStabL<Red,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<TransitionEffect<Rgb<255,240,80>,LemonChiffon,TrInstant,TrFade<50>,EFFECT_BLAST>,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,ResponsiveClashL<TransitionEffect<Rgb<255,240,80>,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>,Int<20000>>,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<400>,TrWipeIn<400>,Black>>>(),
  22.  
  23. StylePtr<Layers<TransitionLoop<Black,TrConcat<TrDelay<3000>,Green,TrBoing<2000,5>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Black,TrConcat<TrDelay<3000>,Green,TrBoing<2000,5>>>>>>(),
  24.  
  25. StylePtr<Layers<TransitionLoop<Red,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Red,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>()},
  26.  
  27.  
  28. };
  29. BladeConfig blades[] = {
  30. { 0, WS281XBladePtr<269, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  31. WS281XBladePtr<1, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
  32. WS281XBladePtr<1, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >()
  33. , CONFIGARRAY(presets) },
  34. };
  35. #endif
  36.  
  37. #ifdef CONFIG_BUTTONS
  38. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  39. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  40. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement