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 6
- #define NUM_BUTTONS 2
- #define VOLUME 1000
- const unsigned int maxLedsPerStrip = 144;
- #define CLASH_THRESHOLD_G 2.7
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define ENABLE_SSD1306
- #define COLOR_CHANGE_DIRECT
- // this enables "click to change"
- #define SA22C_SWING_ON
- #define SA22C_TWIST_OFF
- #define SA22C_FORCE_PUSH
- //#define GESTURE_AUTO_BATTLE_MODE
- #define MOTION_TIMEOUT 60 * 15 * 1000
- //#define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
- #define ENABLE_SPINS
- #define SHARED_POWER_PINS
- #endif
- //FET 1- Not Used
- //FET 2- Main Blade/PCB
- //FET 3- Main Blade/PCB
- //FET 4- Crystal Chamber Ring- 15px
- //FET 5- Button Accent, Side Accent, CC- 3px
- //Data 1- Npx PCB- 16px
- //Data 2- Main Blade
- //Data 3- Button Accent, CC, Side Accent Sub Array- 3px
- //Data 4- Crystal Chamber Ring- 15px
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- { "Yoda", "tracks/track1.wav",
- //NPX PCB
- StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,ResponsiveLightningBlockL<AlphaL<Red,Int<0>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<White,40>,TrFade<800>>,EFFECT_IGNITION>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<RotateColorsX<Variation,Rgb<90,180,255>>>,TrFade<1200>>,EFFECT_RETRACTION>,InOutTrL<TrWipeSparkTip<White,300>,TrWipeInSparkTip<White,500>,Black>>>(),
- //Main Blade
- StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,AlphaL<AlphaL<Moccasin,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,SmoothStep<Scale<Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>,Int<28000>,Int<14000>>,Int<16000>>>,LockupTrL<Layers<AlphaL<AudioFlickerL<Rgb<255,150,0>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<Moccasin,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,AlphaL<TransitionEffect<Rgb<255,150,0>,Moccasin,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<20000>>>,TrFade<400>>,TrConcat<TrInstant,TransitionEffect<Moccasin,Rgb<255,150,0>,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<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<TransitionEffect<Rgb<255,150,0>,Moccasin,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>,Int<20000>>,TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<Rgb<150,255,150>,40>,TrFade<800>>,EFFECT_IGNITION>,TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<RotateColorsX<Variation,Rgb<150,255,150>>,40>,TrFade<1200>>,EFFECT_RETRACTION>,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<300>,TrWipeInX<Scale<BladeAngle<>,Int<800>,Int<300>>>,Black>>>(),
- //Button Accent Sub Array 1
- StylePtr<InOutHelper<AudioFlicker<Green,Rgb16<0,13655,0>>,300,800,Pulsing<Sparkle<Green,White,50>,Black,1800>>>(),
- //CC Accent Sub Array 2
- StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>> ,LockupTrL<BrownNoiseFlickerL<White,Int<200>>,TrConcat<TrInstant,White,TrFade<300>>,TrFade<300>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<AlphaL<Red,Int<0>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,BlastL<Moccasin>,TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<White,40>,TrFade<800>>,EFFECT_IGNITION>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<RotateColorsX<Variation,Rgb<150,255,150>>>,TrFade<1200>>,EFFECT_RETRACTION>,InOutTrL<TrInstant,TrFade<300>,Black>>>(),
- //Side Accent Sub Array 3
- StylePtr<InOutHelper<AudioFlicker<Rgb<0,125,0>,Green>,300,800>>(),
- //CC Ring
- StylePtr<Layers<ColorCycle<RotateColorsX<Variation,HoneyDew>,25,100,RotateColorsX<Variation,Green>,25,300,4000>,InOutTrL<TrFade<500>,TrFade<500>,ColorCycle<RotateColorsX<Variation,HoneyDew>,25,100,RotateColorsX<Variation,Green>,25,300,4000>>>>(),"yoda"},
- };
- BladeConfig blades[] = {
- { 0, // blade ID resistor not used
- // NPX PCB- 16px Data 1 FET 2,3
- WS2811BladePtr<16, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- // Main Blade- (XX)px Data 2 FETs 2,3
- WS281XBladePtr<122, blade2Pin, Color8::GRBw, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- // Button Accent, CC, Side Accent Sub Array (IN THAT ORDER) Fet 5, Data 3
- SubBlade(0, 0, WS281XBladePtr<3, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5> >()),
- SubBlade(1, 1, NULL),
- SubBlade(2, 2, NULL),
- // CC Ring- 16px Data4 FET 4
- WS2811BladePtr<16, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
- 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