Dip switch
| Library: | Input/Output |
| Appearance: | ![]() |
Behavior
The Dip switch provides a bank of toggle switches that maintain their state. Each switch in the bank can be independently flipped between 0 and 1. The component outputs the combined multi-bit value or individual bit values depending on the configuration.
Pins
The component typically has a multi-bit output pin. Each bit of the output corresponds to the current state of an individual switch in the bank (1 if the switch is ON/Closed, 0 if it is OFF/Open).
Attributes
When the component is selected or being added, the arrow keys alter its Facing attribute.
- Facing
- The location of the output pins relative to the component.
- Number of Switches
- Sets how many individual switches are contained in the DIP bank.
- Color
- The color used to display the switches.
- Label
- The text associated with the component label.
Poke Tool Behavior
Clicking an individual switch within the bank using the Poke Tool will toggle its state (from 0 to 1, or 1 to 0). Unlike a button, the state remains changed after the mouse button is released.
Text Tool Behavior
Allows the label associated with the component to be edited.
