Need help with Proffie config file

Hello, I’m new to proffie boards and I recently purchased an Obi Wan Kenobi TPM from Korbanth. I have been watching a lot of tutorials and reading up on Fett263’s website and I feel like I’m at an impasse. I am wanting to remove some fonts and blade styles from my config file while also adding a new font and blade style. However, when I open up my config file, I do not see a lot of the code that I see in a lot of these tutorials. For instance, I do not see any of the blade style code, or even the blade configuration code i.e. this:

BladeConfig blades = {
{ 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
};

I just see a lot of Event ID’s and what not and I feel like a lot of features have been disabled, like gesture controls and blade color change, which is what I would actually like to be available to me. I feel very stuck and I really do not want to mess up my board at all. I would be happy to send the config file to anyone that would be willing to take a look at it and help me out. I have even uploaded it here. Thanks in advance.

saber_KBC_buttons.h (42.3 KB)

That file is a prop file, what seems to be a modified version of @NoSloppy’s prop file, not a config file.

That file includes a whole bunch of code dictating how the saber responds to button events, among other things.

You’ll need a config file, or need to create a new one. This seems to me like you may have been provided multiple files, because whatever config file Korbanth used required a modified (for some reason) version of the prop file, so they provided both the modified prop file and a config file?

If you weren’t provided multiple files, you should ask for the config file. However it’s worth nothing that a config file using a modified prop without you having a good reason to be using a modified prop will probably just cause headaches. Once you have a config file it can be changed to just use BC’s normal prop.

Interesting, didn’t realize that it was a prop file. So on the SD card is a ton of folders, mostly sound fonts and what not. The only file that is considered and H file is the one I uploaded in my original post, there isn’t another H file on the SD card. I have ensured that I can see “hidden” files on my system.

So I started to go down the path of making a new config file, but I started to get a little daunted with some of the options once I got to that page on Fett263’s website. Like I don’t know if my board is wired up for blade detect, shared power, etc. I would be happy to create my own config file as it looks pretty fun to work with, but I don’t want to screw it up and not have my board work properly or totally hose it up. I will try to reach out to Korbanth and see if they can send my the actually config file, but I’m not holding my breath. At this point I’d rather just start from scratch.

Hmm, that’s strange that they’d give you a prop file and not a config file, but who knows. :man_shrugging:

If you get a config file from Korbanth at the very least it would give you an idea of how things are wired for creating a new config file, but with a bit of guess and check you can probably figure out the wiring. Or at least we can help!

If you know what LEDs your saber has, and if you can share a picture top-down of the board mounted in the chassis we can probably figure out what’s wired where.

Maybe ProffieConfig and its walkthrough would make things a little less scary? (Is all GUI-based–meaning no editing code by hand–and has a step-by-step interactive guide the first time you run through things to get you comfortable and familiar with everything)? It also handles all the software stuff related to uploading (not just config generation) to make your life a little easier. :slight_smile:

Oops, forgot the disclaimer: ProffieConfig is made by me, fwiw.

Awesome I will look into the ProffieConfig tool, that would be cool. And let me get that picture of the board for you. Thanks for all your help. I did send an email to Korbanth, so I’ll see what they come back with, and who knows when that will happen.

1 Like

Here’s a couple of pics, hopefully the quality is ok and you can see clearly. For reference I did try to match up my board with a wiring diagram, but being as inexperienced as I am I wasn’t quite sure.

Interesting…

Ok, so the only light-up-bits (very scientific name, I know) on the saber would be the illuminated PCB and (when inserted, obviously) the blade?

The Button pads are covered by the chassis, but I figure you know whether you have 1 or 2 buttons.

What’s interesting is that it looks like not only are LED2 and 3 (which are most commonly used for neopixel blade power) soldered to, but also LED4 and 5. However it looks like there’s only a single data line hooked up to Data1.

If that’s the case, then LED4 and LED5 being wired up is somewhat odd, unless there’s perhaps something soldered to Data3?

At any rate, I’d virtually guarantee that your main blade is using data1, LED2, and LED3 (bladePin, bladePowerPin2 and bladePowerPin3 respectively).

Since I don’t see another data line, I’d assume the PCB is either wired in series (and you should SubBlade it), or in parallel, in the latter case you wouldn’t need to do anything in the config.

EDIT: If you haven’t found it already, and to follow along with this a bit, here’s the ProffieBoard V3 page, which has the board pinout/pad layout: Proffieboard V3

Yeah so the only thing that lights up is the PCB. And yes a blade when inserted. There aren’t any accent lights or anything. They have a crystal chamber version so perhaps that was the case for LED 4 & 5 but then that didn’t happen?

Here’s a couple more pictures. First one showing the power and aux buttons.

Gotcha. Well then it should be pretty easy to try different configurations and just guess and check. It seems like then the only question is whether the PCB is wired in series (and needs to be setup as a SubBlade) or in parallel, which should be pretty easy to play with in the config.

Can setup a subblade that’s 24 pixels long, then make sure you have a style for the two “blades”/segments that are distinct colors. If you spark it up and the bottom of the main blade is the PCB color, it’s in parallel, if it only lights up as its correct color then things are wired in series and the subblade is the way to go.

If you’re going through ProffieConfig’s tutorial/walkthrough, get through that and then see if what I’m saying makes any sense. If not I can provide more detailed instructions for how to test that/how to set it all up.

P.S. I think you’re fine right now, but just be aware and try to refrain from posting photos when a text description will do, so as to not eat up space on Fredrik’s server. :slight_smile: One of those things where if text won’t do, pictures are perfectly fine, but if things can easily be described through text, just text is more ideal.

OK will do, I’ll try to build a new config file from scratch then. I started to watch a video from Powell’s Power ups, that was really quite helpful so far. So I’ll just continue that video because he’s essential building a config from scratch for a brand new proffie.

So let’s say I get this new config file all setup with blade styles and fonts and what not, just replace everything on the SD card to test it out?

Gotcha on the photos didn’t know, thanks for all your help and patience with me! :grin:

You’d want to add the corresponding fonts/font folders to the SD card, but you don’t necessarily have to remove any of the old/original folders or files. Definitely make a backup of all the files on the SD card though. SD Cards have a horrible tendency to get corrupted.

Then, your config file doesn’t need to be on the SD card, since it becomes part of the OS you upload to the board. It’s generally good practice to keep a copy on there just to have it, but it won’t do anything sitting on the SD card.

Ah yes you are correct, the config gets flashed to the board. Duh. Yeah I’ve seen most people tend to keep a copy on the SD card, but yeah I’ve already made folders and created a backup of the SD card already. I’ll give all of this a go tomorrow, waiting on a data transfer cable from Amazon lol.

Those switches have leds on them too but doesn’t look like they are wired up from that angle. They are the shadowfoil props ones Pixel Switch PCB

1 Like