#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 1 #define VOLUME 1200 const unsigned int maxLedsPerStrip = 193; #define CLASH_THRESHOLD_G 3.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define FETT263_TWIST_OFF #define FETT263_TWIST_ON #endif #ifdef CONFIG_PROP #include "../props/saber_fett263_buttons.h" // this assumes your copy is called "yourfile.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "BOBAS1E5MANDO", "tracks/The Mandalorian.wav", StylePtr,RotateColorsX>,RotateColorsX>>,Stripes<5000,-300,RotateColorsX>,RotateColorsX>,RotateColorsX>,RotateColorsX>>,300>,RotateColorsX>>,LockupTrL,Bump,Scale,Int<4000>,Int<26000>>,Int<6000>>,Scale,Int<14000>,Int<18000>>>>,AlphaL,Scale,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat>,TrConcat>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL,TrWipeIn<500>,Black>>>(), "cyan"}, { "vizsla", "tracks/Maul, Savage and Viszla.wav", StylePtr,RotateColorsX>,RotateColorsX>>,Stripes<5000,-300,RotateColorsX>,RotateColorsX>,RotateColorsX>,RotateColorsX>>,300>,RotateColorsX>>,LockupTrL,Bump,Scale,Int<4000>,Int<26000>>,Int<6000>>,Scale,Int<14000>,Int<18000>>>>,AlphaL,Scale,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat>,TrConcat>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL,TrWipeIn<500>,Black>>>(), "blue"}, { "faulty", "tracks/track1.wav", StylePtr,RotateColorsX>,RotateColorsX>>,Stripes<5000,-300,RotateColorsX>, RotateColorsX>,RotateColorsX>,RotateColorsX>>,300>,RotateColorsX>>, AlphaL>,RotateColorsX>,Pulsing>,Black,800>>,SwingSpeed<600>>, LockupTrL,Bump,Scale,Int<4000>,Int<26000>>,Int<6000>>,Scale,Int<14000>,Int<18000>>>>, AlphaL,Scale,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat>,TrConcat>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, ResponsiveStabL, ResponsiveBlastWaveL,Scale,Int<100>,Int<400>>>, ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>, TransitionEffectL,TrFade<800>>,EFFECT_IGNITION>, LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>, LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>, InOutTrL,TrConcat,Mix,Int<-4000>>,Black,RotateColorsX>>,TrWaveX,Int<200>,Int<300>,Int<200>,Int<0>>, Mix,Int<-2000>>,Black,Black>,TrWaveX>,Int<250>,Int<300>,Int<250>,Int<0>>,Mix,Int<-2000>>,Black,RotateColorsX>>, TrWaveX,Int<300>,Int<300>,Int<300>,Int<0>>,Mix,Int<-2000>>,Black,RotateColorsX>>, TrWaveX>,Int<350>,Int<300>,Int<350>,Int<0>>,Mix,Int<-2000>>,Black,RotateColorsX>, TrWaveX>,Int<400>,Int<300>,Int<400>,Int<0>>,Black,TrWaveX>,Int<400>,Int<300>,Int<400>,Int<0>>,Black,TrInstant>>, TransitionEffectL,Int<10000>>>,TrFade<3000>,AlphaL,Int<8000>>>,TrFade<3000>,AlphaL,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>, TransitionEffectL,Int<2000>,Int<1000>>,BrownNoiseFlicker>,100>, RandomPerLEDFlicker>,Rgb<50,50,50>>,BrownNoiseFlicker>,RotateColorsX, RotateColorsX>>>,White,50>>,SmoothStep>,Int<-10000>,Int<15000>>,Int<-4000>>>,TrDelay<2000>>,EFFECT_PREON>>>(), "fire"}, { "Sebulba", "tracks/sebulba.wav", StylePtr>,RotateColorsX>,RotateColorsX>,RotateColorsX>,RotateColorsX>>, AlphaL,Pulsing,Black,800>>,SwingSpeed<600>>,LockupTrL,Bump,Scale,Int<4000>,Int<26000>>,Int<6000>>, Scale,Int<14000>,Int<18000>>>>, AlphaL,Scale,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat>,TrConcat>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, AlphaL>,Int<1000>,Int<4000>>,Int<-4000>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>, ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,TransitionEffectL>,40>,TrFade<1200>>, EFFECT_RETRACTION>,LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Red,Orange>,SmoothStep, Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL,TrWipeInSparkTip,Black>,TransitionEffectL,Int<10000>>>,TrFade<3000>, AlphaL,Int<8000>>>,TrFade<3000>,AlphaL,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,TransitionEffectL,Int<2000>,Int<1000>>, BrownNoiseFlicker>,100>,RandomPerLEDFlicker>,Rgb<50,50,50>>,BrownNoiseFlicker>, RotateColorsX,RotateColorsX>>>,White,50>>,SmoothStep,Int<36000>>,Int<-4000>>>,TrDelay<6000>>,EFFECT_PREON>>>(), "red"}, { "STARGATE", "tracks/Stargate.wav", StylePtr>,TrConcat,Layers< Stripes<10000,100,RotateColorsX>,RotateColorsX>,RotateColorsX>>, AlphaL>,RotateColorsX>>,Int<16384>>>,TrDelayX>,Int<100>,Int<2000>>>>>, TransitionLoopL,RandomBlinkL,White>,TrWipe<200>,AlphaL>,TrDelayX>,Int<300>,Int<3000>>>>>>, AlphaL,Int<1>>,SwingSpeed<600>>, LockupTrL,Bump,Scale,Int<10000>,Int<30000>>,Int<10000>>,Scale,Int<14000>,Int<18000>>>>, AlphaL,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<20000>>>>,TrConcat>,TrConcat,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Rgb<100,100,150>>,Stripes<1500,-2500,White,Rgb<100,100,150>>>,Int<18000>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, ResponsiveStabL, ResponsiveBlastL,Scale,Int<100>,Int<400>>>, ResponsiveBlastWaveL,Int<100>,Int<300>,Scale,Int<10000>,Int<30000>>,Int<10000>,EFFECT_CLASH>, TransitionEffectL,Black>,BrownNoiseFlicker,200>,RandomPerLEDFlicker,Rgb<30,30,30>>>,TrFade<800>>,EFFECT_IGNITION>, LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>, LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>, InOutTrL,TrWipeIn<3000>>, TransitionEffectL,AlphaL>,Bump,Int<10000>>>,TrFade<5000>,AlphaL,Bump,Int<15000>>>,TrFade<3000>,StrobeL,Int<1>>,TrBoing<1000,1>>,EFFECT_PREON>>>(), "blue fire"}, { "JUMPBIKE", "tracks/Endor.wav", StylePtr,RotateColorsX>>, TransitionEffectL,AudioFlickerL>>,TrDelay<30000>,AudioFlickerL>>,TrFade<800>>,EFFECT_FORCE>, AlphaL,RotateColorsX>,Pulsing>,Black,800>>,SwingSpeed<600>>, LockupTrL,Bump,Scale,Int<10000>,Int<30000>>,Int<10000>>,Scale,Int<14000>,Int<18000>>>>, AlphaL,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat>,TrConcat,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Green>,Stripes<1500,-2500,White,Green>>,Int<18000>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, AlphaL>,Int<1000>,Int<4000>>,Int<-4000>>>, ResponsiveStabL, ResponsiveBlastL>,Int<400>,Scale,Int<100>,Int<400>>>, ResponsiveClashL,Scale,Int<10000>,Int<30000>>,Int<10000>,Int<20000>>, TransitionEffectL,TrFade<800>>,EFFECT_IGNITION>, TransitionEffectL,TrFade<1500>>,EFFECT_RETRACTION>, LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>, LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>, InOutTrL,TrWipeInSparkTip>, TransitionEffectL,AlphaL,Bump,Int<4000>>>,TrFade<2950>,AlphaL,Bump,Int<5000>>>,TrFade<3000>,AlphaL,Bump,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(), "green"}, { "Dmaul", "tracks/hellstyle.wav", StylePtr,RotateColorsX>>,AlphaL,Pulsing,Black,800>>,SwingSpeed<600>>, LockupTrL,Bump,Scale,Int<4000>,Int<26000>>,Int<6000>>,Scale,Int<14000>,Int<18000>>>>, AlphaL,Scale,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat>,TrConcat>, SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>, TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>, ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>, LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Rgb<255,200,0>,DarkOrange>, SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL,TrWipeInSparkTip,Black>, TransitionEffectL,Int<10000>>>,TrFade<3000>,AlphaL,Int<8000>>>,TrFade<3000>,AlphaL,Int<6000>>>,TrFade<2000>>, EFFECT_RETRACTION>,TransitionEffectL,Int<2000>,Int<1000>>,BrownNoiseFlicker,100>,RandomPerLEDFlicker,Rgb<50,50,50>>,BrownNoiseFlicker,RotateColorsX, RotateColorsX>>,White,50>>,SmoothStep,Int<36000>>,Int<-4000>>>,TrDelay<6000>>,EFFECT_PREON>>>(), "white"}, { "FALLENORDERCALBUNDLE", "tracks/fallenorder.wav", StylePtr,Pulsing>,RotateColorsX,800>,RotateColorsX>,TransitionEffectL,RandomFlicker,RotateColorsX>>,TrDelay<30000>,RotateColorsX,TrFade<800>>,EFFECT_FORCE>,LockupTrL,Bump,Scale,Int<4000>,Int<26000>>,Int<6000>>,Scale,Int<14000>,Int<18000>>>>,AlphaL,Scale,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat>,TrConcat>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL,TrWipeIn<500>,Black>>>(), "yellow"}, { "THE BEGGINER", "tracks/SUNSET.wav", StylePtr,RotateColorsX>>, AlphaL>, LockupTrL>,Bump,Scale,Int<10000>,Int<30000>>,Int<10000>>,Scale,Int<14000>,Int<18000>>>>, AlphaL,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat,LemonChiffon,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, ResponsiveStabL, ResponsiveBlastL,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>>, ResponsiveClashL,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale,Int<10000>,Int<30000>>,Int<10000>,Int<20000>>, LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>, LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>, InOutTrL,TrWipeIn<500>>>>(), "magenta"}, { "SmthFuzz", "tracks/mars.wav", StyleNormalPtr, Gradient, 300, 800>(), "gradient"}, { "RgueCmdr", "tracks/mercury.wav", StyleRainbowPtr<300, 800>(), "rainbow"}, { "TthCrstl", "tracks/uranus.wav", StyleStrobePtr(), "strobe"}, { "TeensySF", "tracks/venus.wav", &style_pov, "POV"}, { "SmthJedi", "tracks/mars.wav", &style_charging, "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS281XBladePtr<114, bladePin, Color8::GRBw, PowerPINS >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); #endif