#Seeking Help with Intensive Proffie Config

148 messages · Page 1 of 1 (latest)

scenic lodge
#

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.

lethal gate
#

can you post up the config that they sent along?

scenic lodge
#

Basically I'm just trying to transplant the script for the blinky arrows to my custom config.

lethal gate
#

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.

scenic lodge
#

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?

lethal gate
#

second config there is missing the second LED:

scenic lodge
#

Hmmm.... lemme try something.

#

Okay, so for one thing I want to replace StylePtr<WHITE>(), "white"}, correct?

lethal gate
#

hang on, gotta do something real quick.

scenic lodge
#

Okay

lethal gate
#

Ok, so I take it you just want to copy the already provided blinking animation, correct?

scenic lodge
#

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.

lethal gate
#

gimme a sec to look it over.

scenic lodge
#

Take your time.

lethal gate
#

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.

scenic lodge
#

Gotcha. Thanks for your help. I'll post up on the Crucible now.

#

Okay. Post is up.

agile nexus
scenic lodge
#

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.

agile nexus
#

You seem to have lost the style for the crystal chamber

scenic lodge
#

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?

agile nexus
#

Correct

#

Or at least they can

scenic lodge
#

Which means if I want to change that I'll need to go in and change each one manually.

agile nexus
#

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(),

scenic lodge
#

Okay, got a different error message when compiling. This one looks more forgiving.

agile nexus
#

Below the CONFIG_PRESETS section you can make another CONFIG_STYLES section, where you put the aliases

scenic lodge
#

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.

agile nexus
#

Two commas

scenic lodge
#

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.

agile nexus
#

Latest config pwease

scenic lodge
scenic lodge
#

S'at Henry Winkler?

scenic lodge
#

Heh!

agile nexus
scenic lodge
#

Nope to either.

#

I get CC, main blade and red arrow blinking as it should, no green arrow. When off or on.

agile nexus
#

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?

scenic lodge
#

Original config: Nope. All checked out.

Replacing blade style: Haven't tried that yet.

agile nexus
#

Just for the first preset, no reason to do all of them.

scenic lodge
#

Gonna give it a whilr. Just a moment.

#

Flashing now.

scenic lodge
#

GASP! Fresh! :O

agile nexus
scenic lodge
#

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

agile nexus
#

(.ini and .tmp files)

scenic lodge
#

Sorry, roommate needed some help. Let's see here...

#

So just delete them?

agile nexus
#

Yeah

scenic lodge
#

Go bye-bye?

#

Oops. Forgot curstate.tmp

agile nexus
#

Yep

scenic lodge
#

Okay. They're gone. Now what?

agile nexus
#

Put the SD card back and reboot the board

#

Profit maybe

scenic lodge
#

Global.ini came back.

agile nexus
#

They’ll all come back

#

Do the lights work though?

scenic lodge
#

Okay, lemme try rebooting. These buttons are hard to press even with toothpicks.

#

One sec.

#

Same thing. Main, CC, red blinky... no green.

agile nexus
#

I’m not sure

scenic lodge
#

It's puzzling.

agile nexus
#

Given the original works

scenic lodge
#

I switched off the TESTconfig and back to tbconfigX for now.

agile nexus
scenic lodge
#

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

agile nexus
#

They’re generated for different reasons.

#

They won’t come back immediately

scenic lodge
#

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.

scenic lodge
#

Thanks again for all your help, BTW.

agile nexus
#

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.

scenic lodge
#

Sure thing. I'll keep taking a look.

scenic lodge
#

Question if you guys are still available - what're the feelings on using AI to help understand what went wrong with my config?

lethal gate
#

don't.

scenic lodge
#

Unadvisable?

lethal gate
#

too niche

scenic lodge
#

Gotcha.

lethal gate
#

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.

scenic lodge
#

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.

lethal gate
#

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.

scenic lodge
#

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...

agile nexus
#

It doesn’t matter for this in any case

scenic lodge
#

I don't think they're Cree LEDs. They're some kind of micro LED.

agile nexus
#

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.

scenic lodge
#

One sec. Lemme check with my sabersmith to make sure.

agile nexus
#

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.

scenic lodge
#

Okay, so between myself and my sabersmith we managed to determine the following config works:

agile nexus
#

Which uses pin 5 instead of 4

scenic lodge
#

Sorry if I've misunderstood anything. I'm trying to be as accurate as I can.

agile nexus
#

For the green arrow

scenic lodge
#

What does that mean?

agile nexus
#

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

agile nexus
#

Your previous config has pin 4

lethal gate
#

😛

scenic lodge
#

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:

scenic lodge
agile nexus
# scenic lodge

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

scenic lodge
#

How the hell did that even happen? I copied everything over :O I guess I missed something.

#

So change this to 5?

agile nexus
#

Yes

scenic lodge
#

Okay. Gonna give it a whirl.

#

IT WORKED~!!

agile nexus
#

Neat

scenic lodge
#

Olly's back in town, baby!

#

Once again, you guys are my heroes. Thank you so much for all your help :D

lethal gate
#

Mostly Ry in this case.

scenic lodge
#

@lethal gate your banter and pop culture references are appreciated as well ^_^