Skip to main content

to

to <component>

Places the component on the canvas and joins the current insertion point. By default, if no pin number is used, pin 1 is used.

To specify the insertion point at a given pin number, write to <component> pin <pin number>

from "std" import *

v5v = supply("5V")
gnd = dgnd()

component_1 = create component:
pins: 4

component_2 = create component:
pins: 4

at component_1 pin 2
wire right 100
to component_2 pin 1

at component_1 pin 4
wire right 100
to component_2 pin 3
Component J1: line 6:111332244J1Component J2: line 9:111332244J2

point reference

to can also draw a wire to a named point defined by point "name":

  • to "point_name" — end the current wire at the named point defined by point "point_name"

Example:

from "std" import *

v3v3 = supply("3.3V")
gnd = dgnd()

some_component = create component:
pins: 3

at v3v3
wire down 100
point "tmp1"

wire down 100
add cap(100n)
wire down 100
to gnd

at some_component pin 1
wire right 100
to "tmp1"
line 9:13.3Vline 20:4Component C1: line 14:1C1100nline 16:4GNDComponent J1: line 6:1113322J1