#ifdef CONFIG_TOP #include "proffieboard_v1_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 1400 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 1.9 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "ANH", "tracks/Training_Ambience.wav", StylePtr,RotateColorsX>>,AlphaL>,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,LemonChiffon,TrInstant,TrFade<50>,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>>,ResponsiveClashL,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,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>,EffectSequence>,AlphaL>,AlphaL>,AlphaL>>,InOutTrL,TrWipeIn<500>,Black>,AlphaL>,Int<60000>,Int<0>>,Int<30000>>>,Int<11000>>>>(), "cyan"}, { "Father", "tracks/Imperial_March.wav", StylePtr,RotateColorsX>,50>,AlphaL,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,LemonChiffon,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>,EffectSequence,Scale,Int<100>,Int<400>>,Int<400>>,LocalizedClashL,ResponsiveBlastWaveL,Int<500>,Int<200>>,Scale,Int<100>,Int<400>>>,BlastL,ResponsiveBlastFadeL,Int<6000>,Int<12000>>,Scale,Int<400>,Int<100>>>,ResponsiveBlastL,Int<400>,Int<100>>,Scale,Int<200>,Int<100>>,Scale,Int<400>,Int<200>>>>,SimpleClashL,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>>,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>,EffectSequence>,AlphaL>,AlphaL>,AlphaL>>,InOutTrL,TrWipeInX,Int<900>,Int<466>>>,Black>,AlphaL>,Int<0>,Scale,Int<7500>>>>>>(), "red"}, { "The_Return", "tracks/Sail_Barge.wav", StylePtr,RotateColorsX>>,AlphaL>,SmoothStep,Int<16000>>>,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,Moccasin,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat,TrWipeIn<100>>,TransitionEffect,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<300>>,SaberBase::LOCKUP_NORMAL>,LockupTrL>,Int<3000>,Int<16000>>,Scale>,Int<14000>,Int<8000>>>,Bump>,Int<26000>,Int<8000>>,Scale,Int<10000>>>,Bump>,Int<20000>,Int<30000>>,Scale>,Int<8000>>,Scale,Int<0>>,Int<0>>>>>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL,TrWipe<600>>,EffectSequence,Moccasin,TrInstant,TrFade<50>,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>>,Layers,Moccasin,TrInstant,TrFade<100>,EFFECT_BLAST>,Scale,Int<10000>,Int<18000>>>,ResponsiveBlastFadeL,Int<4000>,Int<10000>>>>,BlastL,Moccasin,TrInstant,TrFade<50>,EFFECT_BLAST>>,ResponsiveBlastL,Moccasin,TrInstant,TrFade<50>,EFFECT_BLAST>>>,BlastL,Moccasin,TrInstant,TrFade<50>,EFFECT_BLAST>>,ResponsiveBlastWaveL,Moccasin,TrInstant,TrFade<100>,EFFECT_CLASH>,Int<300>,Int<100>,Int<300>,Scale,Int<10000>,Int<30000>>,Int<10000>,EFFECT_CLASH>,LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Red,Orange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,EffectSequence>,AlphaL>,AlphaL>,AlphaL>>,InOutTrL,TrWipeIn<500>,Black>,AlphaL>,Int<0>,Scale,Int<7500>>>>>>(), "green"}, { "Unstable", "tracks/KyloTheme.wav", StylePtr,StyleFire,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>,StyleFire,RotateColorsX>,300>,Mix,RotateColorsX>,RotateColorsX>>,0,8,FireConfig<10,1200,1>,FireConfig<10,1200,1>,FireConfig<10,1200,1>,FireConfig<10,1200,1>>>,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,Red>,Stripes<1500,-2500,White,Red>>,Int<18000>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastWaveL,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveBlastWaveL,EFFECT_CLASH>,Int<300>,Int<100>,Int<300>,Scale,Int<10000>,Int<30000>>,Int<10000>,EFFECT_CLASH>,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,TrWipeIn<500>,Black>,AlphaL>,Int<0>,Scale,Int<7500>>>>>>(), "unstable"}, { "Battle", "tracks/track4.wav", StylePtr>,AlphaL,White>,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,NavajoWhite,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat,TrWipeIn<100>>,TransitionEffect,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrJoinR,TrWipeIn<100>>>,SaberBase::LOCKUP_NORMAL>,LockupTrL,White,50,1>,Rgb<75,75,150>>,RandomPerLEDFlicker,Rgb<100,100,150>>>,TrWipe<200>,TrWipe<200>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastFadeL,Scale,Int<10000>,Int<18000>>>,ResponsiveBlastFadeL,Int<4000>,Int<10000>>>,ResponsiveBlastWaveL,NavajoWhite,TrInstant,TrFade<100>,EFFECT_CLASH>,Int<300>,Int<100>,Int<300>,Scale,Int<10000>,Int<30000>>,Int<10000>,EFFECT_CLASH>,TransitionEffectL,TrFade<800>>,EFFECT_IGNITION>,TransitionEffectL,TrFade<1000>>,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>,EffectSequence>,AlphaL>,AlphaL>,AlphaL>>,InOutTrL>,Int<400>,Int<300>,Int<400>,Int<32768>>,Mix,Int<-2000>>,Black,RotateColorsX>>,TrWaveX>,Int<350>,Int<300>,Int<350>,Int<32768>>,Mix,Int<-2000>>,Black,RotateColorsX>>,TrWaveX>,Int<300>,Int<300>,Int<300>,Int<32768>>,Mix,Int<-2000>>,Black,RotateColorsX>>,TrWaveX>,Int<250>,Int<300>,Int<250>,Int<32768>>,Mix,Int<-2000>>,Black,RotateColorsX>>,TrWaveX>,Int<200>,Int<300>,Int<200>,Int<32768>>,Mix,Int<-2000>>,Black,RotateColorsX>>,TrWipeIn<200>,Mix,Int<-2000>>,Black,RotateColorsX>>,TrFade<300>>,TrConcat,Mix,Int<-2000>>,Black,RotateColorsX>>,TrWaveX>,Int<200>,Int<300>,Int<200>,Int<0>>,Mix,Int<-2000>>,Black,RotateColorsX>>,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>,Black>,AlphaL>,Int<0>,Scale,Int<7500>>>>>>(), "purple"}, { "Shock", "tracks/track1.wav", StylePtr,Black,300>,Stripes<3000,-4000,Rgb<50,50,75>,Rgb<100,100,150>,Rgb<10,10,15>,Rgb<150,150,225>>,200>,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,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,TrConcat>,TrWaveX,Int<100>,Int<400>,Scale,Scale,Int<4000>,Int<26000>>,Int<6000>>>>,SaberBase::LOCKUP_NORMAL>,LockupTrL>,Int<3000>,Int<16000>>,Scale>,Int<14000>,Int<8000>>>,Bump>,Int<26000>,Int<8000>>,Scale,Int<10000>>>,Bump>,Int<20000>,Int<30000>>,Scale>,Int<8000>>,Scale,Int<0>>,Int<0>>>>>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL,TrWipe<600>>,EffectSequence,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>>,Layers,EFFECT_BLAST>,Scale,Int<10000>,Int<18000>>>,ResponsiveBlastFadeL,EFFECT_BLAST>,Scale,Int<4000>,Int<10000>>>,ResponsiveBlastWaveL,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>,Int<400>>,BlastL,EFFECT_BLAST>>,ResponsiveBlastL,EFFECT_BLAST>>>>,ResponsiveClashL,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>,EffectSequence>,AlphaL>,AlphaL>,AlphaL>>,InOutTrL,TrWipeIn<551>>,TrJoin,TrWipeIn<470>>,Black>,TransitionEffectL>,Rgb<100,100,150>,300>,LayerFunctions,Int<10000>>,Bump,Int<10000>>>>,TrDelay<800>>,EFFECT_PREON>,AlphaL>,Int<0>,Scale,Int<7500>>>>>>(), "shock"}, { "UnstableV1", "tracks/KyloTheme.wav", StyleFirePtr(), "blue fire"}, { "Millenium", "tracks/Falcon.wav", StylePtr,RotateColorsX,20>,AlphaL,Int<0>>,Stripes<2000,3000,AudioFlicker>,RotateColorsX>,AudioFlicker,White>,Rgb<50,50,75>>,Stripes<2000,-3000,AudioFlicker>,Rgb<0,0,30>,AudioFlicker,White>,Rgb<50,50,75>>>,Int<18000>>,AlphaL>,Bump,Int<4000>>>>,TransitionEffectL>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,ResponsiveLockupL,50,1>,TrConcat>,TrFade<400>,Scale,Int<4000>,Int<26000>>,Int<6000>,Scale,Int<10000>,Int<14000>>>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL,Scale,Int<4000>,Int<26000>>,Int<6000>>,ResponsiveStabL,TrWipe<600>>,ResponsiveDragL>,TrWipeIn<400>,TrFade<400>>,ResponsiveMeltL,Red,Orange>,TrWipeIn<600>,TrSmoothFade<600>>,InOutTrL,TrWipeIn<500>>,TrJoinR,TrWipeIn<500>>,Black>,TransitionEffectL,TrWipeIn<500>>,Mix,Int<0>>,Stripes<2000,1500,Black,Rgb<100,100,150>>,Stripes<2000,-1500,Black,Rgb<100,100,150>>>,TrFade<3000>,Mix,Int<0>>,Stripes<1000,500,Black,Rgb<100,100,150>,Black>,Stripes<1000,-500,Black,Rgb<100,100,150>,Black>>,TrFade<2500>>,EFFECT_RETRACTION>,TransitionEffectL,TrWipeIn<500>>,Mix,Int<0>>,Stripes<1000,250,Black,Rgb<100,100,150>,Black>,Stripes<1000,-250,Black,Rgb<100,100,150>,Black>>,TrFade<2500>,Mix,Int<0>>,Stripes<2000,1500,Black,Rgb<100,100,150>>,Stripes<2000,-1500,Black,Rgb<100,100,150>>>,TrFade<3000>,Mix,Int<0>>,Stripes<2000,3000,AudioFlicker,Rgb<0,0,30>,AudioFlicker,Rgb<50,50,75>>,Stripes<2000,-3000,AudioFlicker,Rgb<0,0,30>,AudioFlicker,Rgb<50,50,75>>>,TrDelay<2000>>,EFFECT_PREON>>>(), "Falcon"}, { "RgueCmdr", "tracks/venus.wav", StyleFirePtr(), "fire"}, { "SmthFuzz", "tracks/mars.wav", StyleNormalPtr, Gradient, 300, 800>(), "gradient"}, { "Battle", "tracks/mercury.wav", StyleRainbowPtr<300, 800>(), "rainbow"}, { "SmthJedi", "tracks/mars.wav", &style_charging, "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS2811BladePtr<115, WS2811_ACTUALLY_800kHz | WS2811_GRB>(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif