Skip to main content

parallel

parallel

This keyword connects multiple different paths to have the same initial and end points.

Example:

from std import *

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

at v5v
wire down 100

# this is the initial point

for i in range(0, 3):
parallel:
wire right (i*200) down 100
add diode("RED")
wire down 100
add res(1k)
wire down 100

if i > 0:
wire auto


wire down 100
to gnd
5V12D1_112R1_11kGND12R1_21k12D1_212R1_31k12D1_3