Skip to main content

join

join

This keyword connects multiple different paths to a single insertion point.

Example:

from "std" import *

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

def led_with_res(color):
add led(color) pin 2
wire right 100
add res(360)
wire right 100

join:
# path 1
at gnd
wire right 100
led_with_res("red")

join:
# path 2
at gnd
wire right 100
led_with_res("green")
wire up 500

# join point
wire up 100
to v5v
line 14:5GNDComponent D1_1: line 7:512D1_1redComponent R1_1: line 9:5R1_1360line 27:45VComponent R1_2: line 9:5R1_2360Component D1_2: line 7:512D1_2greenline 20:5GND

In the above example, the two circuit points are connected together at the join point.

Consecutive join blocks will share the same join point. The position of the join position is determined by the path in the very first block.