Power and Aux Button


Is this correct, if I want my bottom physical button to be PWR and the top physical button above it to be the AUX? Because I’m getting a 1 Fail in Arduino.

Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");


This all just depends how it’s wired. There’s no way for us to know which is top or bottom.
If you want to swap the buttons, that’s simply swapping the pins like this:

Button PowerButton(BUTTON_POWER, auxPin, "aux");
Button AuxButton(BUTTON_AUX, powerButtonPin, "pow");

As far as an error in Arduino, that’s likely something else unrelated to the buttons because they are fine as you posted regardless or the order of them.
If you post your error and the config file, we can see what is causing it.

I feel really dumb. It was because my Port in Tools wasn’t set to the Proffieboard.

But thank you!

Don’t feel dumb, you learned something from the best teacher: failure!

1 Like