Advertisement
NoSloppy

Untitled

Dec 21st, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 5
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 2000
  6. const unsigned int maxLedsPerStrip = 264;
  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 SAVE_STATE
  13. #define DISABLE_DIAGNOSTIC_COMMANDS
  14. #define IDLE_OFF_TIME 60 * 3 * 1000
  15. #endif
  16.  
  17. #ifdef CONFIG_PROP
  18. #include "../props/saber_fett263_buttons.h"
  19. #endif
  20.  
  21. // OxR Creations Emperor Sidious
  22.  
  23. #ifdef CONFIG_PRESETS
  24. Preset presets[] = {
  25.  
  26. ////////
  27.  
  28. { "Sidious1;common", "tracks/Track1.wav",
  29.  
  30. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,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<Orange,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,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<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
  31.  
  32. StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>> ,BlastL<White>,InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<10,0,0>>,3000>>>>(),
  33.  
  34. StylePtr<Layers<Mix<Bump<Sin<Int<18>>,Int<10000>>,Black,RotateColorsX<Variation,Red>>,InOutTrL<TrInstant,TrInstant,Mix<Bump<Sin<Int<18>>,Int<10000>>,Black,RotateColorsX<Variation,Red>>>>>(),
  35.  
  36. StylePtr<Layers<Mix<Bump<Sin<Int<18>>,Int<10000>>,Black,RotateColorsX<Variation,Red>>,InOutTrL<TrInstant,TrInstant,Mix<Bump<Sin<Int<18>>,Int<10000>>,Black,RotateColorsX<Variation,Red>>>>>(),
  37.  
  38. StyleNormalPtr<AudioFlicker<White,White>,White,300,800>(),"Sidious"},
  39.  
  40. ////////
  41. };
  42.  
  43. // Custom defined struct for accent LEDS
  44.  
  45. struct AccentsLED {
  46. static constexpr float MaxAmps = 0.02;
  47. static constexpr float MaxVolts = 3.2;
  48. static constexpr float P2Amps = 0.006;
  49. static constexpr float P2Volts = 3.0;
  50. static constexpr float R = 0; // Resistor value
  51. static const int Red = 255;
  52. static const int Green = 255;
  53. static const int Blue = 255;
  54. };
  55.  
  56. BladeConfig blades[] = {
  57. { 0, WS281XBladePtr<264, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  58. WS281XBladePtr<6, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
  59. WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >(),
  60. WS281XBladePtr<5, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >(),
  61. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin1, -1, -1, -1>()
  62. , 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.  
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement