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 2
- #define NUM_BUTTONS 2
- const unsigned int maxLedsPerStrip = 144;
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- // #define SABERSENSE_OS7_LEGACY_SUPPORT
- // Required when using Sabersense prop file with ProffieOS 7.x.
- // Must not be used with ProffieOS 8.x.
- // VOLUME DEFINES
- #define VOLUME 1900 // Maximum volume that can be reached.
- #define BOOT_VOLUME 1400 // Default volume at bootup.
- // Over-ridden once user adjusts volume
- // due to SAVE_STATE.
- // OPTIONAL SYSTEM DEFINES
- #define NO_REPEAT_RANDOM
- #define FEMALE_TALKIE_VOICE
- #define KILL_OLD_PLAYERS
- #define IDLE_OFF_TIME 15 * 60 * 1000
- // Minutes multiplied by seconds multiplied by milliseconds. (15 * 60 * 1000 = 15 minutes).
- // SAVE SETTINGS - See Technical Note 1 above.
- #define SAVE_STATE
- // #define SAVE_VOLUME
- // #define SAVE_PRESET
- // PRIMARY CLASH CONTROL - See Technical Note 2 above for further clash controls.
- #define CLASH_THRESHOLD_G 3.2
- // Range is 0 to 16 by default.
- // OPTIONAL FEATURE DEFINES
- #define DYNAMIC_BLADE_LENGTH
- #define DYNAMIC_CLASH_THRESHOLD
- #define SAVE_CLASH_THRESHOLD
- #define ENABLE_SERIAL // Required for Bluetooth Module.
- #define FILTER_CUTOFF_FREQUENCY 160
- #define FILTER_ORDER 4
- // #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
- // #define SHARED_POWER_PINS
- // BLADE ID AND BLADE DETECT
- // See Technical Note 1 above when using BLADE_ID or ARRAY_SELECTOR.
- #define ENABLE_POWER_FOR_ID PowerPINS<bladePowerPin2, bladePowerPin3> // Required for BLADE_ID but not ARRAY_SELECTOR.
- #define SABERSENSE_BLADE_ID // Custom BladeID setting plays arrayX.wav files
- // with BladeID detection.
- // #define SABERSENSE_ARRAY_SELECTOR // Cycles through blade/preset arrays manually, ignores BladeID status.
- // #define SABERSENSE_NUM_ARRAYS 4 // Insert number of blade arrays. Required when using SABERSENSE_ARRAY_SELECTOR.
- // #define BLADE_DETECT_PIN 22 // See Technical Note 3 above.
- // REQUIRED FOR OLED MODULE
- // #define ENABLE_SSD1306
- // #define OLED_FLIP_180 // Optional
- // #define PLI_OFF_TIME 30 * 1000
- // Controls how long battery display is shown on OLED after animations end.
- // Seconds multiplied by milliseconds. (30 * 1000 = 30 seconds).
- // MEMORY SAVING OPTIONS
- #define DISABLE_BASIC_PARSER_STYLES // Disables default named styles found in Proffie Workbench. Saves 8k!
- #define DISABLE_DIAGNOSTIC_COMMANDS
- // #define VERBOSE_SD_ERRORS // Used for diagnostic tracing of faults.
- // CUSTOM SABERSENSE BUTTON CONTROLS
- // Gesture controls bypass Preon effects.
- #define SABERSENSE_TWIST_ON
- #define SABERSENSE_TWIST_OFF
- // #define SABERSENSE_STAB_ON
- // #define SABERSENSE_THRUST_ON
- // #define SABERSENSE_SWING_ON
- // #define SABERSENSE_FLIP_AUDIO_PLAYERS // Reverses all audio Players so that QUOTE plays when pointing down.
- // #define SABERSENSE_SWAP_MUTE_PRESET_1B // Swaps 1-Button Next/Previous Preset and Ignite Mute controls.
- // #define SABERSENSE_BUTTON_CLICKER // For Scavenger hilt. Plays press/release.wav files with button pushes.
- // #define SABERSENSE_NO_LOCKUP_HOLD // Reverts to lockup being triggered by holding AUX while clashing.
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_sabersense_buttons_v70.h"
- #endif
- // BLADE PLUG CHARGING
- // Use section below for blade plug charging to keep FETs powered while charging.
- // Use ChargingStylePtr<BlackPower>(), for charging blade style.
- #ifdef CONFIG_STYLES
- class BlackPower {
- public:
- LayerRunResult run(BladeBase* base) {
- return LayerRunResult::UNKNOWN;
- }
- SimpleColor getColor(int led) {
- return SimpleColor(Color16(0,0,0));
- }
- };
- using ON = Rgb<255,255,255>; // Use StylePtr<ON>(), for Bluetooth/Motor ON.
- using OFF = Rgb<0,0,0>; // Use StylePtr<OFF>(), for Bluetooth/Motor OFF.
- #endif
- // MOTOR/BLUETOOTH ON/OFF DEFINES
- // *************************************************************************
- // *************************************************************************
- // *********************** THE BLADE STYLES ************************
- // *************************************************************************
- // *************************************************************************
- #ifdef CONFIG_PRESETS
- Preset noblade[] = {
- { "PreFont0;FontPrem/ANHGrfx1;Shared/Random;Shared/Function", "tracks/ANH_Track5.wav",
- // Main Blade:
- StylePtr<Layers<Layers<ColorCycle<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>,0,1,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>,70,1000,4000>,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>>>>("~ ~ 0"),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<ON>(),
- "graflex"},
- // **************************
- { "PreFont0;FontPrem/ANHGrfx2;Shared/Random;Shared/Function", "tracks/ANH_Track6.wav",
- // Main Blade:
- StylePtr<Layers<Layers<ColorCycle<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>,0,1,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>,70,1000,4000>,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>>>>("~ ~ 0"),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<ON>(),
- "graflex"},
- };
- // *************************************************************************
- // *************************************************************************
- Preset testblde[] = {
- { "PreFont1;FontPrem/ANHGrfx1;Shared/Luke;Shared/Function", "tracks/ANH_Track5.wav",
- // Main Blade:
- StylePtr<Layers<Layers<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>,RandomL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<0,107,205>>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>,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>>>,OriginalBlastL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Red>,Red,Red,Red,Red,Red,LightYellow,Blue,Blue,Red,Blue,Red>>,LockupL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<200,255,255>>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,White,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>,Black,20,16>,Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,White>,White,White,White,White,White,White,White,White,White,White,Yellow>,Black,20,16>>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,SimpleClashL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Yellow>,Yellow,Yellow,Yellow,White,Red,Yellow,Yellow,Yellow,White,White,Yellow>,Black,28,25>,260>,InOutTrL<TrWipe<500>,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>>>>("~ ~ 0"),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<ON>(),
- "graflex"},
- // **************************
- { "PreFont1;FontPrem/ANHGrfx2;Shared/Random;Shared/Function", "tracks/ANH_Track6.wav",
- // Main Blade:
- StylePtr<Layers<Layers<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>,RandomL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<0,107,205>>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>,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>>>,RandomL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<0,68,125>>,Rgb<0,0,125>,Rgb<0,125,125>,Rgb<0,35,125>,Rgb<0,125,0>,Rgb<14,125,14>,Rgb<125,0,0>,Rgb<125,0,125>,Rgb<125,40,77>,Rgb<125,125,0>,Rgb<125,48,0>,Rgb<110,125,125>>>>,OriginalBlastL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Red>,Red,Red,Red,Red,Red,LightYellow,Blue,Blue,Red,Blue,Red>>,LockupL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<200,255,255>>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,White,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>,Black,20,16>,Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,White>,White,White,White,White,White,White,White,White,White,White,Yellow>,Black,20,16>>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,SimpleClashL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Yellow>,Yellow,Yellow,Yellow,White,Red,Yellow,Yellow,Yellow,White,White,Yellow>,Black,28,25>,260>,InOutTrL<TrWipe<500>,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>>>("~ ~ 0"),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<ON>(),
- "graflex"},
- };
- // *************************************************************************
- // *************************************************************************
- Preset lgt[] = {
- { "PreFont2;FontPrem/ANHGrfx1;Shared/Luke;Shared/Function", "tracks/ANH_Track5.wav",
- // Main Blade:
- StylePtr<Layers<Layers<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>,RandomL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<0,107,205>>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>,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>>>,OriginalBlastL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Red>,Red,Red,Red,Red,Red,LightYellow,Blue,Blue,Red,Blue,Red>>,LockupL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<200,255,255>>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,White,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>,Black,20,16>,Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,White>,White,White,White,White,White,White,White,White,White,White,Yellow>,Black,20,16>>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,SimpleClashL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Yellow>,Yellow,Yellow,Yellow,White,Red,Yellow,Yellow,Yellow,White,White,Yellow>,Black,28,25>,260>,InOutTrL<TrWipe<500>,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>>>>("~ ~ 0"),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<ON>(),
- "graflex"},
- // **************************
- { "PreFont2;FontPrem/ANHGrfx2;Shared/Random;Shared/Function", "tracks/ANH_Track6.wav",
- // Main Blade:
- StylePtr<Layers<Layers<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>,RandomL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<0,107,205>>,Rgb<0,0,205>,Rgb<0,205,205>,Rgb<0,60,205>,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>>>,RandomL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<0,68,125>>,Rgb<0,0,125>,Rgb<0,125,125>,Rgb<0,35,125>,Rgb<0,125,0>,Rgb<14,125,14>,Rgb<125,0,0>,Rgb<125,0,125>,Rgb<125,40,77>,Rgb<125,125,0>,Rgb<125,48,0>,Rgb<110,125,125>>>>,OriginalBlastL<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Red>,Red,Red,Red,Red,Red,LightYellow,Blue,Blue,Red,Blue,Red>>,LockupL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Rgb<200,255,255>>,Rgb<200,255,255>,Rgb<200,255,255>,Rgb<200,255,255>,White,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>,Black,20,16>,Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,White>,White,White,White,White,White,White,White,White,White,White,Yellow>,Black,20,16>>,LockupTrL<AlphaL<Mix<TwistAngle<>,RandomFlicker<Red,Black>,RandomFlicker<Yellow,Red>>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,SimpleClashL<Strobe<ColorSelect<Sum<Variation,IntArg<STYLE_OPTION_ARG,0>>,TrFade<50>,ColorChange<TrInstant,Yellow>,Yellow,Yellow,Yellow,White,Red,Yellow,Yellow,Yellow,White,White,Yellow>,Black,28,25>,260>,InOutTrL<TrWipe<500>,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>>>("~ ~ 0"),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<ON>(),
- "graflex"},
- };
- // *************************************************************************
- // *************************************************************************
- Preset charging[] = {
- { "FontStd2/Charger;Shared/Function", "tracks/charger.wav",
- // Main Blade:
- ChargingStylePtr<BlackPower>(),
- // Accent LED 1 Red: ("~ ~ 0"),
- // Accent LED 2 Green: ("~ ~ 0"),
- // Bluetooth Module:
- StylePtr<OFF>(),
- "charging"},
- };
- // *************************************************************************
- struct Bluetooth {
- static constexpr float MaxAmps = 1.0;
- static constexpr float MaxVolts = 1000.0;
- static constexpr float P2Amps = 0.0;
- static constexpr float P2Volts = 0.0;
- static constexpr float R = 0.0;
- static const int Red = 0;
- static const int Green = 0;
- static const int Blue = 255;
- };
- // *************************************************************************
- // KR V2 pixel strip blade lengths:
- // 88cm = 132 pixels.
- // 82cm = 122 pixels.
- // 72cm = 108 pixels.
- BladeConfig blades[] = {
- // Use sequential numbers starting at 0 if using Sabersense Array Selector.
- { 76, // Hilt Only Reading: 75.
- // Main Blade:
- WS281XBladePtr<8, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Bluetooth Module:
- SimpleBladePtr<Bluetooth, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- CONFIGARRAY(noblade), "save1"},
- { 71, // Short Test Blade. Reading: 72. Actual resistance: 62,400 ohms.
- // Main Blade:
- WS281XBladePtr<68, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Bluetooth Module:
- SimpleBladePtr<Bluetooth, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- CONFIGARRAY(testblde), "save2"},
- { 64, // LGT 32 Inch Blade Reading: 60. Actual resistance: 28,600 ohms.
- // LGT 36 Inch Blade. Reading: 64. Actual resistance: 32.900 ohms.
- // Main Blade:
- WS281XBladePtr<114, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Bluetooth Module:
- SimpleBladePtr<Bluetooth, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- CONFIGARRAY(lgt), "save3"},
- { 52, // Charge Plug Reading: 51. Actual resistance: 21,500 ohms.
- // Main Blade:
- WS281XBladePtr<10, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
- // Bluetooth Module:
- SimpleBladePtr<Bluetooth, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- CONFIGARRAY(charging), "save4"},
- };
- #endif
- // *************************************************************************
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- #if NUM_BUTTONS == 2
- Button AuxButton(BUTTON_AUX, auxPin, "aux");
- #endif
- #endif
- /*
- If you need to swap the MAIN and AUX buttons over, use this:
- Button PowerButton(BUTTON_POWER, auxPin, "pow");
- Button AuxButton(BUTTON_AUX, powerButtonPin, "aux");
- If you need the buttons to short to Batt+ or 3.3 Volt instead of Ground, use this:
- PullDownButton PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- PullDownButton AuxButton(BUTTON_AUX, auxPin, "aux");
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement