Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef CONFIG_TOP
- #include "proffieboard_v2_config.h"
- #define NUM_BLADES 6
- #define NUM_BUTTONS 2
- #define VOLUME 2000
- #define BOOT_VOLUME 400
- const unsigned int maxLedsPerStrip = 144;
- #define CLASH_THRESHOLD_G 3.7
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define BLADE_DETECT_PIN 22 // Aux2/Button3 pin
- #define BLADE_ID_CLASS BridgedPullupBladeID<bladeIdentifyPin, 9>
- #define ENABLE_POWER_FOR_ID PowerPINS<bladePowerPin2, bladePowerPin3>
- #define BLADE_ID_SCAN_MILLIS 1000
- #define BLADE_ID_TIMES 10
- #define NO_BLADE_ID_RANGE 999000000,1100000000
- // #define DISABLE_DIAGNOSTIC_COMMANDS
- #define DISABLE_BASIC_PARSER_STYLES
- #define IDLE_OFF_TIME 60 * 10 * 1000
- #define MOTION_TIMEOUT 60 * 10 * 1000
- #define SAVE_STATE
- // #define SAVE_VOLUME
- // #define SAVE_PRESET
- // #define SAVE_COLOR_CHANGE
- #define SHARED_POWER_PINS
- // #define ENABLE_SPINS
- #define NO_REPEAT_RANDOM
- // #define KEEP_SAVEFILES_WHEN_PROGRAMMING
- #define ENABLE_ALL_EDIT_OPTIONS
- #define FETT263_EDIT_MODE_MENU
- #define FETT263_SAY_COLOR_LIST
- #define FETT263_SAY_COLOR_LIST_CC
- #define FETT263_MULTI_PHASE
- #define FETT263_DUAL_MODE_SOUND
- // #define FETT263_QUOTE_PLAYER_START_ON
- // #define FETT263_MOTION_WAKE_POWER_BUTTON
- // #define FETT263_HOLD_BUTTON_OFF
- // #define FETT263_HOLD_BUTTON_LOCKUP
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_fett263_buttons.h"
- #endif
- // ****************************************************************************
- #ifdef CONFIG_STYLES
- // ------------BLADE ID/BLADE PLUG CHARGING--------------
- // Use for BladeID with blade plug charging setup
- // to keep FETs powered when charging.
- // Use ChargingStylePtr<BlackPower>(), for charging blade style.
- class BlackPower {
- public:
- LayerRunResult run(BladeBase* base) {
- return LayerRunResult::UNKNOWN;
- }
- SimpleColor getColor(int led) {
- return SimpleColor(Color16(0,0,0));
- }
- };
- // -------------BLUETOOTH/MOTOR ON/OFF DEFINES----------
- // using ON = Rgb<255,255,255>; // Use StylePtr<ON>(),
- // using OFF = Rgb<0,0,0>; // Use StylePtr<OFF>(),
- #endif
- #ifdef CONFIG_PRESETS
- // ****************************************************************************
- // Blade styles for complete hilt with chassis fully fitted.
- Preset blade[] = {
- { "HiltIn;FontPrem/LS6Cave;common/Luke;common/Function", "tracks/luke_intro.wav",
- // Main Blade:
- StylePtr<Layers<RandomFlicker<ColorChange<TrInstant,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure,DeepSkyBlue,Blue,Cyan,DodgerBlue>,ColorChange<TrInstant,Rgb<0,205,0>,Rgb<22,205,22>,Rgb<205,0,0>,Rgb<205,0,205>,Rgb<205,62,115>,Rgb<205,205,0>,Rgb<205,79,0>,Rgb<178,205,205>,Rgb<0,107,205>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>>>,TransitionEffectL<TrConcat<TrInstant,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,LockupTrL<Strobe<White,Black,25,28>,TrConcat<TrInstant,White,TrFade<200>>,TrFade<300>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AlphaL<White,LayerFunctions<Bump<Scale<SlowNoise<Int<2000>>,Int<3000>,Int<16000>>,Scale<BrownNoiseF<Int<10>>,Int<14000>,Int<8000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<26000>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<10000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<20000>,Int<30000>>,Scale<IsLessThan<SlowNoise<Int<1500>>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<0>>,Int<0>>>>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL<Red>,BlastL<White,400>,SimpleClashL<Strobe<Yellow,Black,25,28>,200>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<800>,TrWipeIn<650>>>>(),
- // Dummy Blade:
- StylePtr<Black>(),
- // Crystal Chamber:
- StylePtr<Black>(),
- // Plasma Emitter:
- StylePtr<Black>(),
- // Accent Red:
- StylePtr<Layers<TransitionLoop<Black,TrConcat<TrDelay<3000>,Rgb<170,170,170>,TrBoing<2000,5>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Black,TrConcat<TrDelay<3000>,Rgb<170,170,170>,TrBoing<2000,5>>>>>>(),
- // Accent Green:
- StylePtr<Layers<TransitionLoop<Rgb<170,170,170>,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Rgb<170,170,170>,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
- "green"},
- // ****************
- { "HiltIn;FontPrem/LS6CaveP;common/Luke;common/Function", "tracks/medley1.wav",
- // Main Blade:
- StylePtr<Layers<Layers<ColorChange<TrInstant,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure,DeepSkyBlue,Blue,Cyan,DodgerBlue>,RandomL<ColorChange<TrInstant,Rgb<0,205,0>,Rgb<22,205,22>,Rgb<205,0,0>,Rgb<205,0,205>,Rgb<205,62,115>,Rgb<205,205,0>,Rgb<205,79,0>,Rgb<178,205,205>,Rgb<0,107,205>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>>>>,TransitionEffectL<TrConcat<TrInstant,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,LockupTrL<Strobe<White,Black,25,28>,TrConcat<TrInstant,White,TrFade<200>>,TrFade<300>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AlphaL<White,LayerFunctions<Bump<Scale<SlowNoise<Int<2000>>,Int<3000>,Int<16000>>,Scale<BrownNoiseF<Int<10>>,Int<14000>,Int<8000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<26000>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<10000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<20000>,Int<30000>>,Scale<IsLessThan<SlowNoise<Int<1500>>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<0>>,Int<0>>>>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL<Red>,BlastL<White,400>,SimpleClashL<Strobe<Yellow,Black,25,28>,200>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<800>,TrWipeIn<650>>,TransitionEffectL<TrDelay<10000>,EFFECT_PREON>>>(),
- // Dummy Blade:
- StylePtr<Black>(),
- // Crystal Chamber:
- StylePtr<Black>(),
- // Plasma Emitter, Slow Heating Effect:
- StylePtr<Black>(),
- // Accent Red:
- StylePtr<Layers<TransitionLoop<Black,TrConcat<TrDelay<3000>,Rgb<170,170,170>,TrBoing<2000,5>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Black,TrConcat<TrDelay<3000>,Rgb<170,170,170>,TrBoing<2000,5>>>>>>(),
- // Accent Green:
- StylePtr<Layers<TransitionLoop<Rgb<170,170,170>,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Rgb<170,170,170>,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
- "green"},
- };
- // ********************************************************
- // ********************************************************
- // ********************************************************
- // Blade styles for chassis only.
- Preset no_blade[] = {
- { "FontPrem/LS6Cave;common/Luke;common/Function", "tracks/luke_intro.wav",
- // Shtok Connector 1:
- StylePtr<Layers<Layers<Blinking<Black,ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,DeepSkyBlue>,Blue,Cyan,DodgerBlue,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure>,500,425>,InOutTrL<TrWipe<200>,TrWipeInX<WavLen<EFFECT_RETRACTION>>>,TransitionEffectL<TrConcat<TrWipe<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>>("~ ~ 4"),
- // Shtok Connector 2:
- StylePtr<Layers<Layers<Blinking<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,DeepSkyBlue>,Blue,Cyan,DodgerBlue,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure>,Black,500,850>,InOutTrL<TrWipe<200>,TrWipeInX<WavLen<EFFECT_RETRACTION>>>,TransitionEffectL<TrConcat<TrWipe<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>>("~ ~ 4"),
- // Crystal Chamber:
- StylePtr<Layers<RandomFlicker<ColorChange<TrInstant,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure,DeepSkyBlue,Blue,Cyan,DodgerBlue>,ColorChange<TrInstant,Rgb<0,205,0>,Rgb<22,205,22>,Rgb<205,0,0>,Rgb<205,0,205>,Rgb<205,62,115>,Rgb<205,205,0>,Rgb<205,79,0>,Rgb<178,205,205>,Rgb<0,107,205>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>>>,TransitionEffectL<TrConcat<TrInstant,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,LockupTrL<Strobe<White,Black,25,28>,TrConcat<TrInstant,White,TrFade<200>>,TrFade<300>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AlphaL<White,LayerFunctions<Bump<Scale<SlowNoise<Int<2000>>,Int<3000>,Int<16000>>,Scale<BrownNoiseF<Int<10>>,Int<14000>,Int<8000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<26000>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<10000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<20000>,Int<30000>>,Scale<IsLessThan<SlowNoise<Int<1500>>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<0>>,Int<0>>>>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL<Red>,BlastL<White,400>,SimpleClashL<Strobe<Yellow,Black,25,28>,200>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<800>,TrWipeIn<650>>>>(),
- // Plasma Emitter:
- StylePtr<InOutHelper<SimpleClash<Lockup<BlastFadeout<RandomFlicker<White,Black>,ColorChange<TrInstant,Red,Red,Red,LightYellow,Blue,Blue,Red,Blue,Red,Red,Red,Red>,350>,Strobe<ColorChange<TrInstant,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,Yellow,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>>,Black,20,16>,Strobe<ColorChange<TrInstant,White,White,White,White,White,White,Red,Rgb<200,255,255>,Red,White,White,White>,Black,20,16>>,Strobe<ColorChange<TrInstant,Yellow,LemonChiffon,Red,Yellow,Yellow,Yellow,Cyan,White,Yellow,Yellow,Yellow,Yellow>,Black,28,25>,260>,800,1000,InOutTrL<TrConcat<TrInstant,Black,TrFade<100>,White,TrFade<400>>,TrConcat<TrInstant,Rgb<50,14,0>,TrFade<2000>,Rgb<25,2,0>,TrFade<4600>>>>>(),
- // Accent Red:
- StylePtr<Layers<TransitionLoop<Black,TrConcat<TrDelay<3000>,Red,TrBoing<2000,5>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Black,TrConcat<TrDelay<3000>,Red,TrBoing<2000,5>>>>>>(),
- // Accent Green:
- StylePtr<Layers<TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
- "green"},
- // ****************
- { "FontPrem/LS6CaveP;common/Luke;common/Function", "tracks/medley1.wav",
- // Shtok Connector 1:
- StylePtr<Layers<Layers<Blinking<Black,ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,DeepSkyBlue>,Blue,Cyan,DodgerBlue,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure>,500,425>,InOutTrL<TrWipe<200>,TrWipeInX<WavLen<EFFECT_RETRACTION>>>,TransitionEffectL<TrConcat<TrWipe<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>>("~ ~ 4"),
- // Shtok Connector 2:
- StylePtr<Layers<Layers<Blinking<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,DeepSkyBlue>,Blue,Cyan,DodgerBlue,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure>,Black,500,850>,InOutTrL<TrWipe<200>,TrWipeInX<WavLen<EFFECT_RETRACTION>>>,TransitionEffectL<TrConcat<TrWipe<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>>("~ ~ 4"),
- // Crystal Chamber:
- StylePtr<Layers<Layers<ColorChange<TrInstant,Green,Rgb<28,255,28>,Red,Magenta,Rgb<255,80,154>,Yellow,Orange,Azure,DeepSkyBlue,Blue,Cyan,DodgerBlue>,RandomL<ColorChange<TrInstant,Rgb<0,205,0>,Rgb<22,205,22>,Rgb<205,0,0>,Rgb<205,0,205>,Rgb<205,62,115>,Rgb<205,205,0>,Rgb<205,79,0>,Rgb<178,205,205>,Rgb<0,107,205>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>>>>,TransitionEffectL<TrConcat<TrInstant,BrownNoiseFlickerL<AlphaL<White,Int<16000>>,Int<50>>,TrSmoothFade<600>>,EFFECT_LOCKUP_END>,LockupTrL<Strobe<White,Black,25,28>,TrConcat<TrInstant,White,TrFade<200>>,TrFade<300>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AlphaL<White,LayerFunctions<Bump<Scale<SlowNoise<Int<2000>>,Int<3000>,Int<16000>>,Scale<BrownNoiseF<Int<10>>,Int<14000>,Int<8000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<26000>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<10000>>>,Bump<Scale<SlowNoise<Int<2300>>,Int<20000>,Int<30000>>,Scale<IsLessThan<SlowNoise<Int<1500>>,Int<8000>>,Scale<NoisySoundLevel,Int<5000>,Int<0>>,Int<0>>>>>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,ResponsiveStabL<Red>,BlastL<White,400>,SimpleClashL<Strobe<Yellow,Black,25,28>,200>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<800>,TrWipeIn<650>>,TransitionEffectL<TrDelay<10000>,EFFECT_PREON>>>(),
- // Plasma Emitter, Slow Heating Effect:
- StylePtr<IgnitionDelay<3000,Layers<Rgb<180,20,0>,InOutTrL<TrConcat<TrFade<5000>,Rgb<2,0,0>,TrFade<4000>,Rgb<30,4,0>,TrFade<4000>,Rgb<80,10,0>,TrFade<3000>>,TrConcat<TrFade<1500>,Rgb<80,10,0>,TrFade<2000>,Rgb<40,4,0>,TrFade<2500>,Rgb<5,0,0>,TrFade<3000>>>>>>(),
- // Accent Red:
- StylePtr<Layers<TransitionLoop<Black,TrConcat<TrDelay<3000>,Red,TrBoing<2000,5>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Black,TrConcat<TrDelay<3000>,Red,TrBoing<2000,5>>>>>>(),
- // Accent Green:
- StylePtr<Layers<TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
- "green"},
- };
- // ********************************************************
- // ********************************************************
- // ********************************************************
- // Blade style for Charge Plug.
- Preset charger[] = {
- { "FontStd2/Charger;common/Random;common/Function", "tracks/trail.wav",
- // Full range of colours.
- // Main Blade:
- ChargingStylePtr<BlackPower>(),
- // Dummy Blade:
- StylePtr<Black>(),
- // Crystal Chamber:
- StylePtr<Black>(),
- // Plasma Emitter:
- StylePtr<Black>(),
- // Switchbox Red:
- StylePtr<Black>(),
- // Switchbox Green:
- StylePtr<InOutHelper<Red,300,800,Blinking<Green,Black,5000,100>>>(),
- "charger"},
- };
- // ****************************************************************************
- BladeConfig blades[] = {
- // Chassis Fitted in Hilt:
- { 660000.00,
- // Main Blade:
- WS281XBladePtr<142, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Dummy Blade:
- WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Crystal Chamber:
- SubBlade (0, 0, WS281XBladePtr<2, blade2Pin, Color8::RGB, PowerPINS<bladePowerPin2, bladePowerPin3>>()),
- // Plasma Emitter:
- SubBlade(1, 1, NULL),
- // Accent Red:
- SubBlade (0, 0, WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5>>()),
- // Accent Green:
- SubBlade(1, 1, NULL),
- CONFIGARRAY(blade) },
- // Chassis Loose:
- { NO_BLADE,
- // Shtok Connector 1:
- SubBladeWithStride (0, 14, 2, WS281XBladePtr<16, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ),
- // Shtok Connector 2:
- SubBladeWithStride (1, 15, 2, NULL),
- // Crystal Chamber:
- SubBlade (0, 0, WS281XBladePtr<2, blade2Pin, Color8::RGB, PowerPINS<bladePowerPin2, bladePowerPin3>>()),
- // Plasma Emitter:
- SubBlade(1, 1, NULL),
- // Accent Red:
- SubBlade (0, 0, WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5>>()),
- // Accent Green:
- SubBlade(1, 1, NULL),
- CONFIGARRAY(no_blade) },
- // Charge Plug:
- { 23000.00,
- // Main Blade:
- WS281XBladePtr<142, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Dummy Blade:
- WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Crystal Chamber:
- SubBlade (0, 0, WS281XBladePtr<2, blade2Pin, Color8::RGB, PowerPINS<bladePowerPin2, bladePowerPin3>>()),
- // Plasma Emitter:
- SubBlade(1, 1, NULL),
- // Accent Red:
- SubBlade (0, 0, WS281XBladePtr<2, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5>>()),
- // Accent Green:
- SubBlade(1, 1, NULL),
- CONFIGARRAY(charger) },
- };
- #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
Advertisement