#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 1800 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 8.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define ENABLE_SSD1306 #define ENABLE_SERIAL #define DISABLE_DIAGNOSTIC_COMMANDS #define DISABLE_BASIC_PARSER_STYLES #define SAVE_STATE #define NO_REPEAT_RANDOM #define COLOR_CHANGE_DIRECT #define IDLE_OFF_TIME 60 * 2 * 1000 #define FETT263_MOTION_WAKE_POWER_BUTTON #define FETT263_FORCE_PUSH_ALWAYS_ON #define FETT263_FORCE_PUSH_LENGTH 3 #define FETT263_THRUST_ON #define FETT263_THRUST_ON_NO_BM #define FETT263_TWIST_OFF #define FETT263_EFFECT_BATTERY_LEVEL #define FETT263_SAY_BATTERY_PERCENT #define FETT263_SAY_COLOR_LIST #define FETT263_SAY_COLOR_LIST_CC #define FETT263_HOLD_BUTTON_LOCKUP #endif #ifdef CONFIG_PROP #include "../props/saber_fett263_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { {"ESBFATHER;common","ESBFATHER/tracks/track4.wav", /* copyright Fett263 FallenOrder (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#FallenOrder OS6.7 v4.0181 Single Style Base Style: Fallen Order Second Sister Base Color: Rgb<255,0,0> (0) --Effects Included-- Ignition Effect: Standard Ignition 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 Swing Effect: Force Rage Unstable Battery Level: % Blade (Green to Red) */ StylePtr,Scale>,Int<-3000>,Int<-5000>>,RgbArg>,Mix,Black,RgbArg>>,RgbArg>,Mix,Black,RgbArg>>,RgbArg>>,TransitionEffectL,TrFade<300>>,StripesX,Scale>,Int<-2500>,Int<-3500>>,RgbArg>,Mix,Black,RgbArg>>,RandomPerLEDFlicker,Black,RgbArg>>,RgbArg>>>,TrFade<300>>,EFFECT_FORCE>,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>,TransitionEffectL,TrWipe<1000>>,AlphaL,SmoothStep>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>(), , "RED SECOND SISTER" }, {"ESBFATHER;common","ESBFATHER/tracks/track4.wav", /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope OS6.7 v4.0181 This Style Contains 2 Unique Combinations Style Options: Default (0): Hyper Responsive Rotoscope (Original Trilogy) 1: Rotoscope - Two Color (Original Trilogy) Base Color: Rgb<255,0,0> (0) --Effects Included-- Ignition Effect: Standard Ignition 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 Swing Effect: Force Rage Unstable Battery Level: % Blade (Green to Red) */ StylePtr,TrInstant,Mix,Scale,Int<50>,Int<500>>,Scale,Int<20000>,Int<10000>>>,RandomFlicker,Scale,Scale,Int<50>,Int<300>>,Scale,Int<24000>,Int<16000>>>,Int<-3200>,Int<-200>>,RgbArg>,RgbArg>,Mix,Black,RgbArg>>,RgbArg>,Mix,Black,RgbArg>>>,RgbArg>>,RgbArg>>,RandomFlicker>,RgbArg>,RgbArg>,RgbArg>,Mix,Black,RgbArg>>>,RgbArg>>>,TransitionEffectL,TrFade<300>>,StripesX,Scale>,Int<-2500>,Int<-3500>>,RgbArg>,Mix,Black,RgbArg>>,RandomPerLEDFlicker,Black,RgbArg>>,RgbArg>>>,TrFade<300>>,EFFECT_FORCE>,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>,TransitionEffectL,TrWipe<1000>>,AlphaL,SmoothStep>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>(), , "Regular trilogy red" }, {"DYAD;common","DYAD/tracks/track2.wav", /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope OS6.7 v4.0181 This Style Contains 2 Unique Combinations Style Options: Default (0): Audio Rotoscope - Two Color (Sequels) 1: Hyper Responsive Rotoscope (Sequels) Base Color: Rgb<30,60,200> (0) --Effects Included-- Ignition Effect: SparkTip Ignition 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 Swing Effect: Force Rage Unstable Battery Level: % Blade (Green to Red) */ StylePtr,TrInstant,AudioFlicker>,RgbArg>,RgbArg>,RgbArg>,Mix,Black,RgbArg>>>,RgbArg>>,Mix,Scale,Int<50>,Int<500>>,Scale,Int<20000>,Int<10000>>>,RandomFlicker,Scale,Scale,Int<50>,Int<300>>,Scale,Int<24000>,Int<16000>>>,Int<-4000>,Int<-400>>,RgbArg>,RgbArg>,Mix,Black,RgbArg>>,RgbArg>,Mix,Black,RgbArg>>>,RgbArg>>,RgbArg>>>,TransitionEffectL,TrFade<300>>,StripesX,Scale>,Int<-2500>,Int<-3500>>,RgbArg>,Mix,Black,RgbArg>>,RandomPerLEDFlicker,Black,RgbArg>>,RgbArg>>>,TrFade<300>>,EFFECT_FORCE>,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>,IgnitionTime<300>>,TrWipeInX>,Black>,TransitionEffectL,TrWipe<1000>>,AlphaL,SmoothStep>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>(), , "SEQUILE TRILOGY" }, {"RETURNV2;common","RETURNV2/tracks/track1.wav",/* copyright Fett263 Rotoscope (Primary Blade) OS6 Style https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope OS6.7 v4.0181 Single Style Base Style: Hyper Responsive Rotoscope (Original Trilogy) Base Color: Rgb<0,255,0> (0) --Effects Included-- Ignition Effect: Standard Ignition 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<50>,Int<500>>,Scale,Int<20000>,Int<10000>>>,RandomFlicker,Scale,Scale,Int<50>,Int<300>>,Scale,Int<24000>,Int<16000>>>,Int<-3200>,Int<-200>>,RgbArg>,RgbArg>,Mix,Black,RgbArg>>,RgbArg>,Mix,Black,RgbArg>>>,RgbArg>>,RgbArg>>,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>>>(), , "Standard green" }; 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