Please clarify NUM_BLADES when used with Blade ID

I have a simple saber set up with a single blade. No crystal chamber, no accent LEDs, no crossguards, just a single removable neopixel blade. I want the blade to be interchangeable with a blade plug that also has a single neopixel in it. The blade plug is identifiable via a 56k Blade ID resistor. To that end, I have compiled a Preset array for the blade, and another Preset array for the plug, and I call those Preset arrays respectively from the blade configuratrions. My BladeConfig looks like this:

BladeConfig blades[] = {
 { 0, WS281XBladePtr<122, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(neopixel_presets) },
 { 56000, WS281XBladePtr<1, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(tricree_presets) },

My question is, what should NUM_BLADES be set to? Is it 1 or 2? Technically, there’s only ever one “blade” inserted at a time, but I have two blade configurations.

It will be 1.

1 Like

Thank you!