Sorry to ask if this is a silly question, but I’m slowly implementing the full functionality. I have set up my saber with Shtok NPXL V3 (in a V4 config) plus Blade Present. Thus, I have the main blade, with Blade Detect, plus the Shtock PCB blade.
So, I basically have to implement multiple blades. Is this what I should add?
#define NUM_BLADES 2
#define SHARED_POWER_PINS
#define ENABLE_POWER_FOR_ID PowerPINS<bladePowerPin2, bladePowerPin3>
#define BLADE_DETECT_PIN 17
BladesConfig blades[] = {
{ 5000,
WS281XBladePtr<121, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
CONFIGARRAY(p1)
},
{ 10000,
WS281XBladePtr<132, bladePin, Color8::GRBw, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(p2)
},
{ NO_BLADE,
WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
CONFIGARRAY(p3),
}
};
With 5000 and 1000 the resistor values as measured by the specific board?