Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Proffieboard V2 Configuration by Powell's Power-Ups
- #ifdef CONFIG_TOP
- #include "proffieboard_v2_config.h"
- #define NUM_BLADES 4
- #define NUM_BUTTONS 1
- const unsigned int maxLedsPerStrip = 144;
- #define EXTRA_COLOR_BUFFER_SPACE 60
- #define VOLUME 2200
- #define BOOT_VOLUME 100
- #define CLASH_THRESHOLD_G 3
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define MOTION_TIMEOUT 60 * 5 * 1000
- #define IDLE_OFF_TIME 60 * 3 * 1000
- #define DISABLE_BASIC_PARSER_STYLES
- #define DISABLE_DIAGNOSTIC_COMMANDS
- #define SAVE_STATE
- #define NO_REPEAT_RANDOM
- #define COLOR_CHANGE_DIRECT
- #define ENABLE_SSD1306
- #define SHARED_POWER_PINS
- #define FETT263_SAY_COLOR_LIST_CC
- #define FETT263_SAY_BATTERY_PERCENT
- #define FETT263_BM_CLASH_DETECT 5
- #define FETT263_TWIST_ON
- #define FETT263_TWIST_ON_NO_BM
- #define FETT263_THRUST_ON
- #define FETT263_THRUST_ON_NO_BM
- #define FETT263_TWIST_OFF_NO_POSTOFF
- #define FETT263_FORCE_PUSH_ALWAYS_ON
- #define FETT263_FORCE_PUSH_LENGTH 3
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_fett263_buttons.h"
- #endif
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- { "Stranger;common", "Stranger/tracks/track1.wav",
- /* copyright Fett263 Simple (Primary Blade) OS7 Style
- https://www.fett263.com/fett263-proffieOS7-style-library.html#Simple
- OS7.14 v2.242p
- Single Style
- Base Style: RandomFlicker (Single Color (50%))
- Base Color: BaseColorArg (0)
- --Effects Included--
- Ignition Effect: SparkTip Ignition [Color: IgnitionColorArg]
- Retraction Effect: Standard Retraction [Color: RetractionColorArg]
- Lockup Effect:
- 0: mainLockMulti0Shape - Begin: Full Blade Flash - Style: Intensity AudioFlicker - End: Full Blade Absorb
- [Color: LockupColorArg]
- Lightning Block Effect:
- 0: mainLBMulti0Shape - Begin: Full Blade Flash - Style: Strobing AudioFlicker - End: Full Blade Absorb
- [Color: LBColorArg]
- Drag Effect:
- 0: mainDragMulti0Shape - Begin: Wipe In - Style: Intensity Sparking Drag - End: Wipe Out
- [Color: DragColorArg]
- Melt Effect:
- 0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Melt - End: Wipe Out
- [Color: StabColorArg]
- Stab Effect: AudioFlicker Stab [Color: DragColorArg]
- Blast Effect: Blast Fade (Sound Based) [Color: BlastColorArg]
- Clash Effect: Responsive Clash [Color: ClashColorArg]
- Swing Effect: Force Rage Unstable [Color: BaseColorArg]
- Battery Level: Blade Location (Green to Red)
- Display Volume: Blade Location [Color: AltColor2Arg]
- */
- StylePtr<Layers<RandomFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>>,TransitionEffectL<TrConcat<TrJoin<TrDelay<5000>,TrFade<300>>,StripesX<Int<3500>,Scale<SlowNoise<Int<3000>>,Int<-2500>,Int<-3500>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>,RandomPerLEDFlicker<Mix<Int<2570>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>>,TrFade<300>>,EFFECT_FORCE>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<AudioFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<MELT_SIZE_ARG,29554>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,TransitionEffectL<TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<EFFECT_BLAST>,Scale<WavLen<>,Int<9000>,Int<12000>>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,255,255>>>>,TrFade<300>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AlphaL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,BrownNoiseFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>,300>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<22000>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20677>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL,Int<1>>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,Int<1>>,LockupTrL<AlphaL<TransitionEffect<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,TrExtend<4000,TrInstant>,TrFade<4000>,EFFECT_DRAG_BEGIN>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,29554>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG,Int<1>>,LockupTrL<AlphaL<Stripes<2000,4000,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,Mix<Sin<Int<50>>,Black,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>,Mix<Int<4096>,Black,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,29554>,Int<30000>>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<HumpFlicker<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,RotateColorsX<Int<3000>,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>,100>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,29554>,Int<30000>>,Int<3000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT,Int<1>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<150>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInX<BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<BatteryLevel,Int<10000>>>,TrFade<300>>,EFFECT_BATTERY_LEVEL>,TransitionEffectL<TrConcat<TrExtend<2000,TrFade<100>>,AlphaL<RgbArg<ALT_COLOR2_ARG,Rgb<0,0,255>>,Bump<VolumeLevel,Int<8000>>>,TrFade<300>>,EFFECT_VOLUME_LEVEL>>>(),
- /* copyright Fett263 Simple (Accent LED / PCB) OS7 Style
- https://www.fett263.com/fett263-proffieOS7-style-library.html#Simple
- OS7.14 v2.242p
- Single Style
- Base Style: AudioFlicker (Single Color (50%))
- Off Behavior: Slow Run Forward [Color: BaseColorArg]
- Base Color: BaseColorArg (0)
- --Effects Included--
- Ignition Effect: SparkTip Ignition [Color: IgnitionColorArg]
- Retraction Effect: Fade Out [Color: RetractionColorArg]
- Lockup Effect:
- 0: accentLockMulti0Shape - Begin: Full Blade Flash - Style: Intensity AudioFlicker - End: Full Blade Absorb
- [Color: LockupColorArg]
- Lightning Block Effect:
- 0: accentLBMulti0Shape - Begin: Full Blade Flash - Style: Strobing AudioFlicker - End: Full Blade Absorb
- [Color: LBColorArg]
- Drag Effect: NoneMelt Effect: NoneClash Effect: Flash on Clash (Full Blade) [Color: ClashColorArg]
- Swing Effect: Force Rage Unstable [Color: BaseColorArg]
- */
- StylePtr<Layers<AudioFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>>,TransitionEffectL<TrConcat<TrJoin<TrDelay<4000>,TrFade<300>>,StripesX<Int<3500>,Scale<SlowNoise<Int<3000>>,Int<-2500>,Int<-3500>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>,RandomPerLEDFlicker<Mix<Int<2570>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>>>,TrFade<300>>,EFFECT_FORCE>,TransitionEffectL<TrConcat<TrJoin<TrDelay<30>,TrInstant>,RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,TrFade<300>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL,Int<1>>,LockupTrL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,SaberBase::LOCKUP_LIGHTNING_BLOCK,Int<1>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<75>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrFadeX<BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,TransitionLoop<Black,TrConcat<TrWipe<1000>,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,TrWipe<1000>>>>>>(),
- /* copyright Fett263 (Accent LED / PCB) OS7 Style
- https://www.fett263.com/fett263-proffieOS7-style-library.html#Simple
- OS7.14 v2.242cp
- Single Style
- On Behavior: Solid Color [Color: BaseColorArg]
- Off Behavior: Blinking Off-On [Color: BaseColorArg]
- Base Color: BaseColorArg (0)
- --Effects Included--
- Ignition Effect: Instant [Color: IgnitionColorArg]
- Retraction Effect: Instant [Color: RetractionColorArg]
- Lockup Effect: NoneLightning Block Effect: NoneDrag Effect: NoneMelt Effect: None */
- StylePtr<Layers<RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,InOutTrL<TrInstant,TrInstant,Blinking<Black,RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,500,500>>>>(),
- /* copyright Fett263 (Accent LED / PCB) OS7 Style
- https://www.fett263.com/fett263-proffieOS7-style-library.html#Simple
- OS7.14 v2.242cp
- Single Style
- On Behavior: Solid Color [Color: BaseColorArg]
- Off Behavior: Blinking On-Off [Color: BaseColorArg]
- Base Color: BaseColorArg (0)
- --Effects Included--
- Ignition Effect: Instant [Color: IgnitionColorArg]
- Retraction Effect: Instant [Color: RetractionColorArg]
- Lockup Effect: NoneLightning Block Effect: NoneDrag Effect: NoneMelt Effect: None */
- StylePtr<Layers<RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,InOutTrL<TrInstant,TrInstant,Blinking<RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,Black,500,500>>>>(),
- "Stranger"
- },
- };
- struct RedLED {
- static constexpr float MaxAmps = 0.02;
- static constexpr float MaxVolts = 2.2;
- static constexpr float P2Amps = 0.01;
- static constexpr float P2Volts = 2.0;
- static constexpr float R = 75;
- static const int Red = 255;
- static const int Green = 0;
- static const int Blue = 0;
- };
- struct GreenLED {
- static constexpr float MaxAmps = 0.02;
- static constexpr float MaxVolts = 3.2;
- static constexpr float P2Amps = 0.01;
- static constexpr float P2Volts = 3.0;
- static constexpr float R = 22;
- static const int Red = 0;
- static const int Green = 255;
- static const int Blue = 0;
- };
- BladeConfig blades[] = {
- { 0, WS281XBladePtr<122, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- WS281XBladePtr<16, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- SimpleBladePtr<RedLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- SimpleBladePtr<GreenLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
- CONFIGARRAY(presets) },
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- #endif
Advertisement
Add Comment
Please, Sign In to add comment