Help with CCSabers Darksaber V2 with Proffie 2.2

Please add the triple backticks before and after the config, that way it’s properly formatted.

Are you using ProffieConfig or doing it manually (I assume manually, because ProffieConfig wouldn’t spit this back out)? If you’re doing it manually what does your ProffieOS.ino look like, because this config shouldn’t even compile.

Dammit… I cant get the hang of backtips. I’m sorry.

I did originally use the ProffieConfig version, the one you updated and posted on here, but the gesture controls didn’t work on that one. I don’t know why. I’m new to lightsaber configs so a lot of this is trial and error for me

You’re fine, can use pastebin in the future if that’s easier.

```

[Paste Here]

```

Or copy that as a template :wink:

Ok, so did you try using the config you pasted (which seems to be the original TXQ one?), and that worked? Were you using the ProffieConfig config w/ ProffieConfig or did you drop it into your ProffieOS folder for Arduino? What gesture controls exactly weren’t working in that case?

If you could kinda go over how you have everything setup and what you’ve tried, as well as showing us the top of your ProffieOS.ino (if you’re doing it that way), can figure out what’s going wrong/getting confused.

FIrst I took the ProffieConfig config and fixed the tracks. I didn’t touch anything else. Then I opened the ProffieOS file and switched the original config for the ProffieConfig. I ran a check and then uploaded it. When it was done I ejected the board from the PC and put it into the saber and tried it out. The fonts and tracks worked, but when I tried to use the gesture control to turn the blade on and off it didn’t work. I cycled through the fonts, testing the music tracks, and tried the gesture on each one but it never kicked in.

So, I opened the original one from TXQ and just altered the tracks like before. Not touching anything else but switching the track names. I saved the TXQ version under a different name and went through the process again of opening the OS and putting in the new config name. Ran a check and uploaded it to the board. Ejected it and put it back in. Went through the fonts and this time when I tried the gesture control is worked. The only thing that doesn’t seem work is going back with the fonts. I point the blade down and hold the button, as the manual says, but it keeps going forward. I have to go through the fonts in order to get to the one I want.

the top of the ProffieOS I used was the one TXQ sent me that says its for the one button:

/*
  ProffieOS: Control software for lightsabers and other props.
  http://fredrik.hubbe.net/lightsaber/teensy_saber.html
  Copyright (c) 2016-2019 Fredrik Hubinette
  Additional copyright holders listed inline below.

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

// You can have multiple configuration files, and specify which one
// to use here.

//#define CONFIG_FILE "config/0GL9.h"  //单按键程序 2022.5.5

#define CONFIG_FILE "config/MyDarksaberUpdate_config.h"  //单按键程序 2022.8.29```

Is that the part you mean or are you asking for a different section?

Oh, Ok, so you have a ProffieOS version that’s from TXQ? That would explain why that config was able to compile. (And probably also explains why gesture controls aren’t working in the one I sent you, that ProffieOS version is probably old…)

If you have ProffieConfig installed, import the config I sent you into that and try applying it to the board.

Otherwise, go ahead and download ProffieOS v7.14 and try that config with that instead.

That’s what I was wanting, you’re good.

Also, if you throw it into ProffieConfig you can go to the Prop File page and if you press “Buttons” it’ll tell you all the controls for the saber based on all the options you have selected, so you know you have the right controls.

Alright… I’ll try that in a few minute.

Update: So I’ve into a new issue. I may have setup my config wrong so I’ll post it with pastebin so you can let me know if I did something wrong.

I tried running it through ProffieConfig and it keeps saying its too big so maybe I overloaded it. I don’t know. You guys would know better than me.

Assuming the only problem is that it’s too big, try reading this page:

Yeah, compiles fine, just too big. You don’t have that many presets, but some of them could have rather complex styles (I’ve just skimmed over it), but I also notice you have a fair few options setup w/ the prop file, so that along with your preset styles might be pushing it over. ProffieConfig compiles it so it’s as small as possible, and I tried disabling talkie to see if that’d get you under, but it wasn’t enough, so you might just need to disable features and/or remove presets until it fits.

P.S. The next version of ProffieConfig will tell you how much you’re over, that way in situations like this you’re not just shooting in the dark.

Crucible_VVH.h (81.0 KB)
(Just posting this so you have a copy, really only thing I changed was disabling talkie though)

I switched my config for yours and got a FLASH' overflowed by 13744 bytes which is smaller than what I got with mine. :laughing:

Is there anything I can lose that isn’t a big lose that’s in the config?

At this point you’re just down to styles and prop options to be honest. A big thing that would save space would be to disable edit mode and remove ENABLE_ALL_EDIT_OPTIONS

Otherwise just have to choose what you want least…

Do I have to delete it from the config or just put // in front of the define?

So I played around with some defines, turning some stuff off and on, until I finally got it below the overflow number to about 98/99%. Put it in the proffieboard and turned it on. I was caught off guard by the new one button controls but after watching the Fett263 demo I got a hang of it and its working great. Actually, even better. Which probably isn’t saying much since I still am new to all of this but its working and I am quick to learn the new gesture controls which are actually easier now that I think about it.

Thank you all for our help with this. I really appreciate it. Sorry it took so long, and if I was a pain to deal with, but you stuck with me and helped me figure stuff out I didn’t know and could use for the future.

Either works

Glad you got it sorted and working! MTFBWY and let us know if you have any questions in the future

Small plug: 98% of a V2 board memory is 49% of V3 board memory. :slight_smile:

1 Like

I feel like I should have known that. lol

Small question: I seem to have a small issued of twisting to turn off the lightsaber but the blade stays on while the sound of it going off still plays. Do I have to adjust something to keep that from happening?

Here it is in case anyone wants to look it over

EDIT: I also just noticed I spelled battery wrong in the battery percentage define. lol