I recently got my saber modded with ROTJ style cave blinky arrows. The sabersmith provided a stock config with the necessary script to make the arrows blink. I'm trying to apply that script to my custom config but I keep running into various problems. Does someone have some time to help me unravel what's going on here? Thanks in advance and MTFBWY.
#Seeking Help with Intensive Proffie Config
148 messages · Page 1 of 1 (latest)
can you post up the config that they sent along?
This is the config the sabersmith sent.
And this is the custom config I'm using.
Basically I'm just trying to transplant the script for the blinky arrows to my custom config.
Ok, seems like a 2 step process, they are normal LEDs wired to LED4 and LED6 it looks like (according to the blade array here)
then part 2 for the presets is these last two StylePtr entries that govern the blinking behavior:
The config calls for 4 blades, the arrow LEDs would be the last 2 blades in the presets.
Though not sure why the main blade is sub-bladed like that, looks like it's not actually seperating anything.
If you're talking about the Torchbearer setting, I have it so twisting the blade switches between colors and fonts on the fly. Two settings in one. Same for MerchantAndArmsDealer.
Could that be affecting it?
second config there is missing the second LED:
Hmmm.... lemme try something.
Okay, so for one thing I want to replace StylePtr<WHITE>(), "white"}, correct?
hang on, gotta do something real quick.
Okay
Ok, so I take it you just want to copy the already provided blinking animation, correct?
Yes. As a matter of fact I experimented a little, made a third config. One sec.
So if I understand correctly, I copied over everything relevant. But when I try to compile in Arduino I get an error message.
gimme a sec to look it over.
Take your time.
ugh. I have no idea what this error is, the lines look correct to me.... I can't spot anything that looks off, might need to take this to the crucible, include the error arduino kicks out.
I’ve responded, as has Brian. Style count mismatch.
I just read your reply. Thank you for that. I'm taking a closer look at the working config to see where I went wrong.
I think I see the problem now.
You seem to have lost the style for the crystal chamber
Yeah, I think I mistook it for part of the main profile. Attempting to correct it now.
I think I've fixed it but I just realized something - the CC accents are their own blade style, which means they have their own colors right?
Which means if I want to change that I'll need to go in and change each one manually.
Alternatively, creating an alias for the styles, then assign the same one to both.
using MyStyle = [Style except for the end parentheses];
And then you’d use it in the preset like MyStyle(),
Okay, got a different error message when compiling. This one looks more forgiving.
Below the CONFIG_PRESETS section you can make another CONFIG_STYLES section, where you put the aliases
In file included from C:\Users\user\Lightsabers\Proffie\ProffieOS-v7.15\ProffieOS\ProffieOS.ino:621:
C:\Users\user\Lightsabers\Proffie\ProffieOS-v7.15\ProffieOS\config\tbconfigX.h:302:278: error: expected primary-expression before ',' token
302 | StylePtr<Layers<Pulsing<Mix<Int<8192>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,2000>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Black,TrConcat<TrDelay<3000>,RgbArg<OFF_COLOR_ARG,Rgb<255,255,255>>,TrBoing<2000,5>>>>>>(), "Proton"},,
| ^
exit status 1
Compilation error: expected primary-expression before ',' token
Oh. I think I see what I did.
Two commas
Heh. Simple as that. Lemme check my work now.
Looks good! Time to flash the board. I'll worry about changing the CC colors later.
Flashing completed. Let's try it out.
CC chamber lights up and Red arrow is flashing as it should. Green is not lighting up.
Latest config pwease
S'at Henry Winkler?
Heh!
Nothing whether the saber is on or off?
Nope to either.
I get CC, main blade and red arrow blinking as it should, no green arrow. When off or on.
Any luck if you replace the green led’s bladestyle with the red one’s?
And I assume you weren’t having any issues with the original config?
Original config: Nope. All checked out.
Replacing blade style: Haven't tried that yet.
Just for the first preset, no reason to do all of them.
GASP! Fresh! :O
Come on now, rule 2!!
😛 😆
Well that's weird...... I swapped the red and green but it's behaving the same way as before: Main blade, CC all good, blinky red, no green :O
Proof.
What are the odds purging the save files on the sd card helps
(.ini and .tmp files)
Yeah
Yep
Okay. They're gone. Now what?
Global.ini came back.
Okay, lemme try rebooting. These buttons are hard to press even with toothpicks.
One sec.
Same thing. Main, CC, red blinky... no green.
I’m not sure
It's puzzling.
Given the original works
I switched off the TESTconfig and back to tbconfigX for now.
Update the crucible. Another set of eyes may help.
Will do.
Okay, I updated the post. Gonna keep trying on my end.
Hmm. After the reboot all the .tmp and .ini files didn't come back. Just global.ini
Just put it back together completely for the first time. Full systems test. Sound works just fine, all the fonts are behaving as they ought to.
Thanks again for all your help, BTW.
Np, sorry I’m not much help with that arrow. If you’re not able to figure it out I can perhaps take another look a bit later.
Sure thing. I'll keep taking a look.
Question if you guys are still available - what're the feelings on using AI to help understand what went wrong with my config?
don't.
Unadvisable?
too niche
Gotcha.
Every single AI 'helped' config I have seen has been pretty mangled or uses really old config systems that are not used anymore or have been refined.
Ahhhh, I see. Alright. I won't do it then.
Still having trouble with the green arrow. I tried the old stock config and SD card settings and it's still not lighting up, where it previously did with those settings.
I'm worried I may have damaged a wire. My sabersmith says he doubts it but I'm running out of ideas.
could be something is off, can you take a pic of the top of the proffie and share it, I can cross reference the config to how it's physically wired in.
I'm talking with my sabersmith about it now. He told me to change some script. One sec.
He told me to check my config. These 0's were both 550 for some reason, so he told me to change them to 0's. Gonna flash and try it now.
Hmm. Still no good. Trying the stock config again.
Stock config and SD card got it working! Now to apply that to my config...
They should be 550.
Really you shouldn’t be using the Cree white template at all, but if you are, they should be 550
It doesn’t matter for this in any case
I don't think they're Cree LEDs. They're some kind of micro LED.
It’s the “actual resistance” of the resistor installed on the LED.
ProffieOS tries to know what an LED should be and based on how you wire it, account for failures of the installer to properly wire in a resistor by using PWM to limit current.
I don’t really understand the point, but that’s what it does.
They’re not
One sec. Lemme check with my sabersmith to make sure.
So if you set it to less than proper it’ll under drive your LED
Those numbers mean nothing since it isn’t a Cree though
It just happen to be white so it’ll be driven like a white led.
There’s layers of indirection and “hacks” with that method, but it’s what everyone does.
Okay, so between myself and my sabersmith we managed to determine the following config works:
Which uses pin 5 instead of 4
Sorry if I've misunderstood anything. I'm trying to be as accurate as I can.
For the green arrow
What does that mean?
There are 6 LED pads on a proffieboard.
For normal LEDs, each one gets wired to a single LED, and that’s how proffie controls it.
It sounds like you just had the wrong pin configured for the green LED
Your previous config has pin 4
😛
lol
Dammit Olly, we need you more now than ever XD
Okay, so here's what I did - I took tb_config.h and applied code from my custom config to it. I tried it again and I'm still getting the arrow issue.
Here is the custom config I attempted to make:
Look at the very bottom. You’ll see bladePowerPin entries.
In this config, the green arrow blade uses bladePowerPin4, in the config you said works, it uses bladePowerPin5
How the hell did that even happen? I copied everything over :O I guess I missed something.
So change this to 5?
Yes
Neat
Olly's back in town, baby!
Once again, you guys are my heroes. Thank you so much for all your help :D
Mostly Ry in this case.
@lethal gate your banter and pop culture references are appreciated as well ^_^