Components, electrical
switch
Every option, pin and variant of switch, as release
1.3.1
of the compiler states them.
Pins
switch with its default options, pins named.Pin functions
| Pin | Side |
|---|---|
in | left |
out | right |
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
| Option | Accepts | Default |
|---|---|---|
type | One of 4 values: spst,spdt,pushbutton,relay | spst |
orientation | One of 4 values: right,down,left,up | right |
Variants
Pin names depend on the selected variant. Each drawing labels its own pins.
type=spst in (left),out (right)
type=spdt common (left),normally-open (right),normally-closed (right)
type=pushbutton in (left),out (right)
type=relay in (left),out (right),coil1 (bottom),coil2 (bottom)
Writing one
switch:S1 at (120, 85) #amber