#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 1700 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 3.5 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define COLOR_CHANGE_DIRECT #define DISABLE_DIAGNOSTIC_COMMANDS #define FETT263_STAB_ON #define FETT263_THRUST_ON #define FETT263_TWIST_ON #define FETT263_TWIST_OFF #define FETT263_FORCE_PUSH #define IDLE_OFF_TIME 60*5*1000 #endif #ifdef CONFIG_PROP #include "../props/saber_fett263_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "OBIWAN", "tracks/BattleOfHeros.wav", StylePtr,TransitionEffectL,Int<13600>>,Scale,Int<-19300>,Int<32768>>,Int<0>>>,SmoothStep,Int<13600>>,Scale,Int<-19300>,Int<32768>>,Int<0>>,Int<28000>,Int<14000>>,Int<16000>>>,TrDelay<30000>>,EFFECT_FORCE>,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,NavajoWhite,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,Bump,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<20000>>>,TrFade<400>>,TrConcat,TrWipeIn<100>>,TransitionEffect,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrJoinR,TrWipeIn<100>>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastL,NavajoWhite,TrInstant,TrFade<50>,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>>,ResponsiveClashL,NavajoWhite,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>,EffectSequence>,AlphaL>,AlphaL>,AlphaL>>,InOutTrL,TrWipeInSparkTip,Black>,TransitionEffectL,AlphaL,SmoothStep>>,TrDelay<2000>,AlphaL,SmoothStep>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>()}, { "LUKE", "tracks/Luke.wav", StylePtr,RotateColorsX>>,TransitionEffectL,Int<13600>>,Scale,Int<-19300>,Int<32768>>,Int<0>>>,SmoothStep,Int<13600>>,Scale,Int<-19300>,Int<32768>>,Int<0>>,Int<28000>,Int<14000>>,Int<16000>>>,TrDelay<30000>>,EFFECT_FORCE>,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>,Bump,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<20000>>>,TrFade<400>>,TrConcat,TrWipeIn<100>>,TransitionEffect,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrJoinR,TrWipeIn<100>>>,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<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,TrWipeInSparkTip,Black>,TransitionEffectL,AlphaL,SmoothStep>>,TrDelay<2000>,AlphaL,SmoothStep>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>()}, { "VADER", "tracks/ImperialMarch.wav", StylePtr,TransitionEffectL,Int<13600>>,Scale,Int<-19300>,Int<32768>>,Int<0>>>,SmoothStep,Int<13600>>,Scale,Int<-19300>,Int<32768>>,Int<0>>,Int<28000>,Int<14000>>,Int<16000>>>,TrDelay<30000>>,EFFECT_FORCE>,EffectSequence>,AlphaL>,AlphaL>,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>,Bump,Scale,Int<10000>,Int<30000>>,Int<10000>>,Int<20000>>>,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>>,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<10000>,Int<30000>>,Int<10000>,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,AlphaL,SmoothStep>>,TrDelay<2000>,AlphaL,SmoothStep>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>()} }; BladeConfig blades[] = { { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif