Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef CONFIG_TOP
- #include "proffieboard_v2_config.h"
- #define NUM_BLADES 2
- #define NUM_BUTTONS 2
- #define VOLUME 1000
- const unsigned int maxLedsPerStrip = 130;
- #define CLASH_THRESHOLD_G 4
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define ENABLE_SERIAL
- #define DISABLE_DIAGNOSTIC_COMMANDS
- #define FETT263_MULTI_PHASE
- #define FETT263_SAY_BATTERY_PERCENT or FETT263_SAY_BATTERY_VOLTS
- #define IDLE_OFF_TIME 60 * 1 * 1000
- #define FETT263_TWIST_ON_NO_BM
- #define FETT263_TWIST_ON
- #define FETT263_TWIST_OFF
- #define FETT263_SWING_ON_SPEED 580
- #define FETT263_SWING_ON_NO_BM
- #define FETT263_SWING_ON
- #define MOTION_TIMEOUT 60 * 1 * 1000
- #define FETT263_MOTION_WAKE_POWER_BUTTON
- #define SAVE_PRESET
- #define FETT263_THRUST_ON
- #define RR1 Rgb<255,8,0>
- #define RR2 Rgb<120,4,0>
- #define RR3 Rgb<65,2,0>
- #define OO1 Rgb<255,33,0>
- #define OO2 Rgb<130,17,0>
- #define OO3 Rgb<61,8,0>
- #define YY1 Rgb<255,180,2>
- #define YY2 Rgb<125,88,1>
- #define YY3 Rgb<79,56,0>
- #define GG1 Rgb<10,255,0>
- #define GG2 Rgb<5,125,0>
- #define GG3 Rgb<3,73,0>
- #define LB1 Rgb<10,85,255>
- #define LB2 Rgb<6,45,140>
- #define LB3 Rgb<3,23,70>
- #define BB1 Rgb<8,35,255>
- #define BB2 Rgb<4,21,150>
- #define BB3 Rgb<2,11,75>
- #define WW1 Rgb<120,120,120>
- #define WW2 Rgb<60,60,60>
- #define WW3 Rgb<30,30,30>
- #define PP1 Rgb<120,0,255>
- #define PP2 Rgb<60,0,128>
- #define PP3 Rgb<30,0,64>
- // Max 20 characters
- #define BLE_PASSWORD "your password"
- // Max 32 characters.
- #define BLE_NAME "Your Saber Name"
- // Max 9 characters
- #define BLE_SHORTNAME "Saber"
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_fett263_buttons.h"
- #endif
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- {"Shan;common","",
- StylePtr<InOutHelper<Layers<
- HumpFlicker<BB1,BB2,40>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,270,630>>(),
- StylePtr<InOutHelper<ColorCycle<BB1,30,60>,300,800,Pulsing<Black,BB3,800>>>(),
- },
- {"The_ReturnV2;common","",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<GG1,GG2>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,310,800>>(),
- StylePtr<InOutHelper<ColorCycle<GG1,30,60>,300,800,Pulsing<Black,GG3,800>>>(),
- },
- {"Duke;common","",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<RR1,RR2>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,270,480>>(),
- StylePtr<InOutHelper<ColorCycle<RR1,30,60>,300,800,Pulsing<Black,RR3,800>>>(),
- },
- {"VTS;common","",
- StylePtr<Layers<
- InOutHelper<RandomFlicker<YY1,YY2>,320,520>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- BlastFadeoutL<AlphaL<Rgb<120,3,0>,Bump<Int<0>,Int<4384>>>,400,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<YY1,30,60>,300,800,Pulsing<Black,YY3,800>>>(),
- },
- {"CalJFO;common","",
- StylePtr<InOutHelper<Layers<
- Stripes<9000,-1400,Rgb<0,50,255>,Rgb<0,30,153>,Pulsing<Rgb<0,50,255>,Rgb<0,20,102>,800>>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,280,220>>(),
- StylePtr<InOutHelper<ColorCycle<BB1,30,60>,300,800,Pulsing<Black,BB3,800>>>(),
- },
- {"Mace;common","",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<PP1,PP2>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,300,610>>(),
- StylePtr<InOutHelper<ColorCycle<PP1,30,60>,300,800,Pulsing<Black,PP3,800>>>(),
- },
- {"The_Lost_One;common", "tracks/Ben.wav",
- StylePtr<InOutHelper<Layers<
- OnSpark<RandomFlicker<LB1,AudioFlicker<LB2,LB3>>,Rgb<205,255,255>,190>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,170,580>>(),
- StylePtr<InOutHelper<ColorCycle<LB1,30,60>,300,800,Pulsing<Black,LB3,800>>>(),
- },
- {"Halflex;common", "",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<Rgb<30,120,200>,Layers<Rgb<15,60,100>,AlphaL<Rgb<10,40,67>,SwingSpeed<350>>>>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,200,550>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<30,120,200>,30,60>,300,800,Pulsing<Black,Rgb<15,60,100>,800>>>(),
- },
- {"Krossguard_TROS;common", "",
- StylePtr<InOutHelper<Layers<
- OnSpark<Layers<
- BrownNoiseFlicker<Rgb<255,8,0>,Rgb<60,2,0>,50>,
- AlphaL<BrownNoiseFlicker<Rgb<255,8,0>,Rgb<25,0,0>,50>,SwingSpeed<350>>>,Rgb<255,110,100>,300>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,210,350>>(),
- StylePtr<InOutHelper<ColorCycle<RR1,30,60>,300,800,Pulsing<Black,RR3,800>>>(),
- },
- {"Final_Steps;common", "",
- StylePtr<Layers<
- InOutHelper<OnSpark<RandomFlicker<Rgb<250,160,6>,Rgb<125,80,3>>,Cyan,230>,275,460>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- SimpleClashL<AlphaL<ColorSequence<65,DeepSkyBlue,Green>,Bump<Int<0>,Int<2884>>>,200,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<250,160,6>,30,60>,300,800,Pulsing<Black,Rgb<125,80,3>,800>>>(),
- },
- {"Qui_Gone;common","",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<GG1,GG2>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,290,590>>(),
- StylePtr<InOutHelper<ColorCycle<GG1,30,60>,300,800,Pulsing<Black,GG3,800>>>(),
- },
- {"Crimson_Menace;common","",
- StylePtr<Layers<
- InOutHelper<RandomFlicker<RR1,RR2>,220,380>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- BlastFadeoutL<AlphaL<Rgb<120,3,0>,Bump<Int<0>,Int<4384>>>,400,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<RR1,30,60>,300,800,Pulsing<Black,RR3,800>>>(),
- },
- {"SorcererV2;common", "",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<WW1,WW2>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,400,520>>(),
- StylePtr<InOutHelper<ColorCycle<WW1,30,60>,300,800,Pulsing<Black,WW3,800>>>(),
- },
- {"Sun_Skoll;common","",
- StylePtr<InOutHelper<Layers<
- RandomFlicker<OO1,Pulsing<OO2,OO3,1500>>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,360,360>>(),
- StylePtr<InOutHelper<ColorCycle<OO1,30,60>,300,800,Pulsing<Black,OO3,800>>>(),
- },
- {"Huyang;common","",
- StylePtr<InOutTr<Layers<
- Stripes<180,0,RandomFlicker<Rgb<250,62,0>,Rgb<120,30,0>>,Rgb<12,3,0>,Rgb<12,3,0>>,
- LockupL<AudioFlickerL<Rgb<255,75,13>>,Rgb<255,75,13>>,
- BlastFadeoutL<Rgb<255,75,13>,350,EFFECT_CLASH>,
- BlastL<Rgb<255,75,13>,400,100,400,EFFECT_STAB>,
- BlastL<Rgb<255,75,13>>,
- AlphaL<Rgb<250,62,0>,SwingSpeed<300>>>,TrCenterWipe<340>,TrFade<360>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<120,30,0>,30,60>,300,800,Pulsing<Black,Rgb<120,30,0>,800>>>(),
- },
- {"Loth_Hero;common","",
- StylePtr<InOutHelper<Layers<
- OnSpark<RandomFlicker<GG1,Layers<
- GG2,
- AlphaL<GG3,SwingSpeed<320>>>>,Rgb<125,225,120>,330>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,290,750>>(),
- StylePtr<InOutHelper<ColorCycle<GG1,30,60>,300,800,Pulsing<Black,GG3,800>>>(),
- },
- {"Shock_Baton_Proffie;common","",
- StylePtr<InOutTr<Layers<
- Stripes<300,0,RandomFlicker<Rgb<130,130,130>,Rgb<50,50,50>>,Black,Black>,
- LockupL<AudioFlickerL<White>,White>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- AlphaL<Rgb<150,150,150>,SwingSpeed<360>>>,TrWipeSparkTip<White,300,100>,TrWipeInSparkTipX<White,Int<300>,Int<200>>>>(),
- StylePtr<InOutHelper<ColorCycle<WW1,30,60>,300,800,Pulsing<Black,WW3,800>>>(),
- },
- {"PurgeTrooper;common","",
- StylePtr<InOutTr<Layers<
- Stripes<300,0,RandomFlicker<Rgb<120,0,255>,Rgb<50,0,106>>,Black,Black>,
- LockupL<AudioFlickerL<White>,White>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- AlphaL<Rgb<120,0,255>,SwingSpeed<360>>>,TrWipeSparkTip<Rgb<240,120,255>,400,60>,TrWipeInSparkTipX<Rgb<240,120,255>,Int<400>,Int<200>>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<120,0,255>,30,60>,300,800,Pulsing<Black,Rgb<120,0,255>,800>>>(),
- },
- {"Son_Of_Corellia;common", "",
- StylePtr<Layers<
- InOutHelper<OnSpark<RandomFlicker<Rgb<42,16,252>,Rgb<26,8,126>>,Orange,230>,275,560>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- SimpleClashL<AlphaL<ColorSequence<65,Orange,Red>,Bump<Int<0>,Int<2884>>>,200,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<26,8,126>,30,60>,300,800,Pulsing<Black,Rgb<26,8,126>,800>>>(),
- },
- {"Proto;common","",
- StylePtr<Layers<
- InOutHelper<Layers<
- OnSpark<RandomFlicker<Rgb<10,200,180>,Layers<
- Rgb<5,100,90>,
- AlphaL<Stripes<1000,-1000,Rgb<10,200,180>,Rgb<2,50,45>>,SwingSpeed<310>>>>,OnSpark<Stripes<1000,-1000,Rgb<10,200,180>,Black>,Rgb<125,225,255>,380>,1200>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,240,560>,
- TransitionEffectL<TrConcat<TrSmoothFade<510>,AlphaL<Rgb<10,200,180>,Bump<Int<0>,Int<6884>>>,TrDelay<200>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<10,200,180>,30,60>,300,800,Pulsing<Black,Rgb<10,200,180>,800>>>(),
- },
- {"Ascension;common","",
- StylePtr<Layers<
- InOutHelper<Stripes<10000,-1300,Rgb<250,10,80>,Rgb<125,5,40>,Pulsing<Rgb<250,10,80>,Rgb<125,5,40>,800>>,220,530>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>,
- BlastFadeoutL<AlphaL<Rgb<120,0,30>,Bump<Int<0>,Int<4384>>>,400,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb<250,10,80>,30,60>,300,800,Pulsing<Black,Rgb<250,10,80>,800>>>(),
- },
- {"CyberBlade;common","",
- StylePtr<Layers<
- AudioFlicker<RotateColorsX<Variation,Rgb16<0,38402,65535>>,RotateColorsX<Variation,Rgb<0,85,200>>>,
- /*Ice blue audioflicker */
- AlphaL<RotateColorsX<Variation,Rgb16<882,65535,31206>>,SwingSpeed<500>>,
- /*Bright cyan color swing */
- AlphaL<Stripes<2500,-4000,RotateColorsX<Variation,Rgb16<0,38402,65535>>,RotateColorsX<Variation,Rgb<0,26,60>>,Pulsing<RotateColorsX<Variation,Rgb<0,13,30>>,Black,800>>,Scale<IsLessThan<SwingSpeed<600>,Int<13600>>,Scale<SwingSpeed<600>,Int<-19300>,Int<32768>>,Int<0>>>,
- /*Hard swing ripple effect */
- LockupTrL<Layers<
- AlphaL<AudioFlickerL<Rgb<255,225,0>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
- AlphaL<NavajoWhite,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<600>,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<1000>>,Stripes<1500,2000,RotateColorsX<Variation,DeepSkyBlue>,RotateColorsX<Variation,Rgb16<0,65535,30086>>>,Stripes<1500,-2500,RotateColorsX<Variation,DeepSkyBlue>,RotateColorsX<Variation,Rgb16<0,65535,30086>>>>,Int<18000>>,TrFade<800>,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<1000>>,Stripes<1500,1000,RotateColorsX<Variation,Rgb16<1514,65535,52727>>,RotateColorsX<Variation,Rgb16<3934,65535,38402>>>,Stripes<1500,-1250,RotateColorsX<Variation,Rgb16<1514,65535,52727>>,RotateColorsX<Variation,Rgb16<3934,65535,38402>>>>,Int<18000>>,TrFade<1100>>,SaberBase::LOCKUP_NORMAL>,
- /*Responsive lockup with click calibration effect
- AlphaL<NavajoWhite,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<2100>>,SaberBase::LOCKUP_NORMAL>,
- Alternate lockup ending with white fade out, replace the second AlphaL line above (ending in LOCKUP_NORMAL) */
- ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
- /*Responsive lightning block */
- AlphaL<RotateColorsX<Variation,Rgb16<0,65535,30086>>,SmoothStep<Scale<SlowNoise<Int<2300>>,Int<1200>,Int<4500>>,Int<-4000>>>,
- /*Sparking emitter flare */
- ResponsiveStabL<Red>,
- /*Responsive stab */
- EffectSequence<EFFECT_BLAST,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,LocalizedClashL<White,80,30,EFFECT_BLAST>,ResponsiveBlastWaveL<White,Scale<SwingSpeed<400>,Int<500>,Int<200>>,Scale<SwingSpeed<400>,Int<100>,Int<400>>>,BlastL<White,200,200>,ResponsiveBlastFadeL<White,Scale<SwingSpeed<400>,Int<6000>,Int<12000>>,Scale<SwingSpeed<400>,Int<400>,Int<100>>>,ResponsiveBlastL<White,Scale<SwingSpeed<400>,Int<400>,Int<100>>,Scale<SwingSpeed<400>,Int<200>,Int<100>>,Scale<SwingSpeed<400>,Int<400>,Int<200>>>>,
- /*Multi-blast, blaster reflect cycles through different responsive effects */
- ResponsiveClashL<TransitionEffect<Rgb<255,240,80>,LemonChiffon,TrInstant,TrFade<100>,EFFECT_CLASH>,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
- /*Responsive clash */
- TransitionEffectL<TrConcat<TrInstant,Stripes<3000,-3500,White,RandomPerLEDFlicker<Rgb<60,60,60>,Black>,BrownNoiseFlicker<White,Rgb<30,30,30>,200>,RandomPerLEDFlicker<Rgb<80,80,80>,Rgb<30,30,30>>>,TrFade<1000>>,EFFECT_IGNITION>,
- /*Bright HumpFlicker ignition effect */
- TransitionEffectL<TrConcat<TrInstant,HumpFlickerL<RotateColorsX<Variation,Rgb<90,180,255>>,40>,TrFade<1200>>,EFFECT_RETRACTION>,
- /*Bright HumpFlicker retraction effect */
- LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
- /*Drag */
- LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
- /*Responsive melt */
- EffectSequence<EFFECT_POWERSAVE,AlphaL<Black,Int<8192>>,AlphaL<Black,Int<16384>>,AlphaL<Black,Int<24576>>,AlphaL<Black,Int<0>>>,
- /*Power save, if using fett263's prop file hold Aux and click PWR while ON (pointing up) to dim blade in 25% increments. */
- InOutTrL<TrConcat<TrWipe<200>,AudioFlicker<RotateColorsX<Variation,DeepSkyBlue>,RotateColorsX<Variation,Rgb<0,0,128>>>,TrWipe<100>,Black,TrBoing<550,2>>,TrColorCycle<790>>,
- /*Glitch out ignition and cycle down retraction */
- TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RotateColorsX<Variation,Rgb16<0,38402,65535>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2200>>,Int<1500>,Int<5000>>,Int<-4000>>>,TrFade<1400>,AlphaL<RotateColorsX<Variation,Rgb16<0,11150,20996>>,Bump<Int<0>,Int<10000>>>,TrFade<1500>,AlphaL<Rgb16<20393,20393,20393>,Bump<Int<0>,Int<7000>>>,TrFade<2100>>,EFFECT_RETRACTION>,
- /*Retraction cool down effect
- TransitionEffectL<TrConcat<TrDelay<1500>,Black,TrFade<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<6000>>>,TrFade<3000>>,EFFECT_BOOT>,
- TransitionEffectL<TrConcat<TrInstant,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Int<0>,Int<6000>>>,TrFade<3000>>,EFFECT_NEWFONT>,
- Optional/alternate passive battery monitor, on boot (1st line) or font change (2nd line) you will get a visual indicator at the emitter of your current battery level. This also works without a blade if you have a lit emitter or blade plug. Green is Full, Red is Low (the color will blend from Green to Red as the battery is depleted), the indicator will fade out after 3000 ms and not display again until powered down and back up or fonts change. */
- TransitionEffectL<TrConcat<TrInstant,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<BatteryLevel,Int<10000>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<BatteryLevel,Int<10000>>>,TrFade<1000>>,EFFECT_BATTERY_LEVEL>,
- /*On demand battery level, if using fett263's prop file Hold AUX and click PWR while OFF, the battery level is represented by the location on the blade; tip = full, hilt = low and color; green = full, yellow = half, red = low */
- TransitionEffectL<TrConcat<TrFade<100>,AlphaL<Pulsing<Rgb<120,120,165>,Rgb<50,50,80>,500>,Bump<Int<0>,Int<6000>>>,TrBoing<600,9>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Rgb16<0,38402,65535>,30,60>,300,800,Pulsing<GG3,Rgb<0,85,200>,800>>>(),
- },
- {"Dolby;common", "",
- StylePtr<Layers
- <AudioFlicker<RotateColorsX<Variation,Rgb<95,0,210>>,RotateColorsX<Variation,Rgb<48,0,105>>>,AlphaL<AudioFlickerL<RotateColorsX<Variation,Rgb<95,0,210>>>,
- SwingSpeed<600>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,
- Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,
- TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,
- Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,SparkleL<White,100,400>,ResponsiveStabL<Red,
- TrWipeIn<600>,TrWipe<600>>,
- ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,
- Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
- LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrJoin<TrWipe<1402>,TrWipeIn<1402>>,
- TrJoinR<TrWipe<947>,TrWipeIn<947>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<White,Bump<Int<0>,Int<10000>>>,TrFade<3000>,AlphaL<Orange,Bump<Int<0>,
- Int<8000>>>,TrFade<3000>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<2000>>,EFFECT_RETRACTION>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlicker<RotateColorsX<Variation,
- Rgb<95,0,210>>,Rgb<100,100,150>,300>,LayerFunctions<Bump<Int<0>,Int<10000>>,Bump<Int<32768>,Int<10000>>>>,TrDelay<800>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<PP1,30,60>,300,800,Pulsing<Black,PP3,800>>>(),
- },
- {"Rainbow;common", "",
- StylePtr<InOutHelper<Layers<
- Layers<
- Stripes<1000,-1000,Red,Orange,Yellow,Green,Cyan,Blue,Magenta>,
- AlphaL<Pulsing<Cyan,LightPink,800>,SwingSpeed<350>>>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,1600,620>>(),
- StylePtr<InOutHelper<ColorCycle<Stripes<1000,-1000,Red,Orange,Yellow,Green,Cyan,Blue,Magenta>,30,60>,300,800,Pulsing<Cyan,LightPink,800>>>(),
- },
- {"Excalibur;common", "",
- StylePtr<InOutHelper<Layers<
- Layers<
- Stripes<4000,-700,Red,Orange,Yellow,Green,Cyan,Blue,Magenta>,
- AlphaL<Pulsing<Cyan,LightPink,800>,SwingSpeed<350>>>,
- LockupL<AudioFlickerL<White>>,
- BlastFadeoutL<White,350,EFFECT_CLASH>,
- BlastL<White,400,100,400,EFFECT_STAB>,
- BlastL<White>>,1600,620>>(),
- StylePtr<InOutHelper<ColorCycle<Stripes<1000,-1000,Red,Orange,Yellow,Green,Cyan,Blue,Magenta>,30,60>,300,800,Pulsing<Cyan,LightPink,800>>>(),
- },
- { "Default;common", "tracks/Default.wav",
- StylePtr<Layers<
- Layers<
- Cyan,
- PulsingL<Black,Int<3000>>>,
- ResponsiveLockupL<White,TrInstant,TrInstant,Int<26000>>,
- ResponsiveLightningBlockL<White>,
- ResponsiveMeltL<Mix<TwistAngle<>,Red,Yellow>>,
- ResponsiveDragL<White>,
- ResponsiveClashL<White,TrConcat<TrFade<100>,White,TrFade<100>>,TrFade<100>,Int<26000>>,
- ResponsiveBlastL<White>,
- ResponsiveBlastWaveL<White>,
- ResponsiveBlastFadeL<White>,
- ResponsiveStabL<White>,
- InOutTrL<TrJoin<TrFade<400>,TrWipe<300>>,TrFade<300>>>>(),
- StylePtr<InOutHelper<ColorCycle<Cyan,30,60>,300,800,Pulsing<Black,Cyan,800>>>(),
- },
- { "BreathOfTheWild;common", "tracks/BreathOfTheWild.wav",
- StylePtr<Layers<
- Layers<
- TransitionLoop<Gradient<Blue,DodgerBlue,DeepSkyBlue,Cyan,LightCyan>,TrConcat<TrFade<1500>,Gradient<Black,Blue>,TrFade<1500>>>>,
- LockupTrL<Layers<
- AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
- AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
- ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
- ResponsiveStabL<Red>,
- ResponsiveBlastL<White,Int<5000>,Scale<SwingSpeed<800>,Int<100>,Int<400>>,Int<800>,Int<28000>,Int<4000>>,
- ResponsiveClashL<White,TrConcat<TrFade<100>,White,TrFade<100>>,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
- LockupTrL<AlphaL<BrownNoiseFlickerL<Red,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
- InOutTrL<TrWipeSparkTip<White,2500>,TrWipeInSparkTip<White,500>>,
- LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
- TransitionEffectL<TrConcat<TrInstant,AlphaL<Cyan,Bump<Int<0>,Int<10000>>>,TrFade<1500>,AlphaL<DeepPink,Bump<Int<0>,Int<8000>>>,TrFade<1500>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<1000>>,EFFECT_RETRACTION>,
- TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Magenta,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Aquamarine,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Gradient<Blue,DodgerBlue,DeepSkyBlue,Cyan,LightCyan>,30,60>,300,800,Pulsing<Black,Blue,800>>>(),
- },
- { "TearsOfTheKingdom;common", "tracks/TearsOfTheKingdom.wav",
- StylePtr<Layers<
- Layers<
- TransitionLoop<Gradient<Blue,DodgerBlue,DeepSkyBlue,LightYellow,LightYellow>,TrConcat<TrFade<1500>,Gradient<Black,Blue>,TrFade<1500>>>>,
- LockupTrL<Layers<
- AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
- AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
- ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,
- ResponsiveStabL<Red>,
- ResponsiveBlastL<White,Int<5000>,Scale<SwingSpeed<800>,Int<100>,Int<400>>,Int<800>,Int<28000>,Int<4000>>,
- ResponsiveClashL<White,TrConcat<TrFade<100>,White,TrFade<100>>,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,
- LockupTrL<AlphaL<BrownNoiseFlickerL<Red,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
- InOutTrL<TrWipeSparkTip<White,2500>,TrWipeInSparkTip<White,500>>,
- LockupTrL<AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
- TransitionEffectL<TrConcat<TrInstant,AlphaL<Cyan,Bump<Int<0>,Int<10000>>>,TrFade<1500>,AlphaL<DeepPink,Bump<Int<0>,Int<8000>>>,TrFade<1500>,AlphaL<Red,Bump<Int<0>,Int<6000>>>,TrFade<1000>>,EFFECT_RETRACTION>,
- TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Magenta,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Aquamarine,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Gradient<Blue,DodgerBlue,DeepSkyBlue,Cyan,LightCyan>,30,60>,300,800,Pulsing<Black,Blue,800>>>(),
- },
- { "Castle;common", "tracks/Castle.wav",
- StylePtr<Layers<
- AudioFlicker<RotateColorsX<Variation,Red>,RotateColorsX<Variation,Coral>>,
- TransitionEffectL<TrConcat<TrFade<400>,AudioFlickerL<RotateColorsX<Variation,MistyRose>>,TrDelay<30000>,AudioFlickerL<RotateColorsX<Variation,MistyRose>>,TrFade<800>>,EFFECT_FORCE>,
- AlphaL<Stripes<2500,-3000,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Coral>,Pulsing<RotateColorsX<Variation,OrangeRed>,Black,800>>,SwingSpeed<600>>,
- LockupTrL<Layers<
- AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
- AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Red>,Stripes<1500,-2500,White,Green>>,Int<18000>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
- ResponsiveLightningBlockL<Strobe<Blue,AudioFlicker<Blue,White>,50,1>,TrConcat<TrInstant,AlphaL<Blue,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<Blue,Int<16000>>,30>,TrSmoothFade<600>>>,
- AlphaL<Aquamarine,SmoothStep<Scale<SlowNoise<Int<2000>>,Int<1000>,Int<4000>>,Int<-4000>>>,
- ResponsiveStabL<LightCyan>,
- ResponsiveBlastL<OriginalBlastL<ResponsiveBlastWaveL<Cyan>>,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
- ResponsiveClashL<GreenYellow,TrConcat<TrFade<100>,GreenYellow,TrFade<100>>,TrFade<400>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>,Int<20000>>,
- TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>,
- TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<1500>>,EFFECT_RETRACTION>,
- LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
- LockupTrL<AlphaL<Mix<TwistAngle<>,Cyan,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
- InOutTrL<TrWipe<300>,TrWipeInSparkTip<White,1000>>,
- TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Aquamarine,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Red,30,60>,300,800,Pulsing<Black,Red,800>>>(),
- },
- { "Guardian;common", "tracks/Guardian.wav",
- StylePtr<Layers<
- AudioFlicker<RotateColorsX<Variation,Yellow>,RotateColorsX<Variation,Green>>,
- TransitionEffectL<TrConcat<TrFade<400>,AudioFlickerL<RotateColorsX<Variation,MistyRose>>,TrDelay<30000>,AudioFlickerL<RotateColorsX<Variation,MistyRose>>,TrFade<800>>,EFFECT_FORCE>,
- AlphaL<Stripes<2500,-3000,RotateColorsX<Variation,Yellow>,RotateColorsX<Variation,LightYellow>,Pulsing<RotateColorsX<Variation,Green>,Black,800>>,SwingSpeed<600>>,
- LockupTrL<Layers<
- AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,
- AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,AlphaL<Mix<SmoothStep<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>>,Int<1000>>,Stripes<1500,2000,White,Red>,Stripes<1500,-2500,White,Green>>,Int<18000>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,
- ResponsiveLightningBlockL<Strobe<Blue,AudioFlicker<Blue,White>,50,1>,TrConcat<TrInstant,AlphaL<Blue,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<Blue,Int<16000>>,30>,TrSmoothFade<600>>>,
- AlphaL<Aquamarine,SmoothStep<Scale<SlowNoise<Int<2000>>,Int<1000>,Int<4000>>,Int<-4000>>>,
- ResponsiveStabL<Red>,
- ResponsiveBlastL<OriginalBlastL<ResponsiveBlastWaveL<Cyan>>,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>>,
- ResponsiveClashL<Red,TrConcat<TrFade<100>,Red,TrFade<100>>,TrFade<400>,Scale<BladeAngle<0,16000>,Int<10000>,Int<30000>>,Int<10000>,Int<20000>>,
- TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<800>>,EFFECT_IGNITION>,
- TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<White>,TrFade<1500>>,EFFECT_RETRACTION>,
- LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,
- LockupTrL<AlphaL<Mix<TwistAngle<>,Cyan,Orange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,
- InOutTrL<TrWipe<300>,TrWipeInSparkTip<White,1000>>,
- TransitionEffectL<TrConcat<TrFade<2000>,AlphaL<HumpFlickerL<Aquamarine,10>,Bump<Int<0>,Int<4000>>>,TrFade<2950>,AlphaL<HumpFlickerL<Orange,15>,Bump<Int<0>,Int<5000>>>,TrFade<3000>,AlphaL<HumpFlickerL<White,20>,Bump<Int<0>,Int<6000>>>,TrBoing<1000,3>>,EFFECT_PREON>>>(),
- StylePtr<InOutHelper<ColorCycle<Yellow,30,60>,300,800,Pulsing<Black,Yellow,800>>>(),
- },
- { "Organ;common", "tracks/Organ.wav",
- StylePtr<Layers<
- Layers<
- Layers<
- Stripes<8000,100,Gradient<Red,Yellow>,Gradient<Yellow,Green>,Gradient<Green,Blue>,Gradient<Blue,Red>>,
- LockupL<Gradient<Gradient<Magenta,Blue,Aquamarine,Green,Yellow,DarkOrange,Red>,Gradient<Magenta,Blue,Aquamarine,Green,Yellow,DarkOrange,Red>,AudioFlicker<FloralWhite,Rgb16<20393,20393,20393>>,Gradient<Magenta,Blue,Aquamarine,Green,Yellow,DarkOrange,Red>,Gradient<Magenta,Blue,Aquamarine,Green,Yellow,DarkOrange,Red>>,HumpFlicker<Rgb16<20393,20393,20393>,White,50>>,
- LocalizedClashL<FloralWhite,100,100>,
- BlastL<FloralWhite>>,
- OnSparkL<FloralWhite,Int<400>>>,
- InOutHelperL<InOutFuncX<Int<300>,Int<300>>>>>(),
- StylePtr<InOutHelper<ColorCycle<Stripes<1000,-1000,Red,Orange,Yellow,Green,Cyan,Blue,Magenta>,30,60>,300,800,Pulsing<Cyan,LightPink,800>>>(),
- },
- };
- BladeConfig blades[] = {
- { 0, WS281XBladePtr<130, bladePin, Color8::GRB, PowerPINS<bladePowerPin2> >(),
- WS281XBladePtr<3, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >()
- , CONFIGARRAY(presets) },
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- Button AuxButton(BUTTON_AUX,auxPin, "aux");
- #endif
Add Comment
Please, Sign In to add comment