I am new to arduino/electronics. Can anyone post an advice how to correctly wire an rocker 3pol 6pin switch like this one?
The aim is to have High on digital pin6 when presseed I, High on pin7 when pressed II , nothing when position O. Are some additional resistors needed?
If you connect the center pin (of a row of three) to ground.
And the first pin and last pin (of the row of three) to two digital inputs.
And enable the internal pull up resistors with pinMode for those two pins in void setup().
Then you don’t need any additional parts.
digitalRead the pins.
Inverted logic, so adjust your code.
Pin is HIGH if not pressed.
Pin is LOW if pressed.
this works perfectly, thanks!