Inverting buttons - I done messed up

Hey team,

So somehow I mixed up my wires and I’ve wired the Aux as the main switch and main as aux, couldnt see in the manual how to invert the switches in the config?

Thanks in advance.

Easy.
Just swap powerButtonPin and auxPin in your buttons section of the config file.

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

#endif

2 Likes

perfect thanks!

Got another one for you, is there an obvious reason my OLED Screen is displaying “O” as an “N”?

My font is not “The Bold NNE” or “Nbi4” haha

Yup. That’s the way the glyphs are mapped.
If you open the StarJedi font in a font editor you can see which ASCII characters = which glyph.
Dont use capital letters in your text and it’s fine.
Tip:
If you want to split the message up across 2 lines use a newline \n, so like:
"darth\nvader"
or if you want to get fancy, use a couple of spaces to center it on the screen
" darth\n vader"
although I think theres code in place to do that automatically, I just haven’t tried it out yet.

you sir are a hero