#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 3 #define NUM_BUTTONS 2 #define VOLUME 800 const unsigned int maxLedsPerStrip = 124; #define CLASH_THRESHOLD_G 1.2 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define ENABLE_SSD1306 #define FETT263_SAY_BATTERY_PERCENT #endif #ifdef CONFIG_PROP #include "../props/saber_fett263_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "Emperor;common", "Emperor/font.wav", /* copyright Fett263 KyloRen (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#KyloRen OS6.7 v4.021 Single Style Base Style: Kylo Ren Unstable (Supreme Leader) Base Color: Rgb<118,0,194> (Color Shift (Rotating) = Shift: 4236, Speed: 20) --Effects Included-- Ignition Effect: Standard Ignition PowerUp Effect: Unstable Power Up Forward Retraction Effect: Standard Retraction 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,Scale>,Int<-3000>,Int<-5000>>,Mix>,RgbArg>,RotateColorsX,RgbArg>>>,Mix,Black,Mix>,RgbArg>,RotateColorsX,RgbArg>>>>,Mix>,RgbArg>,RotateColorsX,RgbArg>>>,Mix,Black,Mix>,RgbArg>,RotateColorsX,RgbArg>>>>,Mix>,RgbArg>,RotateColorsX,RgbArg>>>>,TransitionEffectL>,TrInstant>,Stripes<3000,-3500,RgbArg>,RandomPerLEDFlicker,Black,RgbArg>>,Black>,BrownNoiseFlicker>,Mix,Black,RgbArg>>,200>,RandomPerLEDFlicker,Black,RgbArg>>,Mix,Black,RgbArg>>>>,TrFade<800>>,EFFECT_IGNITION>,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>,TrWipeInX>,Black>>>(), //CRYSTAL STRIP /* copyright Fett263 (Accent LED / PCB) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#CustomBlade OS6.7 v4.021 Single Style On Behavior: Center Out Bar Graph Off Behavior: Slow Run Reverse Base Color: Rgb<255,0,75> (Gradient Color Up = Gradient: 4236) --Effects Included-- Ignition Effect: Instant Retraction Effect: Instant */ StylePtr,Gradient>,RotateColorsX,RgbArg>>>,TrCenterWipeIn<500>>>,InOutTrL,RgbArg>,TrWipeIn<1000>>>>>>(), //BUTTONS /* copyright Fett263 (Accent LED / PCB) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#CustomBlade OS6.7 v4.021 Single Style On Behavior: Slow Turbine Off Behavior: Solid Color Base Color: Rgb<255,0,0> (0) --Effects Included-- Ignition Effect: Instant Retraction Effect: Instant */ StylePtr>,25,100,RgbArg>,25,300,4000>,InOutTrL>>>>(), } }; BladeConfig blades[] = { { 0, //Main Blade WS281XBladePtr<124, bladePin, Color8::GRB, PowerPINS >(), //Crystal and Chassis Strip WS281XBladePtr<8, blade2Pin, Color8::GRB, PowerPINS >(), //Button LEDs WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS >(), //Crystal // WS281XBladePtr<10, blade4Pin, Color8::GRB, //PowerPINS >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif