Hi,
I’m not very good at coding, so I need some advice. I want to only use the blade detector so that the LEDs on the PCB connector don’t light up when I connect the blade. I found options where I can use a resistor (I used 10K) as shown in the attached image.
What should the configuration file look like?
Is the following correct?:
#ifdef CONFIG_TOP
#include “proffieboard_v2_config.h”
#define NUM_BLADES 5
#define NUM_BUTTONS 2
#define VOLUME 1000
const unsigned int maxLedsPerStrip = 385;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define ENABLE_SSD1306
#define ENABLE_SERIAL
#define SHARED_POWER_PINS
#define ENABLE_POWER_FOR_ID PowerPINS<bladePowerPin2, bladePowerPin3>
// Max 20 characters
#define BLE_PASSWORD “Zegreus”
// Max 32 characters.
#define BLE_NAME “Zegreus”
// Max 9 characters
#define BLE_SHORTNAME “Saber”
#endif
#ifdef CONFIG_PRESETS
Preset presets = {
{ “TeensySF”, “tracks/venus.wav”,
StyleNormalPtr<CYAN, WHITE, 300, 800>(),
StyleNormalPtr<CYAN, WHITE, 300, 800>(),
StyleNormalPtr<CYAN, WHITE, 300, 800>(),
StyleNormalPtr<CYAN, WHITE, 300, 800>(),
StyleNormalPtr<CYAN, WHITE, 300, 800>(), “cyan”},
};
Preset no_blade_presets = {
{ “TeensySF”, “tracks/mars.wav”,
StyleFirePtr<RED, YELLOW, 0>(),
StyleFirePtr<RED, YELLOW, 0>(),
StyleFirePtr<RED, YELLOW, 0>(),
StyleFirePtr<RED, YELLOW, 0>(),
StyleFirePtr<RED, YELLOW, 0>(),
“no blade” },
};
BladeConfig blades = {
{ 0, SubBlade(0, 89, WS281XBladePtr<180, bladePin, Color8::GRBw, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
SubBladeReverse(89, 179, NULL),
SubBladeWithStride(0, 15, 2, WS281XBladePtr<16, blade2Pin, Color8::GRBw, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
SubBladeWithStride(1, 15, 2, NULL),
WS281XBladePtr<50, blade3Pin, Color8::GRBw, PowerPINS<bladePowerPin4, bladePowerPin5> >()
, CONFIGARRAY(presets) },
{ 11800,
NO_BLADE, SubBlade(0, 89, WS281XBladePtr<180, bladePin, Color8::GRBw, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
SubBladeReverse(89, 179, NULL),
SubBladeWithStride(0, 15, 2, WS281XBladePtr<16, blade2Pin, Color8::GRBw, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
SubBladeWithStride(1, 15, 2, NULL),
WS281XBladePtr<50, blade3Pin, Color8::GRBw, PowerPINS<bladePowerPin4, bladePowerPin5> >()
, CONFIGARRAY(no_blade_presets), “nb_save” }
,
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, “pow”);
Button AuxButton(BUTTON_AUX, auxPin, “aux”);
#endif


