> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/wokwi/wokwi-docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DIP Switch (8-position)

> Set of 8 electrical switches in a single package

Set of 8 electrical switches in a single package

## Pin names

<ParamField path="1a" type="Contact">
  First contact of switch 1
</ParamField>

<ParamField path="1b" type="Contact">
  Second contact of switch 1
</ParamField>

<ParamField path="2a" type="Contact">
  First contact of switch 2
</ParamField>

<ParamField path="2b" type="Contact">
  Second contact of switch 2
</ParamField>

<ParamField path="..." type="Contact">
  ...
</ParamField>

<ParamField path="8a" type="Contact">
  First contact of switch 8
</ParamField>

<ParamField path="8b" type="Contact">
  Second contact of switch 8
</ParamField>

## Keyboard operation

You can use the keyboard to toggle the swithches while the simulation is running. Click on the DIP switch to select it, then toggle the switches by pressing the keys "1" to "8".

<Note>
  Firefox users: if the keyboard shortcuts don't work for you, please make sure that the "Search for text when you start typing" setting is disabled.
</Note>

## Simulator examples

* [DIP Switch + LED Bar example](https://wokwi.com/projects/314167394611233344)
* [Arduino PIND register example](https://wokwi.com/projects/314168546236039745)
