I am not sure I understand what Blade detect does exactly. The way I see it, when a blade is inserted, the blade lights up and a sound can be played. Do the LED’s on the Shtok NPXL v3 connector also turn off or do they stay on ?
When the blade is removed, I would assume that the blade turns off (duh - it’s removed), a sound is played and the NPXL connector lights up ?
Is there something else that happens when the blade is inserted/removed ?
Now for the SubBlade part. Do I need the NPXL connector to be 2 SubBlades or can it also be a single blade ?
I guess I do not understand the point of this SubBlade thing with regards to the NPXL connector. If I understood correctly it has 16 pixels (from 0 to 15), SubBlade 0 uses all 16 of them and SubBlade 1 also uses all 16 of them ? So why not have 1 blade that uses all 16 and that’s it ?
P.P.S.: The above config extract comes from Proffieboard V3 & I would like to understand why I should use it like that or if I need to use it like that ?
The easiest thing to get at quickly is probably this:
You’re correct in that both SubBlades can be considered as spanning the entire “length” of the NPXL connector. However, the important thing to note is the “Stride” value. That 2 as the third “argument” to SubBladeWithStride.
This makes it so that the SubBlade uses every other (once every 2) pixel. The reason for this is that the NPXL connector LEDs are set up in such a way that they’re all wired in series/in-line, with the first one being (I don’t know exactly, this is for illustration) an outside pixel at one position on the circle, then an inside pixel on that same point on the circle. Then you rotate and the next pixel is an outside pixel, and so on and so forth. So by splitting the SubBlade like this you get individual control of the inside and outside rings, if that makes sense.
Blade it switches between two separate settings, and it’s up to your configuration if that turns things on/off or not. Blade ID can work exactly as you describe, but it can also do other things.
I think a lot of people thought “it would be cool if the rings on this thing lit up in a nice circular ignition pattern”, and Profezzorn added that to the configurator. It really does look cool. Otherwise the light up in the order of the layout in the NPXL manual.
This is totally up to you.
Blade detect can be setup to just use the same, single Preset [] array, or you can set up 2 different ones, where each one would be for each state of the blade.
The BladeConfig you posted is set to look for 2 different CONFIGARRAYs, one named “presets” and one named “no_blade_presets”
So in the array named “presets” where there’s a blade, you could just set the blade styles so the main blade does something nice, while the NPXL connector is just black like
Preset presets [] = {
{ "font", "track",
StylePtr<...main blade style here ...>(),
StylePtr<Black>(),
"blade in preset example 1"}
};
Then in another array named “no_blade_presets”, you’d do the opposite, where the main blade is black and the connector does stuff like
Preset no_blade_presets [] = {
{ "font", "track",
StylePtr<Black>(),
StylePtr<...NPXL blade style here ...>(),
"no blade preset example 1"}
};
Note that if you subBlade the NPXL, such as you have above, you’d need a style for each blade, so 2 would be black etc…
I must apologize for mixing up the terms here.
I meant to say “Blade Detect”.
Blade Detect lets you have different settings for when the blade is inserted and when it is not. Without blade Detect, the saber will not notice when you remove or insert the blade, it will do the same thing regardless.
Blade ID lets you have different settings for different blades. This can be used to tell ProffieOS the length of the blade, or some people hook it up to the crystal chamber to have different crystals create different colors.
Both are entirely optional, and if you don’t see a need for it, then don’t bother with it.
Having a track in 2 places doesn’t help nor hurt anything. It simply will be found wherever you set the path to it.
Crispity/tracks/track1.wav
means the track1.wav file is inside a folder named “tracks”,
which is inside a folder named “Crispity”,
which is on the root level of your SD card.
It’s usually just a matter of organization.
Some like to have all of their tracks in one big tracks folder on the root, others like to “categorize” them by keeping them inside the font they belong with. It’s totally up to you.
It’s a blade style. You would use it in the slot where your blade style(s) for the connector with the rings is (position 2 and 3 of your preset styles, because the first is your main blade, and the 4th is a switch LED or some accent?).
So you’d swap the styles you have out for the marble style, like make this