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
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.