Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef CONFIG_TOP
- #include "proffieboard_v2_config.h"
- #define NUM_BLADES 5
- #define NUM_BUTTONS 2
- #define VOLUME 2000
- const unsigned int maxLedsPerStrip = 264;
- #define CLASH_THRESHOLD_G 2.0
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define SAVE_STATE
- #define DISABLE_DIAGNOSTIC_COMMANDS
- #define IDLE_OFF_TIME 60 * 3 * 1000
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_fett263_buttons.h"
- #endif
- // OxR Creations Emperor Sidious
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- ////////
- { "Sidious1;common", "tracks/Track1.wav",
- 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>>>(),
- 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>>>>(),
- 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>>>>>(),
- 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>>>>>(),
- StyleNormalPtr<AudioFlicker<White,White>,White,300,800>(),"Sidious"},
- ////////
- };
- // Custom defined struct for accent LEDS
- struct AccentsLED {
- static constexpr float MaxAmps = 0.02;
- static constexpr float MaxVolts = 3.2;
- static constexpr float P2Amps = 0.006;
- static constexpr float P2Volts = 3.0;
- static constexpr float R = 0; // Resistor value
- static const int Red = 255;
- static const int Green = 255;
- static const int Blue = 255;
- };
- BladeConfig blades[] = {
- { 0, WS281XBladePtr<264, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- WS281XBladePtr<6, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
- WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >(),
- WS281XBladePtr<5, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >(),
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin1, -1, -1, -1>()
- , CONFIGARRAY(presets) },
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- Button AuxButton(BUTTON_AUX, auxPin, "aux");
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement