Blinky Arrow Config Needs Troubleshooting

I just got my saber back from The Saber Merchant. He modded it for me, including ROTJ cave scene blinky arrows. He included a stock config with a working script for the blinkies. I wanted to try applying that script to my custom config, but when I compile it in Arduino I get an error message. I asked Resurrected Raven on the Discord about this. He looked over my work and says he couldn’t figure out what went wrong, then he suggested I ask here. My config is attached, as well as the error message I keep getting. If there’s anything else I should provide, please let me know. Thanks in advance to whoever reads this, and MTFBWY.
ErrorMsg.txt (6.6 KB)

tbconfigX.h (28.8 KB)

Because you have NUM_BLADES set to 4 but only have 3 styles in your presets.
You’re missing one.

2 Likes

Your config defines 4 blades.
The main blade, an accent, and the two arrows.

Your very first preset has only 3 bladestyles. You must provide an additional bladestyle. You probably want to make sure that you’re aligning things too, since the last two bladestyles are for your discrete LEDs.

Perhaps similar issues on the other presets’ bladestyles, I’ve only given it a cursory look.

2 Likes

Worked closely with @ryryog25 and Resurrected Raven on Discord. Got almost everything to work. The only problem now is the green arrow refuses to light up. At @ryryog25 's advice I tried swapping the red and green arrow profiles. Strangely it gave the same results - red blinks, CC and main blade light up fine, no green arrow. Tried deleting all the .tmp and .ini files and rebooting board. No dice. Here’s the new config.
tbconfigX.h (39.1 KB)

Might be worth sharing the config you have from the installer here too.

I’ve a headache at the moment so I’m failing to throughly examine it, but the blade config is the same afaics, and apparently it works.

Understood. Please take all the time you need.
tb_config.h (48.1 KB)

If you revert back to the original config where everything was working, does the green arrow light up?

That would mean it’s not mechanical (like a bad wire or a failed LED, which just happens sometimes).

Actually we were able to solve it earlier today, and thankfully it wasn’t mechanical. Turns out the “original config” I had contained some altered settings. I asked my sabersmith for an ORIGINAL original config to compare the two. If I understand correctly, the voltage going to the LEDs was wrong, and the blade power pin was set incorrectly (4 instead of 5). A few quick changes and a flash later, all is well and working properly. Thank you to everyone who helped us figure out what was going on.

1 Like