1
Function
Pads 1: two leads on opposite sides of the body (6.5 mm apart on the 6 mm switch, 12.5 mm on the 12 mm one), joined inside.
How to connect
Connect to the microcontroller input; with INPUT_PULLUP the input idles HIGH.
Electrical note
A switch has no polarity: terminals 1 and 2 may be swapped.