For pedalSHIELD and following the image you added it is like:
- Left : connected to ground.
- Center: connected to digital i/o.
- Right: not connected.
Arduino digital i/o has internal pull-up enabled by using "pinMode(TOGGLE, INPUT_PULLUP);
So the trick is that the input by default is in high state (because of the pull up):
- When the Center pin is connected to the Left, the input reads a low level.
- When the Center is connected to the Right, it is floating indeed and the internal pull up keeps it high.
So you have low to the left and high to the right.