highlightshadow

Untitled

Jul 22nd, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 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 2300
  6. const unsigned int maxLedsPerStrip = 264;
  7. #define CLASH_THRESHOLD_G 3.1
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define SAVE_STATE
  13. #define DISABLE_DIAGNOSTIC_COMMANDS
  14. // Timesout For Clash/Gestures
  15. #define MOTION_TIMEOUT 60 * 15 * 1000
  16. // Timeout for Crystal Chamber
  17. #define IDLE_OFF_TIME 60 * 2 * 1000
  18.  
  19. // SA22C Gestures
  20. #define SA22C_TWIST_ON
  21. #define SA22C_TWIST_OFF
  22. #define SA22C_THRUST_ON
  23. #define GESTURE_AUTO_BATTLE_MODE
  24. #define SA22C_LOCKUP_DELAY 250
  25.  
  26. // OLED
  27. #define ENABLE_SSD1306
  28.  
  29. // Brian Conner Added Animations
  30. #define AUREBESH
  31.  
  32. // Bluetooth Config
  33. #define ENABLE_SERIAL
  34. // Max 20 characters
  35. #define BLE_PASSWORD "xxxxxx"
  36. // Max 32 characters.
  37. #define BLE_NAME "DarkSide"
  38. // Max 9 characters
  39. #define BLE_SHORTNAME "Vader"
  40.  
  41. #endif
  42.  
  43. #ifdef CONFIG_PROP
  44. #include "../props/saber_sa22c_buttons.h"
  45. #endif
  46.  
  47.  
  48. #ifdef CONFIG_PRESETS
  49. Preset presets[] = {
  50.  
  51. { "OB4;Animation", "OB4/tracks/Force_Theme.wav", // Blue
  52. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,DodgerBlue>,RotateColorsX<Variation,Rgb<0,0,128>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<Rgb<255,240,80>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<LemonChiffon,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,TransitionEffect<Rgb<255,180,50>,LemonChiffon,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat<TrInstant,TransitionEffect<LemonChiffon,Rgb<255,180,50>,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,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<4000>,Int<26000>>,Int<6000>,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<650>,TrWipeIn<550>,Black>>>(),
  53.  
  54. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,DodgerBlue>,RotateColorsX<Variation,Rgb<0,0,128>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<Rgb<255,240,80>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<LemonChiffon,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,TransitionEffect<Rgb<255,180,50>,LemonChiffon,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat<TrInstant,TransitionEffect<LemonChiffon,Rgb<255,180,50>,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,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<4000>,Int<26000>>,Int<6000>,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<650>,TrWipeIn<550>,Black>>>(),
  55.  
  56. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,128>>>,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,AlphaL<RotateColorsX<Variation,Blue>,NoisySoundLevel<>>>>>(),"obi\nwan"}
  57. };
  58.  
  59. BladeConfig blades[] = {
  60. { 0,
  61. WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  62. WS281XBladePtr<7, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(),
  63. WS281XBladePtr<1, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin6> >(),
  64. CONFIGARRAY(presets) },
  65. };
  66. #endif
  67.  
  68. #ifdef CONFIG_BUTTONS
  69. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  70. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  71. #endif
Advertisement
Add Comment
Please, Sign In to add comment