Both buttons as power?

Is it possible to define both button one and button two as power? Just in software - I know I could do it with wiring.

You would loose functions for sure if you did. Unless you are running all gestures instead mostly.
Never tried it but you could test this out. I’m sure if this is wrong someone will correct me. :slight_smile:

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, “pow”);
Button AuxButton(BUTTON_POWER, powerButtonPin, “pow”);
#endif

Yep, only change the BUTTON_… part like this:

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

The “pin” represent the pad it actually reads from.
The string at the end is a command prefix for the serial monitor, and having to of the same command would be silly. “pow” and “pow2” could work though.
The name of the object (Powerbutton, AuxButton) doesn’t matter, as long as they aren’t the same.
The BUTTON_… part controls what type of event the button will generate, so this is the part we want to change.

What about:
#define DUAL_POWER_BUTTONS
The AUX will also turn the saber on. If not defined, AUX will go to next preset when off.

Or is this unrelated to the question ?

Not entirely unrelated.
AFAK, this define only works for the “saber” prop, which not a lot of people use anymore.

I’ll try that out. I cans send programming right now for some reason. It’s trying to update my board config and getting completely stuck.