Components, electrical

switch

Every option, pin and variant of switch, as release 1.3.1 of the compiler states them.

Pins

switch specimen1 component and 0 connections.S1inout
switch specimen
switch with its default options, pins named.

Pin functions

PinSide
inleft
outright

A wire names a pin as ID.pin. Rotating the part moves the pins with it; their names stay the same.

Options

Options go in square brackets after the colour, as name=value. Any option not listed here is an error.

Options

OptionAcceptsDefault
typeOne of 4 values: spst,spdt,pushbutton,relayspst
orientationOne of 4 values: right,down,left,upright

Variants

Pin names depend on the selected variant. Each drawing labels its own pins.

switch specimen1 component and 0 connections.S1inout
switch specimen
type=spst

in (left),out (right)

switch specimen1 component and 0 connections.S1commonnormally-opennormally-closed
switch specimen
type=spdt

common (left),normally-open (right),normally-closed (right)

switch specimen1 component and 0 connections.S1inout
switch specimen
type=pushbutton

in (left),out (right)

switch specimen1 component and 0 connections.S1inoutcoil1coil2
switch specimen
type=relay

in (left),out (right),coil1 (bottom),coil2 (bottom)

Writing one

switch:S1 at (120, 85) #amber