Here’s what SW1 (C&K JS202011SCQN) does and how its pins work:
What it is (from the datasheet)
“Switch Function 2020: DPDT” and “N: Non-shorting” (C&K JS Series datasheet).
“Circuit Diagram C: Common Pin (Bottom View)” indicates the center terminals are the commons.
How the 6 pins function
It’s a 2‑position DPDT slide switch: two independent 3‑terminal switches.
For each pole, the middle pin is the common; sliding connects that middle pin to one outer pin or the other (non‑shorting between throws).
Practical grouping:
Pole A: pins 1–2–3 (2 is common).
Pole B: pins 4–5–6 (5 is common).
One position: 2→1 and 5→4; other position: 2→3 and 5→6. Verify orientation on your footprint using the pad‑1 marker and the “Bottom View” diagram in the datasheet.
Typical use in your design
Use one pole to select Grove VCC: tie 3.3 V to one outer, 5 V to the other, and route the Grove VCC to the middle (common).
Use the second pole to manage I2C pull‑ups (select 3.3 V vs 5 V, or disconnect) or to drive an ID/enable signal.