#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 1 #define VOLUME 250 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 3.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define ENABLE_SERIAL #define COLOR_CHANGE_DIRECT #define DISABLE_DIAGNOSTIC_COMMANDS #define BC_THRUST_ON #define BC_TWIST_ON #define BC_TWIST_OFF #define BC_FORCE_PUSH #define FEMALE_TALKIE_VOICE #define VOLUME_MENU_CYCLE #define IDLE_OFF_TIME 60 * 5 * 1000 #define SPEAK_BLADE_ID #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE #endif #ifdef CONFIG_PROP #include "../props/saber_BC_buttons.h" #include "../sound/sound_library.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "Enginegrip;common", "Enginegrip/font.wav", StylePtr>,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,11,FireConfig<10,1750,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>, 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>,TrWaveX,Int<100>,Int<400>,Scale,Scale,Int<4000>,Int<26000>>,Int<6000>>>>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, AlphaL,SmoothStep>,Int<1000>,Int<3500>>,Int<-4000>>>, ResponsiveStabL, TransitionEffectL,Layers< AlphaL,Int<400>,Int<300>,Int<32768>>>>,SmoothStep,Int<-100>>>, AlphaL,Int<400>,Int<300>,Int<0>>>>,SmoothStep,Int<100>>>>,TrDelay<300>>,EFFECT_BLAST>, ResponsiveClashL,NavajoWhite,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>, TransitionEffectL,RandomPerLEDFlicker>,Black>,BrownNoiseFlicker>,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<1200>>,EFFECT_IGNITION>, 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>, EffectSequence>,AlphaL>,AlphaL>,AlphaL>>, InOutTrL,TrWipeIn<200>>,TrColorCycle<2250>>, TransitionEffectL,Int<10000>>>,TrFade<875>,AlphaL,Bump,Int<8000>>>,TrFade<1000>,AlphaL,Bump,Int<6000>>>,TrFade<1000>>,EFFECT_RETRACTION>, TransitionEffectL,Bump>>,TrDelay<2000>,AlphaL,Bump>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>, TransitionEffectL>,Int<100>,Int<200>,Int<75>,Int<32768>>,Black,TrDelay<50>>>,SmoothStep,Int<100>>>>,TrDelay<1220>>,EFFECT_PREON>, TransitionEffectL,AlphaL>,Bump,Int<4000>>>,TrFade<500>,AlphaL>>,Bump,Int<16000>>>,TrDelay<700>>,EFFECT_PREON>>> ()}, { "Coda;common", "tracks/venus.wav", StylePtr>,AudioFlicker,Stripes<5000,-90,RotateColorsX>,RotateColorsX>,RotateColorsX>,RotateColorsX>>>,AudioFlicker>,Stripes<5000,-90,RotateColorsX>,RotateColorsX>,RotateColorsX>,RotateColorsX>>>>, AlphaL,Black,300>,SwingSpeed<400>>, AlphaL,Black>,Black,RotateColorsX,Black>,SwingSpeed<525>>, 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>,30>,TrSmoothFade<875>>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, ResponsiveStabL>, 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>>>>, ResponsiveClashL,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>, TransitionEffectL>,RandomPerLEDFlicker>,Black>,BrownNoiseFlicker>,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<400>,Stripes<3000,-3500,RotateColorsX>,RandomPerLEDFlicker>,Black>,BrownNoiseFlicker>,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<450>,HumpFlickerL>,Int<19000>>,25>,TrFade<2875>>,EFFECT_IGNITION>, TransitionEffectL,RotateColorsX>,TrInstant>,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,TrWipeIn<1125>>, TransitionEffectL,Bump>>,TrDelay<2000>,AlphaL,Bump>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>, TransitionEffectL,AlphaL,10>,Bump,Int<3000>>>,TrFade<350>,AlphaL,15>,Bump,Int<5000>>>,TrFade<450>,AlphaL,20>,Bump,Int<7000>>>,TrFade<500>,AlphaL,25>,Bump,Int<10500>>>,TrBoing<150,1>>,EFFECT_PREON> >>(), "coda"}, { "Apocalypse;common", "Apocalypse/font.wav", StylePtr,Int<6000>,Int<24000>>,Int<10000>>,Mix>,StyleFire,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>,StyleFire,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>>,HumpFlicker,RotateColorsX>,40>>, AlphaL>>,SwingSpeed<350>>,SmoothStep,Int<29000>,Int<9500>>,Int<16000>>>, 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,StyleFire,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>,TrFade<50>,RotateColorsX>,TrFade<525>,StyleFire,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>,TrFade<50>,RotateColorsX>,TrFade<250>,StyleFire,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>,TrFade<100>,RotateColorsX>,TrBoing<950,3>>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, ResponsiveStabL>, 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>>>>, ResponsiveClashL,Moccasin,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>, TransitionEffectL,RandomPerLEDFlicker>,Black>,BrownNoiseFlicker,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<2500>,Stripes<3000,-2250,RotateColorsX,RandomPerLEDFlicker>,RotateColorsX>>,BrownNoiseFlicker,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<1000>,Stripes<3000,-1500,RotateColorsX>,RandomPerLEDFlicker>,RotateColorsX>>,BrownNoiseFlicker,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<2500>>,EFFECT_IGNITION>, TransitionEffectL>,40>,TrFade<500>>,EFFECT_RETRACTION>, 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,TrColorCycle<500>>, TransitionEffectL>,SmoothStep>,Int<500>,Int<5500>>,Int<-4000>>>,TrFade<1100>>,EFFECT_RETRACTION>, TransitionEffectL,Int<10000>>>,TrFade<1600>,AlphaL,Bump,Int<8000>>>,TrFade<1400>,AlphaL,Bump,Int<6000>>>,TrFade<1000>>,EFFECT_RETRACTION>, TransitionEffectL,Int<2000>,Int<1000>>,BrownNoiseFlicker,100>,RandomPerLEDFlicker,RotateColorsX>>,BrownNoiseFlicker,RotateColorsX,RotateColorsX>>,DarkOrange,50>>,SmoothStep,Int<25000>>,Int<-4000>>>,TrDelay<6500>>,EFFECT_PREON>, TransitionEffectL,TransitionLoopL,Int<115>,Int<400>,Int<250>,Int<0>>>,TrDelay<1000>,TransitionLoopL,Int<215>,Int<300>,Int<395>,Int<0>>>,TrDelay<1500>,TransitionLoopL,Int<345>,Int<200>,Int<500>,Int<0>>>,TrDelay<1500>,AlphaL,Bump,Int<6000>>>,TrBoing<500,2>>,EFFECT_PREON>, TransitionEffectL,AlphaL,10>,Bump,Int<4000>>>,TrFade<2000>,AlphaL,15>,Bump,Int<5000>>>,TrFade<2500>,AlphaL,Bump,Int<6000>>>,TrBoing<500,2>>,EFFECT_PREON> >>()}, { "Crispity-Cosmod;common", "Crispity-Cosmod/font.wav", StylePtr,RandomPerLEDFlicker>,RotateColorsX>>,300>,RotateColorsX>,0,6,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>,FireConfig<10,1000,2>>, TransitionEffectL,AlphaL,SwingSpeed<400>>,TrDelay<30000>,AlphaL,SwingSpeed<400>>,TrFade<800>>,EFFECT_FORCE>, AlphaL>,SwingSpeed<400>>, 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>,TrWaveX,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,Int<300>,Int<100>,Int<400>,Scale,Scale,Int<4000>,Int<26000>>,Int<6000>>>>,SaberBase::LOCKUP_NORMAL>, ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>, AlphaL,SmoothStep>,Int<1500>,Int<4500>>,Int<-6000>>>, ResponsiveStabL, EffectSequence>,TrFade<300>>,EFFECT_BLAST>,ResponsiveBlastL,Scale,Int<100>,Int<400>>>,ResponsiveBlastWaveL,Int<500>,Int<200>>,Scale,Int<100>,Int<400>>>,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>>>>, ResponsiveClashL,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>, TransitionEffectL>,RandomPerLEDFlicker>,Black>,BrownNoiseFlicker,RotateColorsX>,200>,RandomPerLEDFlicker>,RotateColorsX>>>,TrFade<1200>>,EFFECT_IGNITION>, AlphaL,SmoothStep>,Int<31000>,Int<33000>>,Int<5000>>>, LockupTrL>,SmoothStep,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>, LockupTrL,Rgb<0,200,255>,DarkOrange>,SmoothStep,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>, EffectSequence>,AlphaL>,AlphaL>,AlphaL>>, InOutTrL,TrColorCycle<1065>>, TransitionEffectL,Bump>>,TrDelay<2000>,AlphaL,Bump>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>, TransitionEffectL,Int<1000>,Int<500>>,Int<70>,Int<550>>>,RotateColorsX,RotateColorsX>>,Bump,Int<1000>,Int<500>>,Int<41000>,Int<32768>>>>,TrDelay<3000>>,EFFECT_PREON>, TransitionEffectL,Bump,Int<4000>>>,TrFade<520>>,TrWaveX,Int<520>,Int<550>,Int<520>,Int<0>>>,AlphaL>,TrJoin>,Bump,Int<4000>>>,TrFade<420>>,TrWaveX>,Int<420>,Int<450>,Int<420>,Int<0>>>,AlphaL>,TrJoin,Bump,Int<4000>>>,TrFade<340>>,TrWaveX,Int<340>,Int<430>,Int<340>,Int<0>>>,AlphaL>,TrJoin>,Bump,Int<4000>>>,TrFade<300>>,TrWaveX>,Int<300>,Int<400>,Int<300>,Int<0>>>,AlphaL>,TrJoin,Bump,Int<4000>>>,TrFade<240>>,TrWaveX,Int<240>,Int<380>,Int<240>,Int<0>>>,AlphaL>,TrJoin>,Bump,Int<4000>>>,TrFade<210>>,TrWaveX>,Int<210>,Int<360>,Int<210>,Int<0>>>,AlphaL>,TrJoin,Bump,Int<4000>>>,TrFade<190>>,TrWaveX,Int<190>,Int<340>,Int<190>,Int<0>>>,AlphaL>,TrJoin>,Bump,Int<4000>>>,TrFade<170>>,TrWaveX>,Int<170>,Int<320>,Int<170>,Int<0>>>,AlphaL>,TrJoin,Bump,Int<4000>>>,TrFade<160>>,TrWaveX,Int<160>,Int<300>,Int<160>,Int<0>>>,AlphaL>,TrJoin>,Bump,Int<4000>>>,TrFade<150>>,TrWaveX>,Int<150>,Int<250>,Int<150>,Int<0>>>,AlphaL>,TrJoin,Bump,Int<4000>>>,TrFade<130>>,TrWaveX,Int<130>,Int<150>,Int<130>,Int<0>>>,AlphaL>,TrJoin>,Bump,Int<4000>>>,TrFade<100>>,TrWaveX>,Int<100>,Int<100>,Int<100>,Int<0>>>,AlphaL>,TrJoin,Bump,Int<4000>>>,TrFade<70>>,TrWaveX,Int<70>,Int<500>,Int<70>,Int<0>>>,Black,TrInstant>,EFFECT_PREON> >>()}, { "Batt00;common", "tracks/cantina.wav", &style_charging, "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); #endif