#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 3 #define NUM_BUTTONS 1 #define VOLUME 1750 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 4.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define SAVE_STATE #define IDLE_OFF_TIME 15 * 60 * 1000 #endif #ifdef CONFIG_PROP #include "../props/saber_sa22c_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "Atton", "tracks/track3.wav", StylePtr>,RotateColorsX>>,TransitionLoopL,40>,Int<250>,Int<100>,Int<200>,Int<0>>>,TransitionLoopL,40>,Int<350>,Int<100>,Int<300>,Int<0>>>>,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,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,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,TrWipe<600>>,ResponsiveBlastL,Moccasin,TrInstant,TrFade<50>,EFFECT_BLAST>,Int<400>,Scale,Int<100>,Int<400>>>,ResponsiveClashL,Moccasin,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>,Black>,TransitionEffectL>,SmoothStep>,Int<1000>,Int<4000>>,Int<-4000>>>,TrDelay<2000>>,EFFECT_RETRACTION>,TransitionEffectL,AlphaL,10>,Bump,Int<4000>>>,TrFade<2950>,AlphaL,15>,Bump,Int<5000>>>,TrFade<3000>,AlphaL,20>,Bump,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(), StylePtr,RotateColorsX>,250>, ResponsiveLockupL>, ResponsiveLightningBlockL, ResponsiveClashL,Int<26000>>, InOutTrL,TrFade<500>, Pulsing,RotateColorsX>,2500>> >>(), StylePtr>,15,125,AudioFlicker,RotateColorsX>,88,3000,1000>>(), "cyan"}, { "Huntress", "tracks/track1.wav", StylePtr,RotateColorsX>,RotateColorsX>,RotateColorsX>>,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,TrInstant,TrFade<200>,EFFECT_LOCKUP_BEGIN>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL,50,1>,TrConcat,Int<18000>>>,TrFade<200>>,TrConcat>,30>,TrSmoothFade<600>>>,AlphaL,Int<8000>>>,ResponsiveStabL,TrWipe<600>>,ResponsiveBlastL,Scale,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL,Moccasin,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>,Black>,TransitionEffectL,Int<10000>>>,TrFade<3000>,AlphaL,Int<8000>>>,TrFade<3000>,AlphaL,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,TransitionEffectL,AlphaL,Bump,Int<4000>>>,TrFade<2950>,AlphaL,Bump,Int<5000>>>,TrFade<3000>,AlphaL,Bump,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(), StylePtr,RotateColorsX>,250>, ResponsiveLockupL>, ResponsiveLightningBlockL, ResponsiveClashL,Int<26000>>, InOutTrL,TrFade<500>, Pulsing,RotateColorsX>,2500>> >>(), StylePtr>>,15,125,AudioFlicker>,RotateColorsX>,88,3000,1000>>(), "green"}, { "Battery", "tracks/mars.wav", &style_charging, StylePtr,15,200,AudioFlicker,RotateColorsX>,88,3000,1000>>(), StylePtr,15,200,AudioFlicker,RotateColorsX>,88,3000,1000>>(), "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS281XBladePtr<130, bladePin, Color8::GRB, PowerPINS >(), SubBlade(0,3, WS281XBladePtr<16, blade4Pin, Color8::GRB, PowerPINS >()), SubBlade(4,7, NULL) , CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); #endif