What dose my config mean?

Hey guys, I’m pretty new to lightsabres and this is my first time using proffie so I need some help from the council.
I Just bought a Luke VeeOne form korbanth and I want to go about updating it to OS7 as well as adding my own custom blade styles. The issue is it has a crystal chamber and accent LEDs that are coded in a way I cant understand. I would have expected the number of blades to be three or possibly four, one for the main blade, one for the crystal chamber and one or two for the blinking arrows on the control box. However the config lists five blades, it seems the crystal chamber has been coded as two separate blades, one for the top LED and one for the bottom. The blade styles that appear reflect this. As a result I am unsure as to how I would add a blade style to the crystal chamber.

I am looking for help understanding how the board knows what blade style is for what blade, why they might have used five blades and how I would go about setting up a new config file after updating to OS7 so I can create styles for the chamber.

P.S. I don’t know how the board is wired and its glued in, its not coming out without breaking something. is this going to be an issue?

Here is the blade config;

BladeConfig blades[] = {
 { 0, WS281XBladePtr<133, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    WS281XBladePtr<1, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    SimpleBladePtr<CH1LED, NoLED, NoLED, NoLED, bladePowerPin7, -1, -1, -1>(),
	SimpleBladePtr<CH2LED, NoLED, NoLED, NoLED, bladePowerPin8, -1, -1, -1>()
  , CONFIGARRAY(presets) }  ,
};

Hope you can help.

The order of the styles matches the order of the blades in BladeConfig, so in your instance, the first blade looks like it’s for your main blade as it has 133 pixels, everything else is just one pixel or a single LED. So your first style in a preset is for the main blade and the others are for crystals, accents or buttons is my guess.

If you’re unsure just set a different color for each and upload, this will tell you which is which.

Example:

{ "font;common", "font/tracks/track.wav",
StylePtr<Blue>(),
StylePtr<Green>(),
StylePtr<Red>(),
StylePtr<Yellow>(),
StylePtr<Pink>(),
"name"
},

These will light up full time (whether the saber is ignited or not). Obviously, put your font name in place of “font” and update the track name. Then just see which is which and that’s how you order your styles in each preset.

Note, if the last two are single color LEDs they won’t actually show Yellow or Pink, they’ll just be a dimmer variation of whatever their only color is. If you need to figure out which is which set one of the last two styles to “Black” in place of the Color and which ever turns off after you upload is using that style.

Thank you! this makes sense. if I want to programme the crystal chamber in your blade style creator how should I do that? do I need to do it as individual blades like in the current config or can I set it so that both of the chamber LEDs are one blade?

The BladeConfig is how it’s wired, you’d have to rewire to make them one blade.

Just paste the same style for each if you want them to operate the same.

got it, thanks!