/* Proffieboard V3 light stapler test config. */ #ifdef CONFIG_TOP #include "proffieboard_v3_config.h" #define NUM_BLADES 2 #define NUM_BUTTONS 2 #define VOLUME 300 const unsigned int maxLedsPerStrip = 124; #define CLASH_THRESHOLD_G 3.5 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SSD1306 #define ENABLE_SD #define SHARED_POWER_PINS #define SAVE_STATE #define BLADE_DETECT_PIN aux2Pin #define ENABLE_DEVELOPER_COMMANDS #define IDLE_OFF_TIME 60 * 2 * 1000 #define MOTION_TIMEOUT 60 * 1 * 1000 #define BLASTER_SHOTS_UNTIL_EMPTY 15 // (whatever number) #define BLASTER_JAM_PERCENTAGE 10 // if not defined, random. #endif #ifdef CONFIG_PROP #include "../props/dual_prop.h" #include "../props/saber.h" #undef PROP_TYPE #include "../props/blaster.h" #undef PROP_TYPE #define PROP_TYPE SaberBlasterProp //#include "../props/saber_fett263_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "PROTON;common", "PROTON/font.wav", /* copyright Fett263 Ghostbusters (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#Ghostbusters OS6.7 v4.0181 Single Style Base Style: Ghostbusters Particle Beam (Original) Base Color: Rgb<255,14,0> (0) --Effects Included-- Ignition Effect: Standard Ignition Retraction Effect: Run Up Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash, End Effect: Full Blade Absorb LightningBlock Effect: Responsive Lightning Block Drag Effect: Intensity Sparking Drag Melt Effect: Intensity Melt Blast Effect: Blast Wave (Random) Clash Effect: Real Clash V1 */ StylePtr,Int<-2000>>,Stripes<16000,-3900,RgbArg>,Mix,Black,RgbArg>>,Mix,Black,RgbArg>>,Stripes<2500,-3500,RgbArg>,RgbArg>,Blue,Mix,Black,RgbArg>>,DodgerBlue>>,White>,Blue,0,6,1,2000,3>,TransitionEffectL>,Scale,Int<100>,Int<400>>,Int<100>,Scale,Int<100>,Int<400>>,Scale,Int<28000>,Int<8000>>>,EFFECT_BLAST>,Mix,Int<26000>>,TransitionEffectL>,Bump,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Scale,Int<12000>,Int<60000>>>>,TrFadeX,Int<200>,Int<400>>>>,EFFECT_CLASH>,TransitionEffectL>,Scale,Int<100>,Int<400>>,Int<100>,Scale,Int<100>,Int<400>>,Scale,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>>,EFFECT_CLASH>>,LockupTrL,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Scale,Int<14000>,Int<18000>>>,BrownNoiseFlickerL>,Int<200>>,StripesX,Scale,Int<-5000>>,Mix,Black,RgbArg>>,RgbArg>,Mix,Black,RgbArg>>>>,AlphaL>,Mix,Black,RgbArg>>>,Bump,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Int<13000>>>,TrJoin,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat,TrInstant>,Mix,Int<26000>>,RgbArg>,AlphaL>,Bump,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Scale,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL>,AudioFlicker>,Blue>,50,1>,TrConcat>,Bump,Int<18000>>>,TrFade<200>>,TrConcat>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL>>,SmoothStep,Int<3000>>>,TrConcat,TrWipeIn<200>>,AlphaL>,Int<300>>,SmoothStep,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Int<0>>,StaticFire,RgbArg>,RotateColorsX,RgbArg>>>,Mix,RotateColorsX,RgbArg>>,RotateColorsX,Mix,Black,RgbArg>>>>,0,3,5,3000,10>>,SmoothStep,Int<4000>>>,TrConcat,AlphaL>,SmoothStep,Int<4000>>>,TrJoin,TrFade<300>>,AlphaL,RgbArg>,RotateColorsX,RgbArg>>>,SmoothStep,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL>,TrWipeX>,Black>>>(), /* copyright Fett263 (Accent LED / PCB) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#BlankBlade OS6.7 v4.021 Single Style On Behavior: Slow Run Forward Off Behavior: Slow Run Forward Base Color: Rgb<255,97,0> (0) --Effects Included-- Ignition Effect: Instant Retraction Effect: Instant */ StylePtr,RgbArg>,TrWipe<1000>>>,InOutTrL,RgbArg>,TrWipe<1000>>>>>>(), }, { "SLIME;common", "SLIME/font.wav", /* copyright Fett263 FireBlade (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#FireBlade OS6.7 v4.0181 Single Style Base Style: Fire Blade Medium (Normal) Base Color: Rgb<0,255,0> (0) --Effects Included-- Ignition Effect: Standard Ignition Retraction Effect: Run Up Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash, End Effect: Full Blade Absorb LightningBlock Effect: Responsive Lightning Block Drag Effect: Intensity Sparking Drag Melt Effect: Intensity Melt Blast Effect: Blast Wave (Random) Clash Effect: Real Clash V1 */ StylePtr>,Mix,Black,RgbArg>>,0,2,0,2000,3>,TransitionEffectL>,Scale,Int<100>,Int<400>>,Int<100>,Scale,Int<100>,Int<400>>,Scale,Int<28000>,Int<8000>>>,EFFECT_BLAST>,Mix,Int<26000>>,TransitionEffectL>,Bump,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Scale,Int<12000>,Int<60000>>>>,TrFadeX,Int<200>,Int<400>>>>,EFFECT_CLASH>,TransitionEffectL>,Scale,Int<100>,Int<400>>,Int<100>,Scale,Int<100>,Int<400>>,Scale,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>>,EFFECT_CLASH>>,LockupTrL,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Scale,Int<14000>,Int<18000>>>,BrownNoiseFlickerL>,Int<200>>,StripesX,Scale,Int<-5000>>,Mix,Black,RgbArg>>,RgbArg>,Mix,Black,RgbArg>>>>,AlphaL>,Mix,Black,RgbArg>>>,Bump,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Int<13000>>>,TrJoin,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat,TrInstant>,Mix,Int<26000>>,RgbArg>,AlphaL>,Bump,Scale,Sum,Int<-12000>>,Sum,Int<10000>>>,Sum,Int<-10000>>>,Scale,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL>,AudioFlicker>,Blue>,50,1>,TrConcat>,Bump,Int<18000>>>,TrFade<200>>,TrConcat>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL>>,SmoothStep,Int<3000>>>,TrConcat,TrWipeIn<200>>,AlphaL>,Int<300>>,SmoothStep,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL,Int<0>>,StaticFire,RgbArg>,RotateColorsX,RgbArg>>>,Mix,RotateColorsX,RgbArg>>,RotateColorsX,Mix,Black,RgbArg>>>>,0,3,5,3000,10>>,SmoothStep,Int<4000>>>,TrConcat,AlphaL>,SmoothStep,Int<4000>>>,TrJoin,TrFade<300>>,AlphaL,RgbArg>,RotateColorsX,RgbArg>>>,SmoothStep,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL>,TrWipeX>,Black>>>(), /* copyright Fett263 (Accent LED / PCB) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#BlankBlade OS6.7 v4.021 Single Style On Behavior: Slow Run Forward Off Behavior: Slow Run Forward Base Color: Rgb<255,97,0> (0) --Effects Included-- Ignition Effect: Instant Retraction Effect: Instant */ StylePtr,RgbArg>,TrWipe<1000>>>,InOutTrL,RgbArg>,TrWipe<1000>>>>>>(), }, }; BladeConfig blades[] = { { 0, WS281XBladePtr<124, bladePin, Color8::GRB, PowerPINS >(), WS281XBladePtr<11, blade2Pin, Color8::GRB, PowerPINS >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif