SubBlade error

Hey, Im trying to create a couple of single pixel sub blades to attempt to control some accent pixels on a saber. They appear to be wired in parallel with the main blade.

anyway, below is my blade config:

BladeConfig blades[] = {
{ 0, SubBlade(2, 123, WS281XBladePtr<124, bladePin, Color8::GRB PowerPINS<bladePowerPin2, bladePowerPin3>>()),
     SubBlade(0, 0, NULL), //Led1
     SubBlade(1, 1, NULL), //Led2
    CONFIGARRAY(presets) },
};

and the error I get is:

D:\Lightsaber\Sabers\Commissions\Mark\LGT Core\ProffieOS-v7.14\ProffieOS\config\SabineOS7_config.h:77:23: error: parse error in template argument list
   77 | { 0, SubBlade(2, 123, WS281XBladePtr<124, bladePin, Color8::GRB PowerPINS<bladePowerPin2, bladePowerPin3>>()),
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: parse error in template argument list

Any thoughts?

If your accents are in parallel with the main blade I’m not sure a subblade will help you… perhaps you mean in series? (In which case this looks correct)

Anyways, you’re missing a comma after Color8::GRB, that’s what the error there is.

No, I do mean parallel, but I’m OK with the first 2 pixels in the blade being used for this (I think)

Thanks for the comma, I swear I’ve been going over this looking at previous configs of mine & somehow didn’t see that.

That worked.

1 Like

Theoretically if those first pixels are hidden inside the emitter they shouldn’t be visible. Hopefully at least.

Glad that’s worked