Switching power and aux buttons?

Most of my sabers have the power button at the top and aux at the bottom, but I have a couple that are the opposite. can I just switch this by changing the button part of the config?

Looks like this now:

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, “pow”);
Button AuxButton(BUTTON_AUX, auxPin, “aux”);

can I just switch the part in parentheses like this to change the buttons?

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_AUX, auxPin, “aux”);
Button AuxButton(powerButtonPin, “pow”);

thanks!

Not exactly, just change the “pin” like so:

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif

becomes:

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, auxPin, "pow");
Button AuxButton(BUTTON_AUX, powerButtonPin, "aux");
#endif
1 Like

ah! that makes more sense. thank you! as always, appreciate so much your help and ridiculously quick replies.

You’re welcome, glad to help

1 Like

I was trying to find the “solve” button to mark your last response but can’t find it anymore?

You can go on the post that solved your problem, click the “triple dots” at the bottom of that post, there is where I think you should see the solved “button” or “mark as solved”

“Solved” is only present in some areas of the forum.
This thread was posted without attaching it to any specific area, so the “solved” button is not available.

1 Like

I moved your topic to ProffieOS. Now you should be able to mark it as “solved”.

1 Like