Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef CONFIG_TOP
- #include "proffieboard_v2_config.h"
- #define NUM_BLADES 2
- #define NUM_BUTTONS 2
- #define VOLUME 2800
- const unsigned int maxLedsPerStrip = 264;
- #define CLASH_THRESHOLD_G 2
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define COLOR_CHANGE_DIRECT
- #define DISABLE_DIAGNOSTIC_COMMANDS
- #define FETT263_SWING_ON
- #define FETT263_TWIST_OFF
- // #define FETT263_LOCKUP_DELAY 300
- #define MOTION_TIMEOUT 60 * 5 * 1000
- #define IDLE_OFF_TIME 60 * 5 * 1000
- #define FETT263_MULTI_PHASE
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_fett263_buttons.h"
- #endif
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- { "Return", "tracks/last.wav",
- StylePtr<Layers<Mix<SmoothStep<Scale<BladeAngle<>,Int<6000>,Int<24000>>,Int<10000>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>>
- ,AlphaL<AlphaL<BrownNoiseFlicker<Yellow,Black,300>,SwingSpeed<400>>,SmoothStep<Int<16000>,Int<16000>>>
- ,EffectSequence<EFFECT_POWERSAVE,AlphaL<Black,Int<3277>>,AlphaL<Black,Int<6554>>,AlphaL<Black,Int<9831>>,AlphaL<Black,Int<13108>>,AlphaL<Black,Int<16385>>,AlphaL<Black,Int<19662>>,AlphaL<Black,Int<22939>>,AlphaL<Black,Int<26216>>,AlphaL<Black,Int<29493>>,AlphaL<Black,Int<0>>>
- ,TransitionEffectL<TrConcat<TrInstant,White,TrFade<800>>,EFFECT_LOCKUP_END>
- ,ResponsiveLockupL<Strobe<White,BrownNoiseFlicker<White,Blue,300>,50,1>,TrConcat<TrInstant,White,TrFade<400>>,TrFade<100>,Int<32000>,Int<4000>,Scale<SwingSpeed<100>,Int<10000>,Int<14000>>>
- ,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>>
- ,ResponsiveBlastWaveL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>
- ,ResponsiveBlastWaveL<White,Int<300>,Int<100>,Int<300>,Int<32000>,Int<4000>,EFFECT_CLASH>
- ,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>
- ,LockupTrL<AlphaL<BrownNoiseFlickerL<Magenta,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>
- ,LockupTrL<AlphaL<Mix<TwistAngle<>,Coral,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>
- ,InOutTrL<TrWipeSparkTip<White,300>,TrWipeInSparkTip<White,600>,Black>
- ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_BOOT>
- ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_NEWFONT>
- ,TransitionEffectL<TrConcat<TrInstant,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<-4000>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<4000>>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>>>()
- ,
- StylePtr<Layers<Mix<SmoothStep<Scale<BladeAngle<>,Int<6000>,Int<24000>>,Int<10000>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>,AudioFlicker<RotateColorsX<Variation,Green>,RotateColorsX<Variation,Rgb<0,128,0>>>>
- ,AlphaL<AlphaL<BrownNoiseFlicker<Yellow,Black,300>,SwingSpeed<400>>,SmoothStep<Int<16000>,Int<16000>>>
- ,EffectSequence<EFFECT_POWERSAVE,AlphaL<Black,Int<3277>>,AlphaL<Black,Int<6554>>,AlphaL<Black,Int<9831>>,AlphaL<Black,Int<13108>>,AlphaL<Black,Int<16385>>,AlphaL<Black,Int<19662>>,AlphaL<Black,Int<22939>>,AlphaL<Black,Int<26216>>,AlphaL<Black,Int<29493>>,AlphaL<Black,Int<0>>>
- ,TransitionEffectL<TrConcat<TrInstant,White,TrFade<800>>,EFFECT_LOCKUP_END>
- ,ResponsiveLockupL<Strobe<White,BrownNoiseFlicker<White,Blue,300>,50,1>,TrConcat<TrInstant,White,TrFade<400>>,TrFade<100>,Int<32000>,Int<4000>,Scale<SwingSpeed<100>,Int<10000>,Int<14000>>>
- ,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>>
- ,ResponsiveBlastWaveL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>
- ,ResponsiveBlastWaveL<White,Int<300>,Int<100>,Int<300>,Int<32000>,Int<4000>,EFFECT_CLASH>
- ,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>
- ,LockupTrL<AlphaL<BrownNoiseFlickerL<Magenta,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>
- ,LockupTrL<AlphaL<Mix<TwistAngle<>,Coral,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>
- ,InOutTrL<TrWipeSparkTip<White,300>,TrWipeInSparkTip<White,600>,Black>
- ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_BOOT>
- ,TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<4000>>>,TrFade<3000>>,EFFECT_NEWFONT>
- ,TransitionEffectL<TrConcat<TrInstant,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<-4000>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<Int<4000>,Int<4000>>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>>>(),
- "GreenAudioFlikrRedUnstableSwing"},
- };
- BladeConfig blades[] = {
- {0,SubBladeWithStride (0, 262, 2, WS281XBladePtr<264, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ),
- SubBladeWithStride (1, 263, 2, NULL),
- CONFIGARRAY(presets)},
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, auxPin, "pow");
- Button AuxButton(BUTTON_AUX, powerButtonPin, "aux");
- #endif
Advertisement
Add Comment
Please, Sign In to add comment