Hi, Ive got a problem getting battery level to work, the chassis is removable and if you flip it 180 and insert, power and aux switch buttons.
Theres’s accent Leds on the chassis that light up.
I used Fett’s OS7 library for main blade and accents. For the common file used No Sloppy’s awesome Anakin HC sound pack.
When I try battery level there’s no response, the saber won’t respond, and I have to reset the battery to get it working again.
Volume works fine just had to copy volume files to the font folder.
If I try to color change with blade on it will beep and twisting to select color also freezes the saber, is this related?
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 2
#define VOLUME 2500
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 3.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define ENABLE_ALL_EDIT_OPTIONS
#define ENABLE_SERIAL
#define FETT263_EDIT_MODE_MENU
#define MOTION_TIMEOUT 60 * 10 * 1000 // keeps motion chip active for 10 minutes while blade is Off
#define IDLE_OFF_TIME 60 * 10 * 1000
#define COLOR_CHANGE_DIRECT
#define DISABLE_DIAGNOSTIC_COMMANDS
#define DISABLE_BASIC_PARSER_STYLES
#define NO_REPEAT_RANDOM
#define FETT263_THRUST_ON // enables Thrust On Ignition
#define FETT263_THRUST_ON_NO_BM
#define FETT263_SWING_ON // enables Swing On Ignition
#define FETT263_SWING_ON_NO_BM
#define FETT263_SWING_ON_SPEED 350
#define FETT263_TWIST_ON // enables Twist On Ignition
#define FETT263_TWIST_ON_NO_BM
#define FETT263_TWIST_OFF // enables Twist Off Retraction
#define FETT263_MAX_CLASH 16
#define FETT263_SAY_COLOR_LIST
#define FETT263_SAY_COLOR_LIST_CC
#define FETT263_SAY_BATTERY_PERCENT
#define FETT263_MOTION_WAKE_POWER_BUTTON
#define FETT263_QUOTE_PLAYER_START_ON
#define SAVE_STATE
#define FETT263_FORCE_PUSH_LENGTH 5
#define FETT263_SPECIAL_ABILITIES
#define FETT263_DISABLE_CHANGE_STYLE
#define FETT263_DISABLE_CHANGE_FONT
#define FETT263_DISABLE_COPY_PRESET
#define FETT263_SAVE_GESTURE_OFF
#endif
#ifdef CONFIG_PROP
#include"../props/saber_fett263_buttons.h"
#endif
#ifdef CONFIG_PRESETS
Preset presets[] = {
{ "Anakin;common", "Anakin/tracks/temple march.wav",
/* copyright Fett263 CustomBlade (Primary Blade) OS7 Style
https://www.fett263.com/fett263-proffieOS7-style-library.html#CustomBlade
OS7.14 v3.01p
This Style Contains 16 Unique Combinations
Multi Phase (Original - Color Change) Transition: Smooth Fade, Time: 2000
Default: Hyper Responsive Rotoscope (Prequels) [BaseColorArg]
1: Hyper Responsive Rotoscope (Erratic) [AltColorArg]
Multi Phase Control: use Color Change with COLOR_CHANGE_DIRECT define (to enable click-to-change).
--Effects Included--
Ignition Effect Options: Default (0): Standard Ignition, 1: SparkTip Ignition, 2: Stack, 3: Cycle Up [Color: IgnitionColorArg]
Retraction Effect Options: Default (0): Standard Retraction, 1: SparkTip Retraction, 2: Unstack, 3: Cycle Down [Color: RetractionColorArg]
Lockup Effect:
0: mainLockMulti0Shape - Begin: Real Clash - Style: Intensity Unstable Ripple - End: Dissipate
[Color: AltColor3Arg]
Lightning Block Effect:
0: mainLBMulti0Shape - Begin: Responsive Impact - Style: Strobing Unstable Flicker - End: Dissipate
[Color: AltColor3Arg]
Drag Effect:
0: mainDragMulti0Shape - Begin: Wipe In - Style: Intensity Sparking Drag - End: Wipe Out
[Color: AltColor3Arg]
Melt Effect:
0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Melt - End: Wipe Out
[Color: AltColor3Arg]
Stab Effect: Normal Stab [Color: AltColor3Arg]
Blast Effect (Randomly Selected): Responsive Blast Wave (Random), Responsive Blast Fade (Sound Based), Responsive Blast Ripple [Color: AltColor3Arg]
Clash Effect: Real Clash V1 [Color: AltColor3Arg]
Battery Level: Blade Location (Green to Red)
*/
StylePtr<Layers<
Black,
ColorChange<TrSelect<Ifon<Int<1>,Int<0>>,TrInstant,TrDoEffect<TrSmoothFadeX<Int<2000>>,EFFECT_TRANSITION_SOUND>>,Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,RandomFlicker<StripesX<Int<24000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingAcceleration<100>,Int<50>,Int<300>>,Scale<SwingAcceleration<100>,Int<24000>,Int<16000>>>,Int<-1400>,Int<-100>>,RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<BASE_COLOR_ARG,Blue>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Blue>>,RgbArg<BASE_COLOR_ARG,Blue>,Mix<Int<19276>,Black,RgbArg<BASE_COLOR_ARG,Blue>>>,RgbArg<BASE_COLOR_ARG,Blue>>,RgbArg<BASE_COLOR_ARG,Blue>>,Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,Mix<Scale<IsLessThan<SlowNoise<Int<2000>>,Int<18000>>,Int<0>,Int<32768>>,RgbArg<ALT_COLOR_ARG,Red>,Stripes<12000,-800,RgbArg<ALT_COLOR_ARG,Red>,RgbArg<ALT_COLOR_ARG,Red>,Mix<Int<7710>,Black,RgbArg<ALT_COLOR_ARG,Red>>,RgbArg<ALT_COLOR_ARG,Red>,Mix<Int<16448>,Black,RgbArg<ALT_COLOR_ARG,Red>>>>,RgbArg<ALT_COLOR_ARG,Red>>>,
TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,
TransitionEffectL<TrRandom<TrWaveX<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Int<100>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Scale<BladeAngle<>,Int<28000>,Int<8000>>>,TrConcat<TrInstant,AlphaMixL<Bump<Scale<BladeAngle<>,Int<28000>,Int<8000>>,Scale<WavLen<>,Int<9000>,Int<13000>>>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<16384>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,TrFade<300>>,TrConcat<TrInstant,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Bump<Scale<BladeAngle<>,Int<3000>,Int<29000>>,Int<6000>>>,TrCenterWipeX<Int<100>,Scale<BladeAngle<>,Int<3000>,Int<29000>>>,Remap<CenterDistF<Scale<BladeAngle<>,Int<3000>,Int<29000>>>,Stripes<1600,-2000,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<2096>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,TrCenterWipeX<Int<100>,Scale<BladeAngle<>,Int<3000>,Int<29000>>>>>,EFFECT_BLAST>,
Mix<IsLessThan<ClashImpactF<>,Int<26000>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,TransitionEffectL<TrWaveX<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>>,
LockupTrL<TransitionEffect<AlphaL<Remap<CenterDistF<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,Stripes<2000,-3200,RandomPerLEDFlicker<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<14000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,Mix<Int<18000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>,Mix<Int<8000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<15000>,Int<23000>>>>,AlphaL<Remap<CenterDistF<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,Stripes<1600,-2600,RandomPerLEDFlicker<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<14000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,Mix<Int<18000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>,Mix<Int<8000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<15000>,Int<19000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat<TrInstant,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Int<0>>,TrWaveX<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Int<300>,Int<100>,Int<400>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>>,SaberBase::LOCKUP_NORMAL>,
ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,White>,BrownNoiseFlickerL<RgbArg<LB_COLOR_ARG,White>,Int<300>>,50,1>,TrConcat<TrExtend<200,TrInstant>,AlphaL<RgbArg<LB_COLOR_ARG,White>,Bump<Scale<BladeAngle<>,Int<10000>,Int<21000>>,Int<10000>>>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,White>,TrFade<400>>>,
LockupTrL<AlphaL<TransitionEffect<RandomPerLEDFlickerL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>>,BrownNoiseFlickerL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Int<300>>,TrExtend<4000,TrInstant>,TrFade<4000>,EFFECT_DRAG_BEGIN>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG>,
LockupTrL<AlphaL<Stripes<2000,4000,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,Mix<Sin<Int<50>>,Black,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,Mix<Int<4096>,Black,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<HumpFlicker<Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,RotateColorsX<Int<3000>,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,100>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,
InOutTrL<TrSelect<IntArg<IGNITION_OPTION_ARG,0>,TrWipeX<BendTimePowInvX<IgnitionTime<0>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,White>,BendTimePowInvX<IgnitionTime<0>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrConcat<TrInstant,AlphaL<Black,SmoothStep<Int<6554>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>,AlphaL<Black,SmoothStep<Int<13108>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>,AlphaL<Black,SmoothStep<Int<19662>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>,AlphaL<Black,SmoothStep<Int<26216>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>>,TrColorCycleX<BendTimePowInvX<IgnitionTime<0>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>>,TrSelect<IntArg<RETRACTION_OPTION_ARG,0>,TrWipeInX<BendTimePowX<RetractionTime<>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RotateColorsX<Int<4096>,RgbArg<RETRACTION_COLOR_ARG,White>>,BendTimePowX<RetractionTime<>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,TrConcat<TrInstant,AlphaL<Black,SmoothStep<Int<26216>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8172>>>,AlphaL<Black,SmoothStep<Int<19662>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8172>>>,AlphaL<Black,SmoothStep<Int<13108>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8172>>>,AlphaL<Black,SmoothStep<Int<6554>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8192>>>>,TrColorCycleX<BendTimePowX<RetractionTime<>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>>>,
TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<BatteryLevel,Int<10000>>>,TrFade<300>>,EFFECT_BATTERY_LEVEL>>>(),
/* copyright Fett263 CustomBlade (Accent LED / PCB) OS7 Style
https://www.fett263.com/fett263-proffieOS7-style-library.html#CustomBlade
OS7.14 v3.01p
Single Style
Multi Phase (Original - Color Change) Transition: Fade, Time: 2000
Default: Hyper Responsive Rotoscope (Prequels) [BaseColorArg]
1: Hyper Responsive Rotoscope (Erratic) [AltColorArg]
Off Behavior: Off [Color: OffColorArg]
Multi Phase Control: use Color Change with COLOR_CHANGE_DIRECT define (to enable click-to-change).
--Effects Included--
Ignition Effect: Instant [Color: IgnitionColorArg]
Retraction Effect: Instant [Color: RetractionColorArg]
Lockup Effect: NoneLightning Block Effect: NoneDrag Effect:
0: accentDragMulti0Shape - Begin: Wipe In - Style: Intensity Sparking Drag - End: Wipe Out
[Color: DragColorArg]
Melt Effect:
0: accentMeltMulti0Shape - Begin: Wipe In - Style: Intensity Melt - End: Wipe Out
[Color: StabColorArg]
Battery Level: Full Blade (Green to Red)
*/
StylePtr<Layers<
Black,
ColorChange<TrSelect<Ifon<Int<1>,Int<0>>,TrInstant,TrDoEffect<TrSmoothFadeX<Int<2000>>,EFFECT_TRANSITION_SOUND>>,Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,RandomFlicker<StripesX<Int<24000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingAcceleration<100>,Int<50>,Int<300>>,Scale<SwingAcceleration<100>,Int<24000>,Int<16000>>>,Int<-1400>,Int<-100>>,RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<BASE_COLOR_ARG,Blue>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Blue>>,RgbArg<BASE_COLOR_ARG,Blue>,Mix<Int<19276>,Black,RgbArg<BASE_COLOR_ARG,Blue>>>,RgbArg<BASE_COLOR_ARG,Blue>>,RgbArg<BASE_COLOR_ARG,Blue>>,Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,Mix<Scale<IsLessThan<SlowNoise<Int<2000>>,Int<18000>>,Int<0>,Int<32768>>,RgbArg<ALT_COLOR_ARG,Red>,Stripes<12000,-800,RgbArg<ALT_COLOR_ARG,Red>,RgbArg<ALT_COLOR_ARG,Red>,Mix<Int<7710>,Black,RgbArg<ALT_COLOR_ARG,Red>>,RgbArg<ALT_COLOR_ARG,Red>,Mix<Int<16448>,Black,RgbArg<ALT_COLOR_ARG,Red>>>>,RgbArg<ALT_COLOR_ARG,Red>>>,
TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,
TransitionEffectL<TrRandom<TrWaveX<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Int<100>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Scale<BladeAngle<>,Int<28000>,Int<8000>>>,TrConcat<TrInstant,AlphaMixL<Bump<Scale<BladeAngle<>,Int<28000>,Int<8000>>,Scale<WavLen<>,Int<9000>,Int<13000>>>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<16384>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,TrFade<300>>,TrConcat<TrInstant,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Bump<Scale<BladeAngle<>,Int<3000>,Int<29000>>,Int<6000>>>,TrCenterWipeX<Int<100>,Scale<BladeAngle<>,Int<3000>,Int<29000>>>,Remap<CenterDistF<Scale<BladeAngle<>,Int<3000>,Int<29000>>>,Stripes<1600,-2000,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<2096>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,TrCenterWipeX<Int<100>,Scale<BladeAngle<>,Int<3000>,Int<29000>>>>>,EFFECT_BLAST>,
Mix<IsLessThan<ClashImpactF<>,Int<26000>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,TransitionEffectL<TrWaveX<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>>,
LockupTrL<TransitionEffect<AlphaL<Remap<CenterDistF<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,Stripes<2000,-3200,RandomPerLEDFlicker<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<14000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,Mix<Int<18000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>,Mix<Int<8000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<15000>,Int<23000>>>>,AlphaL<Remap<CenterDistF<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,Stripes<1600,-2600,RandomPerLEDFlicker<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Mix<Int<14000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,Mix<Int<18000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>,Mix<Int<8000>,Black,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<15000>,Int<19000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat<TrInstant,AlphaL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Int<0>>,TrWaveX<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Int<300>,Int<100>,Int<400>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>>,SaberBase::LOCKUP_NORMAL>,
ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,White>,BrownNoiseFlickerL<RgbArg<LB_COLOR_ARG,White>,Int<300>>,50,1>,TrConcat<TrExtend<200,TrInstant>,AlphaL<RgbArg<LB_COLOR_ARG,White>,Bump<Scale<BladeAngle<>,Int<10000>,Int<21000>>,Int<10000>>>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,White>,TrFade<400>>>,
LockupTrL<AlphaL<TransitionEffect<RandomPerLEDFlickerL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>>,BrownNoiseFlickerL<RgbArg<ALT_COLOR3_ARG,NavajoWhite>,Int<300>>,TrExtend<4000,TrInstant>,TrFade<4000>,EFFECT_DRAG_BEGIN>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG>,
LockupTrL<AlphaL<Stripes<2000,4000,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,Mix<Sin<Int<50>>,Black,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,Mix<Int<4096>,Black,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<HumpFlicker<Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>,RotateColorsX<Int<3000>,Mix<TwistAngle<>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>,RotateColorsX<Int<3000>,RgbArg<ALT_COLOR3_ARG,NavajoWhite>>>>,100>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,
InOutTrL<TrSelect<IntArg<IGNITION_OPTION_ARG,0>,TrWipeX<BendTimePowInvX<IgnitionTime<0>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,White>,BendTimePowInvX<IgnitionTime<0>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrConcat<TrInstant,AlphaL<Black,SmoothStep<Int<6554>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>,AlphaL<Black,SmoothStep<Int<13108>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>,AlphaL<Black,SmoothStep<Int<19662>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>,AlphaL<Black,SmoothStep<Int<26216>,Int<0>>>,TrDelayX<Mult<IgnitionTime<0>,Int<8192>>>>,TrColorCycleX<BendTimePowInvX<IgnitionTime<0>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>>,TrSelect<IntArg<RETRACTION_OPTION_ARG,0>,TrWipeInX<BendTimePowX<RetractionTime<>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RotateColorsX<Int<4096>,RgbArg<RETRACTION_COLOR_ARG,White>>,BendTimePowX<RetractionTime<>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,TrConcat<TrInstant,AlphaL<Black,SmoothStep<Int<26216>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8172>>>,AlphaL<Black,SmoothStep<Int<19662>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8172>>>,AlphaL<Black,SmoothStep<Int<13108>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8172>>>,AlphaL<Black,SmoothStep<Int<6554>,Int<0>>>,TrDelayX<Mult<RetractionTime<>,Int<8192>>>>,TrColorCycleX<BendTimePowX<RetractionTime<>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>>>,
TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<BatteryLevel,Int<10000>>>,TrFade<300>>,EFFECT_BATTERY_LEVEL>>>(), "Anakin"},
};
BladeConfig blades[] = {
{ 0, WS281XBladePtr<128, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
WS281XBladePtr<6, bladePin, Color8::GRB, PowerPINS<bladePowerPin5, bladePowerPin6> >()
, CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif'''
Thanks