Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Marcus_configV3.h
- #ifdef CONFIG_TOP
- #include "proffieboard_config.h"
- #define NUM_BLADES 3
- #define NUM_BUTTONS 2
- #define VOLUME 1500
- const unsigned int maxLedsPerStrip = 144;
- #define CLASH_THRESHOLD_G 1.9
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define ENABLE_SSD1306
- #define SHARED_POWER_PINS
- #define SAVE_STATE
- #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
- //#define KEEP_SAVEFILES_WHEN_PROGRAMMING // presets.ini/tmp are ignored after reprogramming unless this is defined
- #define SA22C_NO_LOCKUP_HOLD // Hold AUX and do Clash. Comment this out for hold AUX to Lockup.
- #define DISABLE_DIAGNOSTIC_COMMANDS
- #define IDLE_OFF_TIME 60*5*1000
- #define MOTION_TIMEOUT 60 * 15 * 1000
- #endif
- //----------------------------------------------------------------------------------------------------------------------------------------
- #ifdef CONFIG_PROP
- #include "../props/saber_BC_buttons4x.h"
- #endif
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- // same ColorChange<A, B, C> style, 30 presets same font
- { "testfont1;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont2;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont3;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont4;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont5;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont6;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont7;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont8;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont9;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont10;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont11;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- { "testfont12;common", "",
- StylePtr<Layers<
- // Main Blade Color/Styles Base
- ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
- // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
- LockupTrL<Layers<
- Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
- // Tip side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
- // Hilt side mask
- AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
- SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
- LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
- InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
- StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
- };
- //----------------------------------------------------------------------------------------------------------------------------------------
- BladeConfig blades[] = {
- { 0, WS281XBladePtr<131, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- DimBlade(50.0, SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>()),
- DimBlade(50.0, SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>()),
- CONFIGARRAY(presets) },
- };
- #endif
- //----------------------------------------------------------------------------------------------------------------------------------------
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- Button AuxButton(BUTTON_AUX, auxPin, "aux");
- #endif
Advertisement
Add Comment
Please, Sign In to add comment