Added type for shorts(loop or internal), see ex16
This commit is contained in:
parent
02fcc688ac
commit
be801c344d
3
examples/ex16.bom.tsv
generated
Normal file
3
examples/ex16.bom.tsv
generated
Normal file
@ -0,0 +1,3 @@
|
||||
Id Description Qty Unit Designators
|
||||
1 Cable, Serial, 4 x 0.25 mm² shielded 0.2 m W1
|
||||
2 Connector, Molex KK 254, female, 7 pins 2 X1, X2
|
||||
|
236
examples/ex16.gv
generated
Normal file
236
examples/ex16.gv
generated
Normal file
@ -0,0 +1,236 @@
|
||||
graph {
|
||||
// Graph generated by WireViz 0.5-dev
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor="#FFFFFF" fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor="#FFFFFF" fontname=arial height=0 margin=0 shape=none style=filled width=0]
|
||||
edge [fontname=arial style=bold]
|
||||
edge [color="#000000:#FF66CC:#000000"]
|
||||
X1:p1r:e -- X1:p5r:e
|
||||
X1:p5r:e -- X1:p7r:e
|
||||
edge [color="#FF0000" headclip=false style="solid,bold" tailclip=false]
|
||||
X1:p2j:c -- X1:p6j:c [straight=straight]
|
||||
edge [headclip=true style=bold tailclip=true]
|
||||
X1 [label=<
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1"><tr>
|
||||
<td balign="left">X1</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1"><tr>
|
||||
<td balign="left">Molex KK 254</td>
|
||||
<td balign="left">female</td>
|
||||
<td balign="left">7-pin</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>SH2</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GND</td>
|
||||
<td></td>
|
||||
<td port="p1r">1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>VCC</td>
|
||||
<td port="p2J"><FONT FACE="Sans" POINT-SIZE="12.0" COLOR="#FF0000">⬤</FONT></td>
|
||||
<td port="p2r">2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RX</td>
|
||||
<td></td>
|
||||
<td port="p3r">3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TX</td>
|
||||
<td></td>
|
||||
<td port="p4r">4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GND</td>
|
||||
<td></td>
|
||||
<td port="p5r">5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>VCC</td>
|
||||
<td port="p6J"><FONT FACE="Sans" POINT-SIZE="12.0" COLOR="#FF0000">⬤</FONT></td>
|
||||
<td port="p6r">6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GND</td>
|
||||
<td></td>
|
||||
<td port="p7r">7</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
> fillcolor="#FFFFFF" shape=box style=filled]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X2:p1l:w -- X2:p5l:w
|
||||
X2:p5l:w -- X2:p7l:w
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X2:p2l:w -- X2:p6l:w
|
||||
edge [headclip=true style=bold tailclip=true]
|
||||
X2 [label=<
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1"><tr>
|
||||
<td balign="left">X2</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1"><tr>
|
||||
<td balign="left">Molex KK 254</td>
|
||||
<td balign="left">female</td>
|
||||
<td balign="left">7-pin</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1">
|
||||
<tr>
|
||||
<td port="p1l">1</td>
|
||||
<td>GND</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p2l">2</td>
|
||||
<td>VCC</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p3l">3</td>
|
||||
<td>RX</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p4l">4</td>
|
||||
<td>TX</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p5l">5</td>
|
||||
<td>GND</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p6l">6</td>
|
||||
<td>VCC</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p7l">7</td>
|
||||
<td>GND</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
> fillcolor="#FFFFFF" shape=box style=filled]
|
||||
edge [color="#000000:#895956:#000000"]
|
||||
X1:p1r:e -- W1:w1:w
|
||||
W1:w1:e -- X2:p1l:w
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2r:e -- W1:w2:w
|
||||
W1:w2:e -- X2:p2l:w
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
X1:p3r:e -- W1:w3:w
|
||||
W1:w3:e -- X2:p4l:w
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X1:p4r:e -- W1:w4:w
|
||||
W1:w4:e -- X2:p3l:w
|
||||
edge [color="#000000"]
|
||||
X1:p1r:e -- W1:ws:w
|
||||
W1 [label=<
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1"><tr>
|
||||
<td balign="left">W1</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1"><tr>
|
||||
<td balign="left">Serial</td>
|
||||
<td balign="left">4x</td>
|
||||
<td balign="left">0.25 mm² (24 AWG)</td>
|
||||
<td balign="left">+ S</td>
|
||||
<td balign="left">0.2 m</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellborder="0">
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td>X1:1:GND</td>
|
||||
<td>
|
||||
1:BN
|
||||
</td>
|
||||
<td>X2:1:GND</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" border="0" cellspacing="0" cellpadding="0" port="w1" height="6">
|
||||
<table cellspacing="0" cellborder="0" border="0">
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#895956" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>X1:2:VCC</td>
|
||||
<td>
|
||||
2:RD
|
||||
</td>
|
||||
<td>X2:2:VCC</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" border="0" cellspacing="0" cellpadding="0" port="w2" height="6">
|
||||
<table cellspacing="0" cellborder="0" border="0">
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#ff0000" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>X1:3:RX</td>
|
||||
<td>
|
||||
3:OG
|
||||
</td>
|
||||
<td>X2:4:TX</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" border="0" cellspacing="0" cellpadding="0" port="w3" height="6">
|
||||
<table cellspacing="0" cellborder="0" border="0">
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#ff8000" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>X1:4:TX</td>
|
||||
<td>
|
||||
4:YE
|
||||
</td>
|
||||
<td>X2:3:RX</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" border="0" cellspacing="0" cellpadding="0" port="w4" height="6">
|
||||
<table cellspacing="0" cellborder="0" border="0">
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#ffff00" border="0"></td></tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td>X1:1:GND</td>
|
||||
<td>Shield</td>
|
||||
<td><!-- s_out --></td>
|
||||
</tr>
|
||||
<tr><td colspan="3" cellpadding="0" height="2" bgcolor="#000000" border="0" port="ws"></td></tr>
|
||||
<tr><td> </td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
> fillcolor="#FFFFFF" shape=box style=filled]
|
||||
}
|
||||
321
examples/ex16.html
generated
Normal file
321
examples/ex16.html
generated
Normal file
@ -0,0 +1,321 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"><head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="generator" content="WireViz 0.5-dev - https://github.com/formatc1702/WireViz">
|
||||
<title>ex16</title>
|
||||
<style>
|
||||
|
||||
#bom table, th, td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#bom th, td {
|
||||
padding: 4px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.bom_col_qty {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head><body style="font-family:arial;background-color:#ffffff">
|
||||
<h1>ex16</h1>
|
||||
<h2>Diagram</h2>
|
||||
|
||||
<div id="description">
|
||||
<!-- %description% -->
|
||||
</div>
|
||||
|
||||
<div id="diagram">
|
||||
<!-- XML and DOCTYPE declarations from SVG file removed -->
|
||||
<!-- Generated by graphviz version 11.0.0 (20240428.1522)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="950pt" height="260pt"
|
||||
viewBox="0.00 0.00 950.25 260.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 256)">
|
||||
<polygon fill="#ffffff" stroke="none" points="-4,4 -4,-256 946.25,-256 946.25,4 -4,4"/>
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="188.25,-241 0,-241 0,0 188.25,0 188.25,-241"/>
|
||||
<polygon fill="none" stroke="black" points="0,-216.5 0,-241 188.25,-241 188.25,-216.5 0,-216.5"/>
|
||||
<text text-anchor="start" x="85.13" y="-223.7" font-family="arial" font-size="14.00">X1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-192 0,-216.5 97.25,-216.5 97.25,-192 0,-192"/>
|
||||
<text text-anchor="start" x="4" y="-199.2" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polygon fill="none" stroke="black" points="97.25,-192 97.25,-216.5 148.75,-216.5 148.75,-192 97.25,-192"/>
|
||||
<text text-anchor="start" x="101.25" y="-199.2" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="148.75,-192 148.75,-216.5 188.25,-216.5 188.25,-192 148.75,-192"/>
|
||||
<text text-anchor="start" x="152.75" y="-199.2" font-family="arial" font-size="14.00">7-pin</text>
|
||||
<polygon fill="none" stroke="black" points="0,-168 0,-192 71.75,-192 71.75,-168 0,-168"/>
|
||||
<polygon fill="none" stroke="black" points="71.75,-168 71.75,-192 139.5,-192 139.5,-168 71.75,-168"/>
|
||||
<text text-anchor="start" x="91.75" y="-174.7" font-family="arial" font-size="14.00">SH2</text>
|
||||
<polygon fill="none" stroke="black" points="139.5,-168 139.5,-192 188.25,-192 188.25,-168 139.5,-168"/>
|
||||
<polygon fill="none" stroke="black" points="0,-144 0,-168 71.75,-168 71.75,-144 0,-144"/>
|
||||
<text text-anchor="start" x="20.13" y="-150.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-144 71.75,-168 139.5,-168 139.5,-144 71.75,-144"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-144 139.5,-168 188.25,-168 188.25,-144 139.5,-144"/>
|
||||
<text text-anchor="start" x="159.75" y="-150.7" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-120 0,-144 71.75,-144 71.75,-120 0,-120"/>
|
||||
<text text-anchor="start" x="20.5" y="-126.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-120 71.75,-144 139.5,-144 139.5,-120 71.75,-120"/>
|
||||
<text text-anchor="start" x="98.88" y="-127.72" font-family="Sans" font-size="12.00" fill="#ff0000">⬤</text>
|
||||
<polygon fill="none" stroke="black" points="139.5,-120 139.5,-144 188.25,-144 188.25,-120 139.5,-120"/>
|
||||
<text text-anchor="start" x="159.75" y="-126.7" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="0,-96 0,-120 71.75,-120 71.75,-96 0,-96"/>
|
||||
<text text-anchor="start" x="25.75" y="-102.7" font-family="arial" font-size="14.00">RX</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-96 71.75,-120 139.5,-120 139.5,-96 71.75,-96"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-96 139.5,-120 188.25,-120 188.25,-96 139.5,-96"/>
|
||||
<text text-anchor="start" x="159.75" y="-102.7" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="0,-72 0,-96 71.75,-96 71.75,-72 0,-72"/>
|
||||
<text text-anchor="start" x="26.5" y="-78.7" font-family="arial" font-size="14.00">TX</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-72 71.75,-96 139.5,-96 139.5,-72 71.75,-72"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-72 139.5,-96 188.25,-96 188.25,-72 139.5,-72"/>
|
||||
<text text-anchor="start" x="159.75" y="-78.7" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="0,-48 0,-72 71.75,-72 71.75,-48 0,-48"/>
|
||||
<text text-anchor="start" x="20.13" y="-54.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-48 71.75,-72 139.5,-72 139.5,-48 71.75,-48"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-48 139.5,-72 188.25,-72 188.25,-48 139.5,-48"/>
|
||||
<text text-anchor="start" x="159.75" y="-54.7" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="0,-24 0,-48 71.75,-48 71.75,-24 0,-24"/>
|
||||
<text text-anchor="start" x="20.5" y="-30.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-24 71.75,-48 139.5,-48 139.5,-24 71.75,-24"/>
|
||||
<text text-anchor="start" x="98.88" y="-31.73" font-family="Sans" font-size="12.00" fill="#ff0000">⬤</text>
|
||||
<polygon fill="none" stroke="black" points="139.5,-24 139.5,-48 188.25,-48 188.25,-24 139.5,-24"/>
|
||||
<text text-anchor="start" x="159.75" y="-30.7" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="0,0 0,-24 71.75,-24 71.75,0 0,0"/>
|
||||
<text text-anchor="start" x="20.13" y="-6.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,0 71.75,-24 139.5,-24 139.5,0 71.75,0"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,0 139.5,-24 188.25,-24 188.25,0 139.5,0"/>
|
||||
<text text-anchor="start" x="159.75" y="-6.7" font-family="arial" font-size="14.00">7</text>
|
||||
</g>
|
||||
<!-- X1--X1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:e--X1:e</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.63,-154.04C251.08,-166 376.75,-166 374.75,-108 376.75,-50 251.08,-50 188.63,-61.96"/>
|
||||
<path fill="none" stroke="#ff66cc" stroke-width="2" d="M188.25,-156C251.08,-168 376.75,-168 376.75,-108 376.75,-48 251.08,-48 188.25,-60"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M187.88,-157.96C251.08,-170 376.75,-170 378.75,-108 376.75,-46 251.08,-46 187.88,-58.04"/>
|
||||
</g>
|
||||
<!-- X1--X1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>X1:e--X1:e</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.63,-58.04C251.08,-70 376.75,-70 374.75,-36 376.75,-2 251.08,-2 188.63,-13.96"/>
|
||||
<path fill="none" stroke="#ff66cc" stroke-width="2" d="M188.25,-60C251.08,-72 376.75,-72 376.75,-36 376.75,0 251.08,0 188.25,-12"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M187.88,-61.96C251.08,-74 376.75,-74 378.75,-36 376.75,2 251.08,2 187.88,-10.04"/>
|
||||
</g>
|
||||
<!-- X1--X1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:c--X1:c</title>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M105.62,-132C105.62,-132 105.62,-36 105.62,-36"/>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node2" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="610,-252 332.25,-252 332.25,-17 610,-17 610,-252"/>
|
||||
<polygon fill="none" stroke="black" points="332.25,-227.5 332.25,-252 610,-252 610,-227.5 332.25,-227.5"/>
|
||||
<text text-anchor="start" x="459.87" y="-234.7" font-family="arial" font-size="14.00">W1</text>
|
||||
<polygon fill="none" stroke="black" points="332.25,-203 332.25,-227.5 376.25,-227.5 376.25,-203 332.25,-203"/>
|
||||
<text text-anchor="start" x="336.25" y="-210.2" font-family="arial" font-size="14.00">Serial</text>
|
||||
<polygon fill="none" stroke="black" points="376.25,-203 376.25,-227.5 399.25,-227.5 399.25,-203 376.25,-203"/>
|
||||
<text text-anchor="start" x="380.25" y="-210.2" font-family="arial" font-size="14.00">4x</text>
|
||||
<polygon fill="none" stroke="black" points="399.25,-203 399.25,-227.5 536.25,-227.5 536.25,-203 399.25,-203"/>
|
||||
<text text-anchor="start" x="403.25" y="-210.2" font-family="arial" font-size="14.00">0.25 mm² (24 AWG)</text>
|
||||
<polygon fill="none" stroke="black" points="536.25,-203 536.25,-227.5 566,-227.5 566,-203 536.25,-203"/>
|
||||
<text text-anchor="start" x="540.25" y="-210.2" font-family="arial" font-size="14.00">+ S</text>
|
||||
<polygon fill="none" stroke="black" points="566,-203 566,-227.5 610,-227.5 610,-203 566,-203"/>
|
||||
<text text-anchor="start" x="570" y="-210.2" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<text text-anchor="start" x="376.16" y="-187.7" font-family="arial" font-size="14.00"> </text>
|
||||
<text text-anchor="start" x="345.41" y="-167.7" font-family="arial" font-size="14.00">X1:1:GND</text>
|
||||
<text text-anchor="start" x="438.5" y="-167.7" font-family="arial" font-size="14.00">     1:BN    </text>
|
||||
<text text-anchor="start" x="531.58" y="-167.7" font-family="arial" font-size="14.00">X2:1:GND</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-161 332.25,-163 610,-163 610,-161 332.25,-161"/>
|
||||
<polygon fill="#895956" stroke="none" points="332.25,-159 332.25,-161 610,-161 610,-159 332.25,-159"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-157 332.25,-159 610,-159 610,-157 332.25,-157"/>
|
||||
<text text-anchor="start" x="345.79" y="-141.7" font-family="arial" font-size="14.00">X1:2:VCC</text>
|
||||
<text text-anchor="start" x="437.75" y="-141.7" font-family="arial" font-size="14.00">     2:RD    </text>
|
||||
<text text-anchor="start" x="531.95" y="-141.7" font-family="arial" font-size="14.00">X2:2:VCC</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-135 332.25,-137 610,-137 610,-135 332.25,-135"/>
|
||||
<polygon fill="#ff0000" stroke="none" points="332.25,-133 332.25,-135 610,-135 610,-133 332.25,-133"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-131 332.25,-133 610,-133 610,-131 332.25,-131"/>
|
||||
<text text-anchor="start" x="351.04" y="-115.7" font-family="arial" font-size="14.00">X1:3:RX</text>
|
||||
<text text-anchor="start" x="437" y="-115.7" font-family="arial" font-size="14.00">     3:OG    </text>
|
||||
<text text-anchor="start" x="537.95" y="-115.7" font-family="arial" font-size="14.00">X2:4:TX</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-109 332.25,-111 610,-111 610,-109 332.25,-109"/>
|
||||
<polygon fill="#ff8000" stroke="none" points="332.25,-107 332.25,-109 610,-109 610,-107 332.25,-107"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-105 332.25,-107 610,-107 610,-105 332.25,-105"/>
|
||||
<text text-anchor="start" x="351.79" y="-89.7" font-family="arial" font-size="14.00">X1:4:TX</text>
|
||||
<text text-anchor="start" x="438.87" y="-89.7" font-family="arial" font-size="14.00">     4:YE    </text>
|
||||
<text text-anchor="start" x="537.2" y="-89.7" font-family="arial" font-size="14.00">X2:3:RX</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-83 332.25,-85 610,-85 610,-83 332.25,-83"/>
|
||||
<polygon fill="#ffff00" stroke="none" points="332.25,-81 332.25,-83 610,-83 610,-81 332.25,-81"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-79 332.25,-81 610,-81 610,-79 332.25,-79"/>
|
||||
<text text-anchor="start" x="376.16" y="-63.7" font-family="arial" font-size="14.00"> </text>
|
||||
<text text-anchor="start" x="345.41" y="-43.7" font-family="arial" font-size="14.00">X1:1:GND</text>
|
||||
<text text-anchor="start" x="451.25" y="-43.7" font-family="arial" font-size="14.00">Shield</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-37 332.25,-39 610,-39 610,-37 332.25,-37"/>
|
||||
<text text-anchor="start" x="376.16" y="-21.7" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-154C252.76,-154.06 268.72,-158.06 332.25,-158"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M188.25,-156C252.27,-156 268.23,-160 332.25,-160"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-158C251.78,-157.94 267.74,-161.94 332.25,-162"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-130C252.51,-130.02 268.49,-132.02 332.25,-132"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M188.25,-132C252.26,-132 268.24,-134 332.25,-134"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-134C252.01,-133.98 267.99,-135.98 332.25,-136"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-106C252.25,-106 268.25,-106 332.25,-106"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M188.25,-108C252.25,-108 268.25,-108 332.25,-108"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-110C252.25,-110 268.25,-110 332.25,-110"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-82C252.01,-82.02 267.99,-80.02 332.25,-80"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M188.25,-84C252.26,-84 268.24,-82 332.25,-82"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-86C252.51,-85.98 268.49,-83.98 332.25,-84"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-156C270.99,-156 249.51,-38 332.25,-38"/>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node3" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="942.25,-220 754,-220 754,-3 942.25,-3 942.25,-220"/>
|
||||
<polygon fill="none" stroke="black" points="754,-195.5 754,-220 942.25,-220 942.25,-195.5 754,-195.5"/>
|
||||
<text text-anchor="start" x="839.12" y="-202.7" font-family="arial" font-size="14.00">X2</text>
|
||||
<polygon fill="none" stroke="black" points="754,-171 754,-195.5 851.25,-195.5 851.25,-171 754,-171"/>
|
||||
<text text-anchor="start" x="758" y="-178.2" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polygon fill="none" stroke="black" points="851.25,-171 851.25,-195.5 902.75,-195.5 902.75,-171 851.25,-171"/>
|
||||
<text text-anchor="start" x="855.25" y="-178.2" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="902.75,-171 902.75,-195.5 942.25,-195.5 942.25,-171 902.75,-171"/>
|
||||
<text text-anchor="start" x="906.75" y="-178.2" font-family="arial" font-size="14.00">7-pin</text>
|
||||
<polygon fill="none" stroke="black" points="754,-147 754,-171 836.62,-171 836.62,-147 754,-147"/>
|
||||
<text text-anchor="start" x="791.18" y="-153.7" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-147 836.62,-171 942.25,-171 942.25,-147 836.62,-147"/>
|
||||
<text text-anchor="start" x="873.68" y="-153.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="754,-123 754,-147 836.62,-147 836.62,-123 754,-123"/>
|
||||
<text text-anchor="start" x="791.18" y="-129.7" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-123 836.62,-147 942.25,-147 942.25,-123 836.62,-123"/>
|
||||
<text text-anchor="start" x="874.06" y="-129.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="754,-99 754,-123 836.62,-123 836.62,-99 754,-99"/>
|
||||
<text text-anchor="start" x="791.18" y="-105.7" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-99 836.62,-123 942.25,-123 942.25,-99 836.62,-99"/>
|
||||
<text text-anchor="start" x="879.31" y="-105.7" font-family="arial" font-size="14.00">RX</text>
|
||||
<polygon fill="none" stroke="black" points="754,-75 754,-99 836.62,-99 836.62,-75 754,-75"/>
|
||||
<text text-anchor="start" x="791.18" y="-81.7" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-75 836.62,-99 942.25,-99 942.25,-75 836.62,-75"/>
|
||||
<text text-anchor="start" x="880.06" y="-81.7" font-family="arial" font-size="14.00">TX</text>
|
||||
<polygon fill="none" stroke="black" points="754,-51 754,-75 836.62,-75 836.62,-51 754,-51"/>
|
||||
<text text-anchor="start" x="791.18" y="-57.7" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-51 836.62,-75 942.25,-75 942.25,-51 836.62,-51"/>
|
||||
<text text-anchor="start" x="873.68" y="-57.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="754,-27 754,-51 836.62,-51 836.62,-27 754,-27"/>
|
||||
<text text-anchor="start" x="791.18" y="-33.7" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-27 836.62,-51 942.25,-51 942.25,-27 836.62,-27"/>
|
||||
<text text-anchor="start" x="874.06" y="-33.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="754,-3 754,-27 836.62,-27 836.62,-3 754,-3"/>
|
||||
<text text-anchor="start" x="791.18" y="-9.7" font-family="arial" font-size="14.00">7</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-3 836.62,-27 942.25,-27 942.25,-3 836.62,-3"/>
|
||||
<text text-anchor="start" x="873.68" y="-9.7" font-family="arial" font-size="14.00">GND</text>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-158C673.88,-158 689.88,-157 754,-157"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M610,-160C674,-160 690,-159 754,-159"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-162C674.13,-162 690.13,-161 754,-161"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-132C674.13,-132 690.13,-133 754,-133"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M610,-134C674,-134 690,-135 754,-135"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-136C673.88,-136 689.88,-137 754,-137"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-106C673.04,-106.86 687.68,-85.86 754,-85"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M610,-108C674.68,-108 689.32,-87 754,-87"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-110C676.32,-109.14 690.96,-88.14 754,-89"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-80C677.1,-81.16 690.54,-110.16 754,-109"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M610,-82C675.28,-82 688.72,-111 754,-111"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-84C673.47,-82.84 686.91,-111.84 754,-113"/>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754.38,-160.96C691.17,-173 565.5,-173 563.5,-111 565.5,-49 691.17,-49 754.38,-61.04"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754,-159C691.17,-171 565.5,-171 565.5,-111 565.5,-51 691.17,-51 754,-63"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M753.63,-157.04C691.17,-169 565.5,-169 567.5,-111 565.5,-53 691.17,-53 753.63,-64.96"/>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754.38,-64.96C691.17,-77 565.5,-77 563.5,-39 565.5,-1 691.17,-1 754.38,-13.04"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754,-63C691.17,-75 565.5,-75 565.5,-39 565.5,-3 691.17,-3 754,-15"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M753.63,-61.04C691.17,-73 565.5,-73 567.5,-39 565.5,-5 691.17,-5 753.63,-16.96"/>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754.38,-136.96C691.17,-149 565.5,-149 563.5,-87 565.5,-25 691.17,-25 754.38,-37.04"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754,-135C691.17,-147 565.5,-147 565.5,-87 565.5,-27 691.17,-27 754,-39"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M753.63,-133.04C691.17,-145 565.5,-145 567.5,-87 565.5,-29 691.17,-29 753.63,-40.96"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="notes">
|
||||
<!-- %notes% -->
|
||||
</div>
|
||||
|
||||
<h2>Bill of Materials</h2>
|
||||
|
||||
<div id="bom">
|
||||
<table class="bom">
|
||||
<tr>
|
||||
<th class="bom_col_id">Id</th>
|
||||
<th class="bom_col_description">Description</th>
|
||||
<th class="bom_col_qty">Qty</th>
|
||||
<th class="bom_col_unit">Unit</th>
|
||||
<th class="bom_col_designators">Designators</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bom_col_id">1</td>
|
||||
<td class="bom_col_description">Cable, Serial, 4 x 0.25 mm² shielded</td>
|
||||
<td class="bom_col_qty">0.2</td>
|
||||
<td class="bom_col_unit">m</td>
|
||||
<td class="bom_col_designators">W1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bom_col_id">2</td>
|
||||
<td class="bom_col_description">Connector, Molex KK 254, female, 7 pins</td>
|
||||
<td class="bom_col_qty">2</td>
|
||||
<td class="bom_col_unit"></td>
|
||||
<td class="bom_col_designators">X1, X2</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</body></html>
|
||||
BIN
examples/ex16.png
generated
Normal file
BIN
examples/ex16.png
generated
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
255
examples/ex16.svg
generated
Normal file
255
examples/ex16.svg
generated
Normal file
@ -0,0 +1,255 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 11.0.0 (20240428.1522)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="950pt" height="260pt"
|
||||
viewBox="0.00 0.00 950.25 260.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 256)">
|
||||
<polygon fill="#ffffff" stroke="none" points="-4,4 -4,-256 946.25,-256 946.25,4 -4,4"/>
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="188.25,-241 0,-241 0,0 188.25,0 188.25,-241"/>
|
||||
<polygon fill="none" stroke="black" points="0,-216.5 0,-241 188.25,-241 188.25,-216.5 0,-216.5"/>
|
||||
<text text-anchor="start" x="85.13" y="-223.7" font-family="arial" font-size="14.00">X1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-192 0,-216.5 97.25,-216.5 97.25,-192 0,-192"/>
|
||||
<text text-anchor="start" x="4" y="-199.2" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polygon fill="none" stroke="black" points="97.25,-192 97.25,-216.5 148.75,-216.5 148.75,-192 97.25,-192"/>
|
||||
<text text-anchor="start" x="101.25" y="-199.2" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="148.75,-192 148.75,-216.5 188.25,-216.5 188.25,-192 148.75,-192"/>
|
||||
<text text-anchor="start" x="152.75" y="-199.2" font-family="arial" font-size="14.00">7-pin</text>
|
||||
<polygon fill="none" stroke="black" points="0,-168 0,-192 71.75,-192 71.75,-168 0,-168"/>
|
||||
<polygon fill="none" stroke="black" points="71.75,-168 71.75,-192 139.5,-192 139.5,-168 71.75,-168"/>
|
||||
<text text-anchor="start" x="91.75" y="-174.7" font-family="arial" font-size="14.00">SH2</text>
|
||||
<polygon fill="none" stroke="black" points="139.5,-168 139.5,-192 188.25,-192 188.25,-168 139.5,-168"/>
|
||||
<polygon fill="none" stroke="black" points="0,-144 0,-168 71.75,-168 71.75,-144 0,-144"/>
|
||||
<text text-anchor="start" x="20.13" y="-150.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-144 71.75,-168 139.5,-168 139.5,-144 71.75,-144"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-144 139.5,-168 188.25,-168 188.25,-144 139.5,-144"/>
|
||||
<text text-anchor="start" x="159.75" y="-150.7" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-120 0,-144 71.75,-144 71.75,-120 0,-120"/>
|
||||
<text text-anchor="start" x="20.5" y="-126.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-120 71.75,-144 139.5,-144 139.5,-120 71.75,-120"/>
|
||||
<text text-anchor="start" x="98.88" y="-127.72" font-family="Sans" font-size="12.00" fill="#ff0000">⬤</text>
|
||||
<polygon fill="none" stroke="black" points="139.5,-120 139.5,-144 188.25,-144 188.25,-120 139.5,-120"/>
|
||||
<text text-anchor="start" x="159.75" y="-126.7" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="0,-96 0,-120 71.75,-120 71.75,-96 0,-96"/>
|
||||
<text text-anchor="start" x="25.75" y="-102.7" font-family="arial" font-size="14.00">RX</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-96 71.75,-120 139.5,-120 139.5,-96 71.75,-96"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-96 139.5,-120 188.25,-120 188.25,-96 139.5,-96"/>
|
||||
<text text-anchor="start" x="159.75" y="-102.7" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="0,-72 0,-96 71.75,-96 71.75,-72 0,-72"/>
|
||||
<text text-anchor="start" x="26.5" y="-78.7" font-family="arial" font-size="14.00">TX</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-72 71.75,-96 139.5,-96 139.5,-72 71.75,-72"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-72 139.5,-96 188.25,-96 188.25,-72 139.5,-72"/>
|
||||
<text text-anchor="start" x="159.75" y="-78.7" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="0,-48 0,-72 71.75,-72 71.75,-48 0,-48"/>
|
||||
<text text-anchor="start" x="20.13" y="-54.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-48 71.75,-72 139.5,-72 139.5,-48 71.75,-48"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,-48 139.5,-72 188.25,-72 188.25,-48 139.5,-48"/>
|
||||
<text text-anchor="start" x="159.75" y="-54.7" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="0,-24 0,-48 71.75,-48 71.75,-24 0,-24"/>
|
||||
<text text-anchor="start" x="20.5" y="-30.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,-24 71.75,-48 139.5,-48 139.5,-24 71.75,-24"/>
|
||||
<text text-anchor="start" x="98.88" y="-31.73" font-family="Sans" font-size="12.00" fill="#ff0000">⬤</text>
|
||||
<polygon fill="none" stroke="black" points="139.5,-24 139.5,-48 188.25,-48 188.25,-24 139.5,-24"/>
|
||||
<text text-anchor="start" x="159.75" y="-30.7" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="0,0 0,-24 71.75,-24 71.75,0 0,0"/>
|
||||
<text text-anchor="start" x="20.13" y="-6.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="71.75,0 71.75,-24 139.5,-24 139.5,0 71.75,0"/>
|
||||
<polygon fill="none" stroke="black" points="139.5,0 139.5,-24 188.25,-24 188.25,0 139.5,0"/>
|
||||
<text text-anchor="start" x="159.75" y="-6.7" font-family="arial" font-size="14.00">7</text>
|
||||
</g>
|
||||
<!-- X1--X1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:e--X1:e</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.63,-154.04C251.08,-166 376.75,-166 374.75,-108 376.75,-50 251.08,-50 188.63,-61.96"/>
|
||||
<path fill="none" stroke="#ff66cc" stroke-width="2" d="M188.25,-156C251.08,-168 376.75,-168 376.75,-108 376.75,-48 251.08,-48 188.25,-60"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M187.88,-157.96C251.08,-170 376.75,-170 378.75,-108 376.75,-46 251.08,-46 187.88,-58.04"/>
|
||||
</g>
|
||||
<!-- X1--X1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>X1:e--X1:e</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.63,-58.04C251.08,-70 376.75,-70 374.75,-36 376.75,-2 251.08,-2 188.63,-13.96"/>
|
||||
<path fill="none" stroke="#ff66cc" stroke-width="2" d="M188.25,-60C251.08,-72 376.75,-72 376.75,-36 376.75,0 251.08,0 188.25,-12"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M187.88,-61.96C251.08,-74 376.75,-74 378.75,-36 376.75,2 251.08,2 187.88,-10.04"/>
|
||||
</g>
|
||||
<!-- X1--X1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:c--X1:c</title>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M105.62,-132C105.62,-132 105.62,-36 105.62,-36"/>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node2" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="610,-252 332.25,-252 332.25,-17 610,-17 610,-252"/>
|
||||
<polygon fill="none" stroke="black" points="332.25,-227.5 332.25,-252 610,-252 610,-227.5 332.25,-227.5"/>
|
||||
<text text-anchor="start" x="459.87" y="-234.7" font-family="arial" font-size="14.00">W1</text>
|
||||
<polygon fill="none" stroke="black" points="332.25,-203 332.25,-227.5 376.25,-227.5 376.25,-203 332.25,-203"/>
|
||||
<text text-anchor="start" x="336.25" y="-210.2" font-family="arial" font-size="14.00">Serial</text>
|
||||
<polygon fill="none" stroke="black" points="376.25,-203 376.25,-227.5 399.25,-227.5 399.25,-203 376.25,-203"/>
|
||||
<text text-anchor="start" x="380.25" y="-210.2" font-family="arial" font-size="14.00">4x</text>
|
||||
<polygon fill="none" stroke="black" points="399.25,-203 399.25,-227.5 536.25,-227.5 536.25,-203 399.25,-203"/>
|
||||
<text text-anchor="start" x="403.25" y="-210.2" font-family="arial" font-size="14.00">0.25 mm² (24 AWG)</text>
|
||||
<polygon fill="none" stroke="black" points="536.25,-203 536.25,-227.5 566,-227.5 566,-203 536.25,-203"/>
|
||||
<text text-anchor="start" x="540.25" y="-210.2" font-family="arial" font-size="14.00">+ S</text>
|
||||
<polygon fill="none" stroke="black" points="566,-203 566,-227.5 610,-227.5 610,-203 566,-203"/>
|
||||
<text text-anchor="start" x="570" y="-210.2" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<text text-anchor="start" x="376.16" y="-187.7" font-family="arial" font-size="14.00"> </text>
|
||||
<text text-anchor="start" x="345.41" y="-167.7" font-family="arial" font-size="14.00">X1:1:GND</text>
|
||||
<text text-anchor="start" x="438.5" y="-167.7" font-family="arial" font-size="14.00">     1:BN    </text>
|
||||
<text text-anchor="start" x="531.58" y="-167.7" font-family="arial" font-size="14.00">X2:1:GND</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-161 332.25,-163 610,-163 610,-161 332.25,-161"/>
|
||||
<polygon fill="#895956" stroke="none" points="332.25,-159 332.25,-161 610,-161 610,-159 332.25,-159"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-157 332.25,-159 610,-159 610,-157 332.25,-157"/>
|
||||
<text text-anchor="start" x="345.79" y="-141.7" font-family="arial" font-size="14.00">X1:2:VCC</text>
|
||||
<text text-anchor="start" x="437.75" y="-141.7" font-family="arial" font-size="14.00">     2:RD    </text>
|
||||
<text text-anchor="start" x="531.95" y="-141.7" font-family="arial" font-size="14.00">X2:2:VCC</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-135 332.25,-137 610,-137 610,-135 332.25,-135"/>
|
||||
<polygon fill="#ff0000" stroke="none" points="332.25,-133 332.25,-135 610,-135 610,-133 332.25,-133"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-131 332.25,-133 610,-133 610,-131 332.25,-131"/>
|
||||
<text text-anchor="start" x="351.04" y="-115.7" font-family="arial" font-size="14.00">X1:3:RX</text>
|
||||
<text text-anchor="start" x="437" y="-115.7" font-family="arial" font-size="14.00">     3:OG    </text>
|
||||
<text text-anchor="start" x="537.95" y="-115.7" font-family="arial" font-size="14.00">X2:4:TX</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-109 332.25,-111 610,-111 610,-109 332.25,-109"/>
|
||||
<polygon fill="#ff8000" stroke="none" points="332.25,-107 332.25,-109 610,-109 610,-107 332.25,-107"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-105 332.25,-107 610,-107 610,-105 332.25,-105"/>
|
||||
<text text-anchor="start" x="351.79" y="-89.7" font-family="arial" font-size="14.00">X1:4:TX</text>
|
||||
<text text-anchor="start" x="438.87" y="-89.7" font-family="arial" font-size="14.00">     4:YE    </text>
|
||||
<text text-anchor="start" x="537.2" y="-89.7" font-family="arial" font-size="14.00">X2:3:RX</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-83 332.25,-85 610,-85 610,-83 332.25,-83"/>
|
||||
<polygon fill="#ffff00" stroke="none" points="332.25,-81 332.25,-83 610,-83 610,-81 332.25,-81"/>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-79 332.25,-81 610,-81 610,-79 332.25,-79"/>
|
||||
<text text-anchor="start" x="376.16" y="-63.7" font-family="arial" font-size="14.00"> </text>
|
||||
<text text-anchor="start" x="345.41" y="-43.7" font-family="arial" font-size="14.00">X1:1:GND</text>
|
||||
<text text-anchor="start" x="451.25" y="-43.7" font-family="arial" font-size="14.00">Shield</text>
|
||||
<polygon fill="#000000" stroke="none" points="332.25,-37 332.25,-39 610,-39 610,-37 332.25,-37"/>
|
||||
<text text-anchor="start" x="376.16" y="-21.7" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-154C252.76,-154.06 268.72,-158.06 332.25,-158"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M188.25,-156C252.27,-156 268.23,-160 332.25,-160"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-158C251.78,-157.94 267.74,-161.94 332.25,-162"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-130C252.51,-130.02 268.49,-132.02 332.25,-132"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M188.25,-132C252.26,-132 268.24,-134 332.25,-134"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-134C252.01,-133.98 267.99,-135.98 332.25,-136"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-106C252.25,-106 268.25,-106 332.25,-106"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M188.25,-108C252.25,-108 268.25,-108 332.25,-108"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-110C252.25,-110 268.25,-110 332.25,-110"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-82C252.01,-82.02 267.99,-80.02 332.25,-80"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M188.25,-84C252.26,-84 268.24,-82 332.25,-82"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-86C252.51,-85.98 268.49,-83.98 332.25,-84"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M188.25,-156C270.99,-156 249.51,-38 332.25,-38"/>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node3" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="942.25,-220 754,-220 754,-3 942.25,-3 942.25,-220"/>
|
||||
<polygon fill="none" stroke="black" points="754,-195.5 754,-220 942.25,-220 942.25,-195.5 754,-195.5"/>
|
||||
<text text-anchor="start" x="839.12" y="-202.7" font-family="arial" font-size="14.00">X2</text>
|
||||
<polygon fill="none" stroke="black" points="754,-171 754,-195.5 851.25,-195.5 851.25,-171 754,-171"/>
|
||||
<text text-anchor="start" x="758" y="-178.2" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polygon fill="none" stroke="black" points="851.25,-171 851.25,-195.5 902.75,-195.5 902.75,-171 851.25,-171"/>
|
||||
<text text-anchor="start" x="855.25" y="-178.2" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="902.75,-171 902.75,-195.5 942.25,-195.5 942.25,-171 902.75,-171"/>
|
||||
<text text-anchor="start" x="906.75" y="-178.2" font-family="arial" font-size="14.00">7-pin</text>
|
||||
<polygon fill="none" stroke="black" points="754,-147 754,-171 836.62,-171 836.62,-147 754,-147"/>
|
||||
<text text-anchor="start" x="791.18" y="-153.7" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-147 836.62,-171 942.25,-171 942.25,-147 836.62,-147"/>
|
||||
<text text-anchor="start" x="873.68" y="-153.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="754,-123 754,-147 836.62,-147 836.62,-123 754,-123"/>
|
||||
<text text-anchor="start" x="791.18" y="-129.7" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-123 836.62,-147 942.25,-147 942.25,-123 836.62,-123"/>
|
||||
<text text-anchor="start" x="874.06" y="-129.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="754,-99 754,-123 836.62,-123 836.62,-99 754,-99"/>
|
||||
<text text-anchor="start" x="791.18" y="-105.7" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-99 836.62,-123 942.25,-123 942.25,-99 836.62,-99"/>
|
||||
<text text-anchor="start" x="879.31" y="-105.7" font-family="arial" font-size="14.00">RX</text>
|
||||
<polygon fill="none" stroke="black" points="754,-75 754,-99 836.62,-99 836.62,-75 754,-75"/>
|
||||
<text text-anchor="start" x="791.18" y="-81.7" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-75 836.62,-99 942.25,-99 942.25,-75 836.62,-75"/>
|
||||
<text text-anchor="start" x="880.06" y="-81.7" font-family="arial" font-size="14.00">TX</text>
|
||||
<polygon fill="none" stroke="black" points="754,-51 754,-75 836.62,-75 836.62,-51 754,-51"/>
|
||||
<text text-anchor="start" x="791.18" y="-57.7" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-51 836.62,-75 942.25,-75 942.25,-51 836.62,-51"/>
|
||||
<text text-anchor="start" x="873.68" y="-57.7" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="754,-27 754,-51 836.62,-51 836.62,-27 754,-27"/>
|
||||
<text text-anchor="start" x="791.18" y="-33.7" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-27 836.62,-51 942.25,-51 942.25,-27 836.62,-27"/>
|
||||
<text text-anchor="start" x="874.06" y="-33.7" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polygon fill="none" stroke="black" points="754,-3 754,-27 836.62,-27 836.62,-3 754,-3"/>
|
||||
<text text-anchor="start" x="791.18" y="-9.7" font-family="arial" font-size="14.00">7</text>
|
||||
<polygon fill="none" stroke="black" points="836.62,-3 836.62,-27 942.25,-27 942.25,-3 836.62,-3"/>
|
||||
<text text-anchor="start" x="873.68" y="-9.7" font-family="arial" font-size="14.00">GND</text>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-158C673.88,-158 689.88,-157 754,-157"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M610,-160C674,-160 690,-159 754,-159"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-162C674.13,-162 690.13,-161 754,-161"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-132C674.13,-132 690.13,-133 754,-133"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M610,-134C674,-134 690,-135 754,-135"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-136C673.88,-136 689.88,-137 754,-137"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-106C673.04,-106.86 687.68,-85.86 754,-85"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M610,-108C674.68,-108 689.32,-87 754,-87"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-110C676.32,-109.14 690.96,-88.14 754,-89"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W1:e--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-80C677.1,-81.16 690.54,-110.16 754,-109"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M610,-82C675.28,-82 688.72,-111 754,-111"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-84C673.47,-82.84 686.91,-111.84 754,-113"/>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754.38,-160.96C691.17,-173 565.5,-173 563.5,-111 565.5,-49 691.17,-49 754.38,-61.04"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754,-159C691.17,-171 565.5,-171 565.5,-111 565.5,-51 691.17,-51 754,-63"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M753.63,-157.04C691.17,-169 565.5,-169 567.5,-111 565.5,-53 691.17,-53 753.63,-64.96"/>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754.38,-64.96C691.17,-77 565.5,-77 563.5,-39 565.5,-1 691.17,-1 754.38,-13.04"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754,-63C691.17,-75 565.5,-75 565.5,-39 565.5,-3 691.17,-3 754,-15"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M753.63,-61.04C691.17,-73 565.5,-73 567.5,-39 565.5,-5 691.17,-5 753.63,-16.96"/>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754.38,-136.96C691.17,-149 565.5,-149 563.5,-87 565.5,-25 691.17,-25 754.38,-37.04"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M754,-135C691.17,-147 565.5,-147 565.5,-87 565.5,-27 691.17,-27 754,-39"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M753.63,-133.04C691.17,-145 565.5,-145 567.5,-87 565.5,-29 691.17,-29 753.63,-40.96"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 19 KiB |
43
examples/ex16.yml
Normal file
43
examples/ex16.yml
Normal file
@ -0,0 +1,43 @@
|
||||
connectors:
|
||||
X1:
|
||||
type: Molex KK 254 # more information
|
||||
subtype: female
|
||||
pinlabels: [GND, VCC, RX, TX, GND, VCC, GND] # pincount is implicit in pinout
|
||||
shorts:
|
||||
SH1:
|
||||
pins: [1, 5, 7]
|
||||
color: PK
|
||||
type: loop
|
||||
SH2:
|
||||
pins: [2, 6]
|
||||
color: RD
|
||||
X2:
|
||||
type: Molex KK 254
|
||||
subtype: female
|
||||
pinlabels: [GND, VCC, RX, TX, GND, VCC, GND]
|
||||
shorts:
|
||||
SH1:
|
||||
pins: [1, 5, 7]
|
||||
type: loop
|
||||
SH2:
|
||||
pins: [2, 6]
|
||||
type: loop
|
||||
|
||||
cables:
|
||||
W1:
|
||||
color_code: IEC # auto-color wires based on a standard
|
||||
wirecount: 4 # need to specify number of wires explicitly when using a color code
|
||||
gauge: 0.25 mm2 # also accepts AWG as unit
|
||||
show_equiv: true # auto-calculate AWG equivalent from metric gauge
|
||||
length: 0.2 # length in m
|
||||
shield: true
|
||||
type: Serial
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: [1-4]
|
||||
- W1: [1-4]
|
||||
- X2: [1,2,4,3] # crossover
|
||||
- # connection from connector pin to wire shielding
|
||||
- X1: 1
|
||||
- W1: s
|
||||
@ -90,3 +90,9 @@
|
||||
[Source](ex15.yml) - [Bill of Materials](ex15.bom.tsv)
|
||||
|
||||
|
||||
## Example 16
|
||||

|
||||
|
||||
[Source](ex16.yml) - [Bill of Materials](ex16.bom.tsv)
|
||||
|
||||
|
||||
|
||||
@ -146,6 +146,7 @@ class Short:
|
||||
description: Optional[str] = None
|
||||
length: Optional[float] = None
|
||||
length_unit: Optional[str] = None
|
||||
type: Optional[MultilineHypertext] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@ -187,9 +187,6 @@ class Harness:
|
||||
)
|
||||
dot.attr("edge", style="bold", fontname=self.options.fontname)
|
||||
|
||||
# print(self.connectors)
|
||||
# print(self.connectors.values())
|
||||
|
||||
for connector in self.connectors.values():
|
||||
|
||||
# If no wires connected (except maybe loop wires)?
|
||||
@ -224,7 +221,13 @@ class Harness:
|
||||
'<table border="0" cellspacing="0" cellpadding="3" cellborder="1">'
|
||||
)
|
||||
|
||||
if len(connector.shorts) > 0:
|
||||
intShorts = False
|
||||
|
||||
for shortName in connector.shorts:
|
||||
if connector.shorts[shortName].get("type") == None or connector.shorts[shortName].get("type") == "internal":
|
||||
intShorts = True
|
||||
|
||||
if len(connector.shorts) > 0 and intShorts:
|
||||
pinhtml.append(" <tr>")
|
||||
if connector.ports_left:
|
||||
pinhtml.append(f' <td></td>')
|
||||
@ -232,6 +235,7 @@ class Harness:
|
||||
pinhtml.append(f" <td></td>")
|
||||
|
||||
for shortName in connector.shorts:
|
||||
if connector.shorts[shortName].get("type") == None or connector.shorts[shortName].get("type") == "internal":
|
||||
pinhtml.append(f' <td>{shortName}</td>')
|
||||
|
||||
if connector.ports_right:
|
||||
@ -270,12 +274,14 @@ class Harness:
|
||||
|
||||
for shortName in connector.shorts:
|
||||
short = connector.shorts[shortName]
|
||||
shPins = short.get('pins');
|
||||
shColor = short.get('color');
|
||||
shPins = short.get('pins')
|
||||
shColor = short.get('color')
|
||||
shType = short.get('type')
|
||||
# shManufacturer = short.get('manufacturer');
|
||||
# shMpn = short.get('mpn');
|
||||
# shDescription = short.get('description');
|
||||
|
||||
if shType == None or shType == "internal":
|
||||
if shColor == None:
|
||||
shColor = "BK"
|
||||
|
||||
@ -283,6 +289,9 @@ class Harness:
|
||||
pinhtml.append(f' <td port="p{pinindex+1}J"><FONT FACE="Sans" POINT-SIZE="12.0" COLOR="{wv_colors.translate_color(shColor, "HEX")}">⬤</FONT></td>')
|
||||
else:
|
||||
pinhtml.append(f' <td></td>')
|
||||
elif shType == "loop":
|
||||
pass
|
||||
|
||||
|
||||
if connector.ports_right:
|
||||
pinhtml.append(f' <td port="p{pinindex+1}r">{pinname}</td>')
|
||||
@ -320,12 +329,13 @@ class Harness:
|
||||
|
||||
for shortName in connector.shorts:
|
||||
short = connector.shorts[shortName]
|
||||
shPins = short.get('pins');
|
||||
shColor = short.get('color');
|
||||
shManufacturer = short.get('manufacturer') if short.get('manufacturer') != None else "";
|
||||
shMpn = short.get('mpn') if short.get('mpn') != None else "";
|
||||
shDescription = short.get('description') if short.get('description') != None else "";
|
||||
length = short.get('length') if short.get('length') != None else "";
|
||||
shPins = short.get('pins')
|
||||
shColor = short.get('color')
|
||||
shType = short.get('type')
|
||||
shManufacturer = short.get('manufacturer') if short.get('manufacturer') != None else ""
|
||||
shMpn = short.get('mpn') if short.get('mpn') != None else ""
|
||||
shDescription = short.get('description') if short.get('description') != None else ""
|
||||
length = short.get('length') if short.get('length') != None else ""
|
||||
if short.get('length_unit') != None and short.get('length') != None:
|
||||
length_unit = short.get('length_unit')
|
||||
elif short.get('length') == None:
|
||||
@ -357,12 +367,16 @@ class Harness:
|
||||
short = connector.shorts[shortName]
|
||||
shPins = short.get('pins');
|
||||
shColor = short.get('color');
|
||||
shType = short.get('type')
|
||||
# shManufacturer = short.get('manufacturer');
|
||||
# shMpn = short.get('mpn');
|
||||
# shDescription = short.get('description');
|
||||
|
||||
if shColor == None:
|
||||
shColor = "BK"
|
||||
|
||||
|
||||
if shType == None or shType == "internal":
|
||||
dot.attr("edge", color=str(wv_colors.translate_color(shColor, "HEX")), headclip="false", tailclip="false", style="solid,bold")
|
||||
for i in range(1, len(shPins)):
|
||||
dot.edge(
|
||||
@ -370,6 +384,22 @@ class Harness:
|
||||
f"{connector.name}:p{shPins[i]}j:c",
|
||||
straight="straight"
|
||||
)
|
||||
elif shType == "loop":
|
||||
dot.attr("edge", color=f'#000000:{wv_colors.translate_color(shColor, "HEX")}:#000000')
|
||||
if connector.ports_left:
|
||||
loop_side = "l"
|
||||
loop_dir = "w"
|
||||
elif connector.ports_right:
|
||||
loop_side = "r"
|
||||
loop_dir = "e"
|
||||
else:
|
||||
raise Exception("No side for loops")
|
||||
|
||||
for i in range(1, len(shPins)):
|
||||
dot.edge(
|
||||
f"{connector.name}:p{shPins[i - 1]}{loop_side}:{loop_dir}",
|
||||
f"{connector.name}:p{shPins[i]}{loop_side}:{loop_dir}",
|
||||
)
|
||||
|
||||
dot.attr("edge", headclip="true", tailclip="true", style="bold")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user