Rocker 3pol 6pin switch

Hi
I am new to arduino/electronics. Can anyone post an advice how to correctly wire an rocker 3pol 6pin switch like this one?
https://www.videotronics.com.cy/item/rocker-switch-on-off-on-15a250v-red-lamp-3pol6pin/02620009
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?
Thanks!

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().

pinMode(6, INPUT_PULLUP);
pinMode(7, INPUT_PULLUP);

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.
Leo…

Hi,
this works perfectly, thanks!