Merge branch 'dev'
23
examples/demo01.gv
Normal file
@ -0,0 +1,23 @@
|
||||
graph {
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor=transparent fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style=filled]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{D-Sub|female|9-pin}|{{DCD|RX|TX|DTR|GND|DSR|RTS|CTS|RI}|{<p1r>1|<p2r>2|<p3r>3|<p4r>4|<p5r>5|<p6r>6|<p7r>7|<p8r>8|<p9r>9}}"]
|
||||
X2 [label="X2|{Molex KK 254|female|6-pin}|{{<p1l>1|<p2l>2|<p3l>3|<p4l>4|<p5l>5|<p6l>6}|{GND|RX|TX|N/C|OUT|IN}}"]
|
||||
edge [color="#000000"]
|
||||
X2:p5l:w -- X2:p6l:w
|
||||
W1 [label="W1|{3x|0.25 mm²|+ S|0.2 m}|{{<w1>WH|<w2>BN|<w3>GN|<ws>Shield}}"]
|
||||
edge [color="#000000:#ffffff:#000000"]
|
||||
X1:p5r -- W1:w1
|
||||
W1:w1 -- X2:p1l
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
X1:p2r -- W1:w2
|
||||
W1:w2 -- X2:p3l
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X1:p1r -- W1:w3
|
||||
W1:w3 -- X2:p2l
|
||||
edge [color="#000000"]
|
||||
X1:p5r -- W1:ws
|
||||
}
|
||||
BIN
examples/demo01.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
169
examples/demo01.svg
Normal file
@ -0,0 +1,169 @@
|
||||
<?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 2.44.0 (20200408.0750)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="857pt" height="262pt"
|
||||
viewBox="0.00 0.00 857.00 262.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 258)">
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="white" stroke="black" points="0,-0.5 0,-253.5 160,-253.5 160,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="80" y="-238.3" font-family="arial" font-size="14.00">X1</text>
|
||||
<polyline fill="none" stroke="black" points="0,-230.5 160,-230.5 "/>
|
||||
<text text-anchor="middle" x="27.5" y="-215.3" font-family="arial" font-size="14.00">D-Sub</text>
|
||||
<polyline fill="none" stroke="black" points="55,-207.5 55,-230.5 "/>
|
||||
<text text-anchor="middle" x="84" y="-215.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="113,-207.5 113,-230.5 "/>
|
||||
<text text-anchor="middle" x="136.5" y="-215.3" font-family="arial" font-size="14.00">9-pin</text>
|
||||
<polyline fill="none" stroke="black" points="0,-207.5 160,-207.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-192.3" font-family="arial" font-size="14.00">DCD</text>
|
||||
<polyline fill="none" stroke="black" points="0,-184.5 91,-184.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-169.3" font-family="arial" font-size="14.00">RX</text>
|
||||
<polyline fill="none" stroke="black" points="0,-161.5 91,-161.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-146.3" font-family="arial" font-size="14.00">TX</text>
|
||||
<polyline fill="none" stroke="black" points="0,-138.5 91,-138.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-123.3" font-family="arial" font-size="14.00">DTR</text>
|
||||
<polyline fill="none" stroke="black" points="0,-115.5 91,-115.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-100.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="0,-92.5 91,-92.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-77.3" font-family="arial" font-size="14.00">DSR</text>
|
||||
<polyline fill="none" stroke="black" points="0,-69.5 91,-69.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-54.3" font-family="arial" font-size="14.00">RTS</text>
|
||||
<polyline fill="none" stroke="black" points="0,-46.5 91,-46.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-31.3" font-family="arial" font-size="14.00">CTS</text>
|
||||
<polyline fill="none" stroke="black" points="0,-23.5 91,-23.5 "/>
|
||||
<text text-anchor="middle" x="45.5" y="-8.3" font-family="arial" font-size="14.00">RI</text>
|
||||
<polyline fill="none" stroke="black" points="91,-0.5 91,-207.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-192.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="91,-184.5 160,-184.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-169.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="91,-161.5 160,-161.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-146.3" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="91,-138.5 160,-138.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-123.3" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="91,-115.5 160,-115.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-100.3" font-family="arial" font-size="14.00">5</text>
|
||||
<polyline fill="none" stroke="black" points="91,-92.5 160,-92.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-77.3" font-family="arial" font-size="14.00">6</text>
|
||||
<polyline fill="none" stroke="black" points="91,-69.5 160,-69.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-54.3" font-family="arial" font-size="14.00">7</text>
|
||||
<polyline fill="none" stroke="black" points="91,-46.5 160,-46.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-31.3" font-family="arial" font-size="14.00">8</text>
|
||||
<polyline fill="none" stroke="black" points="91,-23.5 160,-23.5 "/>
|
||||
<text text-anchor="middle" x="125.5" y="-8.3" font-family="arial" font-size="14.00">9</text>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node3" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="white" stroke="black" points="304,-104 304,-242 499,-242 499,-104 304,-104"/>
|
||||
<text text-anchor="middle" x="401.5" y="-226.8" font-family="arial" font-size="14.00">W1</text>
|
||||
<polyline fill="none" stroke="black" points="304,-219 499,-219 "/>
|
||||
<text text-anchor="middle" x="319.5" y="-203.8" font-family="arial" font-size="14.00">3x</text>
|
||||
<polyline fill="none" stroke="black" points="335,-196 335,-219 "/>
|
||||
<text text-anchor="middle" x="372.5" y="-203.8" font-family="arial" font-size="14.00">0.25 mm²</text>
|
||||
<polyline fill="none" stroke="black" points="410,-196 410,-219 "/>
|
||||
<text text-anchor="middle" x="429" y="-203.8" font-family="arial" font-size="14.00">+ S</text>
|
||||
<polyline fill="none" stroke="black" points="448,-196 448,-219 "/>
|
||||
<text text-anchor="middle" x="473.5" y="-203.8" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="304,-196 499,-196 "/>
|
||||
<text text-anchor="middle" x="401.5" y="-180.8" font-family="arial" font-size="14.00">WH</text>
|
||||
<polyline fill="none" stroke="black" points="304,-173 499,-173 "/>
|
||||
<text text-anchor="middle" x="401.5" y="-157.8" font-family="arial" font-size="14.00">BN</text>
|
||||
<polyline fill="none" stroke="black" points="304,-150 499,-150 "/>
|
||||
<text text-anchor="middle" x="401.5" y="-134.8" font-family="arial" font-size="14.00">GN</text>
|
||||
<polyline fill="none" stroke="black" points="304,-127 499,-127 "/>
|
||||
<text text-anchor="middle" x="401.5" y="-111.8" font-family="arial" font-size="14.00">Shield</text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>X1:p5r--W1:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-102C235.43,-104.07 232.57,-185.07 304,-183"/>
|
||||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M160,-104C233.43,-104 230.57,-185 304,-185"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-106C231.43,-103.93 228.57,-184.93 304,-187"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>X1:p2r--W1:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-171C223,-171.42 238.56,-159.42 304,-159"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M160,-173C224.22,-173 239.78,-161 304,-161"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-175C225.44,-174.58 241,-162.58 304,-163"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>X1:p1r--W1:w3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-194C227.01,-195.79 233.01,-137.79 304,-136"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M160,-196C229,-196 235,-138 304,-138"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-198C230.99,-196.21 236.99,-138.21 304,-140"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>X1:p5r--W1:ws</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-104C224.19,-104 239.81,-115 304,-115"/>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="white" stroke="black" points="643,-58 643,-242 849,-242 849,-58 643,-58"/>
|
||||
<text text-anchor="middle" x="746" y="-226.8" font-family="arial" font-size="14.00">X2</text>
|
||||
<polyline fill="none" stroke="black" points="643,-219 849,-219 "/>
|
||||
<text text-anchor="middle" x="693.5" y="-203.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="744,-196 744,-219 "/>
|
||||
<text text-anchor="middle" x="773" y="-203.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="802,-196 802,-219 "/>
|
||||
<text text-anchor="middle" x="825.5" y="-203.8" font-family="arial" font-size="14.00">6-pin</text>
|
||||
<polyline fill="none" stroke="black" points="643,-196 849,-196 "/>
|
||||
<text text-anchor="middle" x="688.5" y="-180.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="643,-173 734,-173 "/>
|
||||
<text text-anchor="middle" x="688.5" y="-157.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="643,-150 734,-150 "/>
|
||||
<text text-anchor="middle" x="688.5" y="-134.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="643,-127 734,-127 "/>
|
||||
<text text-anchor="middle" x="688.5" y="-111.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="643,-104 734,-104 "/>
|
||||
<text text-anchor="middle" x="688.5" y="-88.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polyline fill="none" stroke="black" points="643,-81 734,-81 "/>
|
||||
<text text-anchor="middle" x="688.5" y="-65.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polyline fill="none" stroke="black" points="734,-58 734,-196 "/>
|
||||
<text text-anchor="middle" x="791.5" y="-180.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="734,-173 849,-173 "/>
|
||||
<text text-anchor="middle" x="791.5" y="-157.8" font-family="arial" font-size="14.00">RX</text>
|
||||
<polyline fill="none" stroke="black" points="734,-150 849,-150 "/>
|
||||
<text text-anchor="middle" x="791.5" y="-134.8" font-family="arial" font-size="14.00">TX</text>
|
||||
<polyline fill="none" stroke="black" points="734,-127 849,-127 "/>
|
||||
<text text-anchor="middle" x="791.5" y="-111.8" font-family="arial" font-size="14.00">N/C</text>
|
||||
<polyline fill="none" stroke="black" points="734,-104 849,-104 "/>
|
||||
<text text-anchor="middle" x="791.5" y="-88.8" font-family="arial" font-size="14.00">OUT</text>
|
||||
<polyline fill="none" stroke="black" points="734,-81 849,-81 "/>
|
||||
<text text-anchor="middle" x="791.5" y="-65.8" font-family="arial" font-size="14.00">IN</text>
|
||||
</g>
|
||||
<!-- X2--X2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X2:w--X2:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M643,-92C585.67,-104 471,-104 471,-80.5 471,-57 585.67,-57 643,-69"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>W1:w1--X2:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M499,-183C563,-183 579,-183 643,-183"/>
|
||||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M499,-185C563,-185 579,-185 643,-185"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M499,-187C563,-187 579,-187 643,-187"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>W1:w2--X2:p3l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M499,-159C562.12,-159.94 576.49,-136.94 643,-136"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M499,-161C563.81,-161 578.19,-138 643,-138"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M499,-163C565.51,-162.06 579.88,-139.06 643,-140"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>W1:w3--X2:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M499,-136C565.6,-136.98 579.84,-160.98 643,-160"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M499,-138C563.88,-138 578.12,-162 643,-162"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M499,-140C562.16,-139.02 576.4,-163.02 643,-164"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 11 KiB |
116
examples/demo02.gv
Normal file
@ -0,0 +1,116 @@
|
||||
graph {
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor=transparent fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style=filled]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{Molex KK 254|female|8-pin}|{{GND|+5V|SCL|SDA|MISO|MOSI|SCK|N/C}|{<p1r>1|<p2r>2|<p3r>3|<p4r>4|<p5r>5|<p6r>6|<p7r>7|<p8r>8}}"]
|
||||
X2 [label="X2|{Molex KK 254|female|4-pin}|{{<p1l>1|<p2l>2|<p3l>3|<p4l>4}|{GND|+5V|SCL|SDA}}"]
|
||||
X3 [label="X3|{Molex KK 254|female|4-pin}|{{<p1l>1|<p2l>2|<p3l>3|<p4l>4}|{GND|+5V|SCL|SDA}}"]
|
||||
X4 [label="X4|{Molex KK 254|female|5-pin}|{{<p1l>1|<p2l>2|<p3l>3|<p4l>4|<p5l>5}|{GND|+12V|MISO|MOSI|SCK}}"]
|
||||
X5 [label="X5|{Molex Micro-Fit|male|2-pin}|{{GND|+12V}|{<p1r>1|<p2r>2}}"]
|
||||
subgraph cluster_W1 {
|
||||
graph [fillcolor=white label="4x | 0.14 mm² (26 AWG) | 0.2 m
|
||||
" style="filled, dashed"]
|
||||
node [fixedsize=true height=0 label="" shape=point width=0]
|
||||
W1_w1l
|
||||
W1_w1r
|
||||
W1_w2l
|
||||
W1_w2r
|
||||
W1_w3l
|
||||
W1_w3r
|
||||
W1_w4l
|
||||
W1_w4r
|
||||
}
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W1_w1l -- W1_w1r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X1:p1r -- W1_w1l:w [headlabel=" X1:1" labelangle=-60 labeldist=0]
|
||||
W1_w1r:e -- X2:p1l [labelangle=60 labeldist=0 taillabel="X2:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W1_w2l -- W1_w2r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
X1:p2r -- W1_w2l:w [headlabel=" X1:2" labelangle=-60 labeldist=0]
|
||||
W1_w2r:e -- X2:p2l [labelangle=60 labeldist=0 taillabel="X2:2 "]
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
W1_w3l -- W1_w3r [labelangle=60 labeldist=0 taillabel=" YE"]
|
||||
X1:p3r -- W1_w3l:w [headlabel=" X1:3" labelangle=-60 labeldist=0]
|
||||
W1_w3r:e -- X2:p3l [labelangle=60 labeldist=0 taillabel="X2:3 "]
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
W1_w4l -- W1_w4r [labelangle=60 labeldist=0 taillabel=" GN"]
|
||||
X1:p4r -- W1_w4l:w [headlabel=" X1:4" labelangle=-60 labeldist=0]
|
||||
W1_w4r:e -- X2:p4l [labelangle=60 labeldist=0 taillabel="X2:4 "]
|
||||
subgraph cluster_W2 {
|
||||
graph [fillcolor=white label="4x | 0.14 mm² (26 AWG) | 0.2 m
|
||||
" style="filled, dashed"]
|
||||
node [fixedsize=true height=0 label="" shape=point width=0]
|
||||
W2_w1l
|
||||
W2_w1r
|
||||
W2_w2l
|
||||
W2_w2r
|
||||
W2_w3l
|
||||
W2_w3r
|
||||
W2_w4l
|
||||
W2_w4r
|
||||
}
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W2_w1l -- W2_w1r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X1:p1r -- W2_w1l:w [headlabel=" X1:1" labelangle=-60 labeldist=0]
|
||||
W2_w1r:e -- X3:p1l [labelangle=60 labeldist=0 taillabel="X3:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W2_w2l -- W2_w2r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
X1:p2r -- W2_w2l:w [headlabel=" X1:2" labelangle=-60 labeldist=0]
|
||||
W2_w2r:e -- X3:p2l [labelangle=60 labeldist=0 taillabel="X3:2 "]
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
W2_w3l -- W2_w3r [labelangle=60 labeldist=0 taillabel=" YE"]
|
||||
X1:p3r -- W2_w3l:w [headlabel=" X1:3" labelangle=-60 labeldist=0]
|
||||
W2_w3r:e -- X3:p3l [labelangle=60 labeldist=0 taillabel="X3:3 "]
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
W2_w4l -- W2_w4r [labelangle=60 labeldist=0 taillabel=" GN"]
|
||||
X1:p4r -- W2_w4l:w [headlabel=" X1:4" labelangle=-60 labeldist=0]
|
||||
W2_w4r:e -- X3:p4l [labelangle=60 labeldist=0 taillabel="X3:4 "]
|
||||
subgraph cluster_W3 {
|
||||
graph [fillcolor=white label="4x | 0.14 mm² (26 AWG) | 0.2 m
|
||||
" style="filled, dashed"]
|
||||
node [fixedsize=true height=0 label="" shape=point width=0]
|
||||
W3_w1l
|
||||
W3_w1r
|
||||
W3_w2l
|
||||
W3_w2r
|
||||
W3_w3l
|
||||
W3_w3r
|
||||
W3_w4l
|
||||
W3_w4r
|
||||
}
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W3_w1l -- W3_w1r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X1:p1r -- W3_w1l:w [headlabel=" X1:1" labelangle=-60 labeldist=0]
|
||||
W3_w1r:e -- X4:p1l [labelangle=60 labeldist=0 taillabel="X4:1 "]
|
||||
edge [color="#000000:#0066ff:#000000"]
|
||||
W3_w2l -- W3_w2r [labelangle=60 labeldist=0 taillabel=" BU"]
|
||||
X1:p5r -- W3_w2l:w [headlabel=" X1:5" labelangle=-60 labeldist=0]
|
||||
W3_w2r:e -- X4:p3l [labelangle=60 labeldist=0 taillabel="X4:3 "]
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
W3_w3l -- W3_w3r [labelangle=60 labeldist=0 taillabel=" OG"]
|
||||
X1:p6r -- W3_w3l:w [headlabel=" X1:6" labelangle=-60 labeldist=0]
|
||||
W3_w3r:e -- X4:p4l [labelangle=60 labeldist=0 taillabel="X4:4 "]
|
||||
edge [color="#000000:#8000ff:#000000"]
|
||||
W3_w4l -- W3_w4r [labelangle=60 labeldist=0 taillabel=" VT"]
|
||||
X1:p7r -- W3_w4l:w [headlabel=" X1:7" labelangle=-60 labeldist=0]
|
||||
W3_w4r:e -- X4:p5l [labelangle=60 labeldist=0 taillabel="X4:5 "]
|
||||
subgraph cluster_W4 {
|
||||
graph [fillcolor=white label="2x | 0.5 mm² (21 AWG) | 0.35 m
|
||||
" style="filled, dashed"]
|
||||
node [fixedsize=true height=0 label="" shape=point width=0]
|
||||
W4_w1l
|
||||
W4_w1r
|
||||
W4_w2l
|
||||
W4_w2r
|
||||
}
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W4_w1l -- W4_w1r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X5:p1r -- W4_w1l:w [headlabel=" X5:1" labelangle=-60 labeldist=0]
|
||||
W4_w1r:e -- X4:p1l [labelangle=60 labeldist=0 taillabel="X4:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W4_w2l -- W4_w2r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
X5:p2r -- W4_w2l:w [headlabel=" X5:2" labelangle=-60 labeldist=0]
|
||||
W4_w2r:e -- X4:p2l [labelangle=60 labeldist=0 taillabel="X4:2 "]
|
||||
}
|
||||
BIN
examples/demo02.png
Normal file
|
After Width: | Height: | Size: 177 KiB |
663
examples/demo02.svg
Normal file
@ -0,0 +1,663 @@
|
||||
<?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 2.44.0 (20200408.0750)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="918pt" height="536pt"
|
||||
viewBox="0.00 0.00 918.00 535.50" 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 531.5)">
|
||||
<g id="clust1" class="cluster">
|
||||
<title>cluster_W1</title>
|
||||
<polygon fill="white" stroke="black" stroke-dasharray="5,2" points="342,-376 342,-502 568,-502 568,-376 342,-376"/>
|
||||
<text text-anchor="middle" x="455" y="-486.8" font-family="arial" font-size="14.00">4x  |  0.14 mm² (26 AWG)  |  0.2 m</text>
|
||||
<text text-anchor="middle" x="455" y="-471.8" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<g id="clust2" class="cluster">
|
||||
<title>cluster_W2</title>
|
||||
<polygon fill="white" stroke="black" stroke-dasharray="5,2" points="342,-228 342,-354 568,-354 568,-228 342,-228"/>
|
||||
<text text-anchor="middle" x="455" y="-338.8" font-family="arial" font-size="14.00">4x  |  0.14 mm² (26 AWG)  |  0.2 m</text>
|
||||
<text text-anchor="middle" x="455" y="-323.8" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<g id="clust3" class="cluster">
|
||||
<title>cluster_W3</title>
|
||||
<polygon fill="white" stroke="black" stroke-dasharray="5,2" points="342,-94 342,-220 568,-220 568,-94 342,-94"/>
|
||||
<text text-anchor="middle" x="455" y="-204.8" font-family="arial" font-size="14.00">4x  |  0.14 mm² (26 AWG)  |  0.2 m</text>
|
||||
<text text-anchor="middle" x="455" y="-189.8" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<g id="clust4" class="cluster">
|
||||
<title>cluster_W4</title>
|
||||
<polygon fill="white" stroke="black" stroke-dasharray="5,2" points="342,-8 342,-86 568,-86 568,-8 342,-8"/>
|
||||
<text text-anchor="middle" x="455" y="-70.8" font-family="arial" font-size="14.00">2x  |  0.5 mm² (21 AWG)  |  0.35 m</text>
|
||||
<text text-anchor="middle" x="455" y="-55.8" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="white" stroke="black" points="0,-133 0,-363 206,-363 206,-133 0,-133"/>
|
||||
<text text-anchor="middle" x="103" y="-347.8" font-family="arial" font-size="14.00">X1</text>
|
||||
<polyline fill="none" stroke="black" points="0,-340 206,-340 "/>
|
||||
<text text-anchor="middle" x="50.5" y="-324.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="101,-317 101,-340 "/>
|
||||
<text text-anchor="middle" x="130" y="-324.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="159,-317 159,-340 "/>
|
||||
<text text-anchor="middle" x="182.5" y="-324.8" font-family="arial" font-size="14.00">8-pin</text>
|
||||
<polyline fill="none" stroke="black" points="0,-317 206,-317 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-301.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="0,-294 117,-294 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-278.8" font-family="arial" font-size="14.00">+5V</text>
|
||||
<polyline fill="none" stroke="black" points="0,-271 117,-271 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-255.8" font-family="arial" font-size="14.00">SCL</text>
|
||||
<polyline fill="none" stroke="black" points="0,-248 117,-248 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-232.8" font-family="arial" font-size="14.00">SDA</text>
|
||||
<polyline fill="none" stroke="black" points="0,-225 117,-225 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-209.8" font-family="arial" font-size="14.00">MISO</text>
|
||||
<polyline fill="none" stroke="black" points="0,-202 117,-202 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-186.8" font-family="arial" font-size="14.00">MOSI</text>
|
||||
<polyline fill="none" stroke="black" points="0,-179 117,-179 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-163.8" font-family="arial" font-size="14.00">SCK</text>
|
||||
<polyline fill="none" stroke="black" points="0,-156 117,-156 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-140.8" font-family="arial" font-size="14.00">N/C</text>
|
||||
<polyline fill="none" stroke="black" points="117,-133 117,-317 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-301.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="117,-294 206,-294 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-278.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="117,-271 206,-271 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-255.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="117,-248 206,-248 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-232.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="117,-225 206,-225 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-209.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polyline fill="none" stroke="black" points="117,-202 206,-202 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-186.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polyline fill="none" stroke="black" points="117,-179 206,-179 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-163.8" font-family="arial" font-size="14.00">7</text>
|
||||
<polyline fill="none" stroke="black" points="117,-156 206,-156 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-140.8" font-family="arial" font-size="14.00">8</text>
|
||||
</g>
|
||||
<!-- W1_w1l -->
|
||||
<g id="node6" class="node">
|
||||
<title>W1_w1l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-456" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w1l -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>X1:p1r--W1_w1l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-304C310.74,-306.39 281.19,-456.39 382,-454"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-306C308.78,-306 279.22,-456 382,-456"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-308C306.81,-305.61 277.26,-455.61 382,-458"/>
|
||||
<text text-anchor="middle" x="375.73" y="-460.09" font-family="arial" font-size="14.00">            X1:1</text>
|
||||
</g>
|
||||
<!-- W1_w2l -->
|
||||
<g id="node8" class="node">
|
||||
<title>W1_w2l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-432" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w2l -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:p2r--W1_w2l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-281C310.45,-283.38 281.47,-432.38 382,-430"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-283C308.49,-283 279.51,-432 382,-432"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-285C306.53,-282.62 277.55,-431.62 382,-434"/>
|
||||
<text text-anchor="middle" x="375.74" y="-436.1" font-family="arial" font-size="14.00">            X1:2</text>
|
||||
</g>
|
||||
<!-- W1_w3l -->
|
||||
<g id="node10" class="node">
|
||||
<title>W1_w3l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-408" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w3l -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>X1:p3r--W1_w3l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-258C310.17,-260.38 281.76,-408.38 382,-406"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M206,-260C308.2,-260 279.8,-408 382,-408"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-262C306.24,-259.62 277.83,-407.62 382,-410"/>
|
||||
<text text-anchor="middle" x="375.74" y="-412.1" font-family="arial" font-size="14.00">            X1:3</text>
|
||||
</g>
|
||||
<!-- W1_w4l -->
|
||||
<g id="node12" class="node">
|
||||
<title>W1_w4l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-384" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w4l -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>X1:p4r--W1_w4l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-234C310.17,-236.38 281.76,-384.38 382,-382"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M206,-236C308.2,-236 279.8,-384 382,-384"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-238C306.24,-235.62 277.83,-383.62 382,-386"/>
|
||||
<text text-anchor="middle" x="375.74" y="-388.1" font-family="arial" font-size="14.00">            X1:4</text>
|
||||
</g>
|
||||
<!-- W2_w1l -->
|
||||
<g id="node14" class="node">
|
||||
<title>W2_w1l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-308" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W2_w1l -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>X1:p1r--W2_w1l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-304C284.43,-304.01 303.98,-306.01 382,-306"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-306C284.23,-306 303.77,-308 382,-308"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-308C284.02,-307.99 303.57,-309.99 382,-310"/>
|
||||
<text text-anchor="middle" x="376.98" y="-312.95" font-family="arial" font-size="14.00">            X1:1</text>
|
||||
</g>
|
||||
<!-- W2_w2l -->
|
||||
<g id="node16" class="node">
|
||||
<title>W2_w2l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-284" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W2_w2l -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>X1:p2r--W2_w2l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-281C284.33,-281 303.88,-282 382,-282"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-283C284.22,-283 303.78,-284 382,-284"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-285C284.12,-285 303.67,-286 382,-286"/>
|
||||
<text text-anchor="middle" x="376.99" y="-288.95" font-family="arial" font-size="14.00">            X1:2</text>
|
||||
</g>
|
||||
<!-- W2_w3l -->
|
||||
<g id="node18" class="node">
|
||||
<title>W2_w3l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-260" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W2_w3l -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>X1:p3r--W2_w3l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-258C284.22,-258 303.78,-258 382,-258"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M206,-260C284.22,-260 303.78,-260 382,-260"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-262C284.22,-262 303.78,-262 382,-262"/>
|
||||
<text text-anchor="middle" x="377" y="-264.96" font-family="arial" font-size="14.00">            X1:3</text>
|
||||
</g>
|
||||
<!-- W2_w4l -->
|
||||
<g id="node20" class="node">
|
||||
<title>W2_w4l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-236" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W2_w4l -->
|
||||
<g id="edge23" class="edge">
|
||||
<title>X1:p4r--W2_w4l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-234C284.22,-234 303.78,-234 382,-234"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M206,-236C284.22,-236 303.78,-236 382,-236"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-238C284.22,-238 303.78,-238 382,-238"/>
|
||||
<text text-anchor="middle" x="377" y="-240.96" font-family="arial" font-size="14.00">            X1:4</text>
|
||||
</g>
|
||||
<!-- W3_w1l -->
|
||||
<g id="node22" class="node">
|
||||
<title>W3_w1l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-174" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W3_w1l -->
|
||||
<g id="edge26" class="edge">
|
||||
<title>X1:p1r--W3_w1l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-304C301.8,-306.29 282.24,-174.29 382,-172"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-306C303.78,-306 284.22,-174 382,-174"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-308C305.76,-305.71 286.2,-173.71 382,-176"/>
|
||||
<text text-anchor="middle" x="378.27" y="-179.58" font-family="arial" font-size="14.00">            X1:1</text>
|
||||
</g>
|
||||
<!-- W3_w2l -->
|
||||
<g id="node24" class="node">
|
||||
<title>W3_w2l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-150" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W3_w2l -->
|
||||
<g id="edge29" class="edge">
|
||||
<title>X1:p5r--W3_w2l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-211C287.11,-212.69 296.94,-149.69 382,-148"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M206,-213C289.08,-213 298.92,-150 382,-150"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-215C291.06,-213.31 300.89,-150.31 382,-152"/>
|
||||
<text text-anchor="middle" x="377.68" y="-155.32" font-family="arial" font-size="14.00">            X1:5</text>
|
||||
</g>
|
||||
<!-- W3_w3l -->
|
||||
<g id="node26" class="node">
|
||||
<title>W3_w3l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-126" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W3_w3l -->
|
||||
<g id="edge32" class="edge">
|
||||
<title>X1:p6r--W3_w3l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-188C287.26,-189.71 296.79,-125.71 382,-124"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M206,-190C289.23,-190 298.77,-126 382,-126"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-192C291.21,-190.29 300.74,-126.29 382,-128"/>
|
||||
<text text-anchor="middle" x="377.69" y="-131.32" font-family="arial" font-size="14.00">            X1:6</text>
|
||||
</g>
|
||||
<!-- W3_w4l -->
|
||||
<g id="node28" class="node">
|
||||
<title>W3_w4l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-102" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W3_w4l -->
|
||||
<g id="edge35" class="edge">
|
||||
<title>X1:p7r--W3_w4l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-165C287.41,-166.72 296.63,-101.72 382,-100"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M206,-167C289.39,-167 298.61,-102 382,-102"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-169C291.37,-167.28 300.59,-102.28 382,-104"/>
|
||||
<text text-anchor="middle" x="377.7" y="-107.33" font-family="arial" font-size="14.00">            X1:7</text>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="white" stroke="black" points="704,-389 704,-527 910,-527 910,-389 704,-389"/>
|
||||
<text text-anchor="middle" x="807" y="-511.8" font-family="arial" font-size="14.00">X2</text>
|
||||
<polyline fill="none" stroke="black" points="704,-504 910,-504 "/>
|
||||
<text text-anchor="middle" x="754.5" y="-488.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="805,-481 805,-504 "/>
|
||||
<text text-anchor="middle" x="834" y="-488.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="863,-481 863,-504 "/>
|
||||
<text text-anchor="middle" x="886.5" y="-488.8" font-family="arial" font-size="14.00">4-pin</text>
|
||||
<polyline fill="none" stroke="black" points="704,-481 910,-481 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-465.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="704,-458 795,-458 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-442.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="704,-435 795,-435 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-419.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="704,-412 795,-412 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-396.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="795,-389 795,-481 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-465.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="795,-458 910,-458 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-442.8" font-family="arial" font-size="14.00">+5V</text>
|
||||
<polyline fill="none" stroke="black" points="795,-435 910,-435 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-419.8" font-family="arial" font-size="14.00">SCL</text>
|
||||
<polyline fill="none" stroke="black" points="795,-412 910,-412 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-396.8" font-family="arial" font-size="14.00">SDA</text>
|
||||
</g>
|
||||
<!-- X3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>X3</title>
|
||||
<polygon fill="white" stroke="black" points="704,-226 704,-364 910,-364 910,-226 704,-226"/>
|
||||
<text text-anchor="middle" x="807" y="-348.8" font-family="arial" font-size="14.00">X3</text>
|
||||
<polyline fill="none" stroke="black" points="704,-341 910,-341 "/>
|
||||
<text text-anchor="middle" x="754.5" y="-325.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="805,-318 805,-341 "/>
|
||||
<text text-anchor="middle" x="834" y="-325.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="863,-318 863,-341 "/>
|
||||
<text text-anchor="middle" x="886.5" y="-325.8" font-family="arial" font-size="14.00">4-pin</text>
|
||||
<polyline fill="none" stroke="black" points="704,-318 910,-318 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-302.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="704,-295 795,-295 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-279.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="704,-272 795,-272 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-256.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="704,-249 795,-249 "/>
|
||||
<text text-anchor="middle" x="749.5" y="-233.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="795,-226 795,-318 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-302.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="795,-295 910,-295 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-279.8" font-family="arial" font-size="14.00">+5V</text>
|
||||
<polyline fill="none" stroke="black" points="795,-272 910,-272 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-256.8" font-family="arial" font-size="14.00">SCL</text>
|
||||
<polyline fill="none" stroke="black" points="795,-249 910,-249 "/>
|
||||
<text text-anchor="middle" x="852.5" y="-233.8" font-family="arial" font-size="14.00">SDA</text>
|
||||
</g>
|
||||
<!-- X4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>X4</title>
|
||||
<polygon fill="white" stroke="black" points="704,-39.5 704,-200.5 910,-200.5 910,-39.5 704,-39.5"/>
|
||||
<text text-anchor="middle" x="807" y="-185.3" font-family="arial" font-size="14.00">X4</text>
|
||||
<polyline fill="none" stroke="black" points="704,-177.5 910,-177.5 "/>
|
||||
<text text-anchor="middle" x="754.5" y="-162.3" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="805,-154.5 805,-177.5 "/>
|
||||
<text text-anchor="middle" x="834" y="-162.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="863,-154.5 863,-177.5 "/>
|
||||
<text text-anchor="middle" x="886.5" y="-162.3" font-family="arial" font-size="14.00">5-pin</text>
|
||||
<polyline fill="none" stroke="black" points="704,-154.5 910,-154.5 "/>
|
||||
<text text-anchor="middle" x="748" y="-139.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="704,-131.5 792,-131.5 "/>
|
||||
<text text-anchor="middle" x="748" y="-116.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="704,-108.5 792,-108.5 "/>
|
||||
<text text-anchor="middle" x="748" y="-93.3" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="704,-85.5 792,-85.5 "/>
|
||||
<text text-anchor="middle" x="748" y="-70.3" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="704,-62.5 792,-62.5 "/>
|
||||
<text text-anchor="middle" x="748" y="-47.3" font-family="arial" font-size="14.00">5</text>
|
||||
<polyline fill="none" stroke="black" points="792,-39.5 792,-154.5 "/>
|
||||
<text text-anchor="middle" x="851" y="-139.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="792,-131.5 910,-131.5 "/>
|
||||
<text text-anchor="middle" x="851" y="-116.3" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polyline fill="none" stroke="black" points="792,-108.5 910,-108.5 "/>
|
||||
<text text-anchor="middle" x="851" y="-93.3" font-family="arial" font-size="14.00">MISO</text>
|
||||
<polyline fill="none" stroke="black" points="792,-85.5 910,-85.5 "/>
|
||||
<text text-anchor="middle" x="851" y="-70.3" font-family="arial" font-size="14.00">MOSI</text>
|
||||
<polyline fill="none" stroke="black" points="792,-62.5 910,-62.5 "/>
|
||||
<text text-anchor="middle" x="851" y="-47.3" font-family="arial" font-size="14.00">SCK</text>
|
||||
</g>
|
||||
<!-- X5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>X5</title>
|
||||
<polygon fill="white" stroke="black" points="1,-6 1,-98 205,-98 205,-6 1,-6"/>
|
||||
<text text-anchor="middle" x="103" y="-82.8" font-family="arial" font-size="14.00">X5</text>
|
||||
<polyline fill="none" stroke="black" points="1,-75 205,-75 "/>
|
||||
<text text-anchor="middle" x="56" y="-59.8" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="111,-52 111,-75 "/>
|
||||
<text text-anchor="middle" x="134.5" y="-59.8" font-family="arial" font-size="14.00">male</text>
|
||||
<polyline fill="none" stroke="black" points="158,-52 158,-75 "/>
|
||||
<text text-anchor="middle" x="181.5" y="-59.8" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="1,-52 205,-52 "/>
|
||||
<text text-anchor="middle" x="58" y="-36.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="1,-29 115,-29 "/>
|
||||
<text text-anchor="middle" x="58" y="-13.8" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polyline fill="none" stroke="black" points="115,-6 115,-52 "/>
|
||||
<text text-anchor="middle" x="160" y="-36.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="115,-29 205,-29 "/>
|
||||
<text text-anchor="middle" x="160" y="-13.8" font-family="arial" font-size="14.00">2</text>
|
||||
</g>
|
||||
<!-- W4_w1l -->
|
||||
<g id="node30" class="node">
|
||||
<title>W4_w1l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-40" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X5--W4_w1l -->
|
||||
<g id="edge38" class="edge">
|
||||
<title>X5:p1r--W4_w1l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-38C284.22,-38 303.78,-38 382,-38"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-40C284.22,-40 303.78,-40 382,-40"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-42C284.22,-42 303.78,-42 382,-42"/>
|
||||
<text text-anchor="middle" x="377" y="-44.96" font-family="arial" font-size="14.00">            X5:1</text>
|
||||
</g>
|
||||
<!-- W4_w2l -->
|
||||
<g id="node32" class="node">
|
||||
<title>W4_w2l</title>
|
||||
<ellipse fill="white" stroke="black" cx="383" cy="-16" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X5--W4_w2l -->
|
||||
<g id="edge41" class="edge">
|
||||
<title>X5:p2r--W4_w2l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-15C284.12,-15 303.67,-14 382,-14"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-17C284.22,-17 303.78,-16 382,-16"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-19C284.33,-19 303.88,-18 382,-18"/>
|
||||
<text text-anchor="middle" x="377.01" y="-20.97" font-family="arial" font-size="14.00">            X5:2</text>
|
||||
</g>
|
||||
<!-- W1_w1r -->
|
||||
<g id="node7" class="node">
|
||||
<title>W1_w1r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-456" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w1l--W1_w1r -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>W1_w1l--W1_w1r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-454C388.34,-454 521.73,-454 525.9,-454"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-456C388.34,-456 521.73,-456 525.9,-456"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-458C388.34,-458 521.73,-458 525.9,-458"/>
|
||||
<text text-anchor="middle" x="389.1" y="-460.96" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W1_w1r--X2 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>W1_w1r:e--X2:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-454C607.65,-454.39 626.71,-468.39 704,-468"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-456C606.47,-456 625.53,-470 704,-470"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-458C605.29,-457.61 624.35,-471.61 704,-472"/>
|
||||
<text text-anchor="middle" x="532.84" y="-461.05" font-family="arial" font-size="14.00">X2:1            </text>
|
||||
</g>
|
||||
<!-- W1_w2r -->
|
||||
<g id="node9" class="node">
|
||||
<title>W1_w2r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-432" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w2l--W1_w2r -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1_w2l--W1_w2r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-430C388.34,-430 521.73,-430 525.9,-430"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M384.1,-432C388.34,-432 521.73,-432 525.9,-432"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-434C388.34,-434 521.73,-434 525.9,-434"/>
|
||||
<text text-anchor="middle" x="389.1" y="-436.96" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W1_w2r--X2 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W1_w2r:e--X2:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-430C607.65,-430.39 626.71,-444.39 704,-444"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M528,-432C606.47,-432 625.53,-446 704,-446"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-434C605.29,-433.61 624.35,-447.61 704,-448"/>
|
||||
<text text-anchor="middle" x="532.84" y="-437.05" font-family="arial" font-size="14.00">X2:2            </text>
|
||||
</g>
|
||||
<!-- W1_w3r -->
|
||||
<g id="node11" class="node">
|
||||
<title>W1_w3r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-408" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w3l--W1_w3r -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>W1_w3l--W1_w3r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-406C388.34,-406 521.73,-406 525.9,-406"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M384.1,-408C388.34,-408 521.73,-408 525.9,-408"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-410C388.34,-410 521.73,-410 525.9,-410"/>
|
||||
<text text-anchor="middle" x="389.1" y="-412.96" font-family="arial" font-size="14.00">                                   YE</text>
|
||||
</g>
|
||||
<!-- W1_w3r--X2 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>W1_w3r:e--X2:p3l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-406C607.75,-406.43 626.73,-421.43 704,-421"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M528,-408C606.51,-408 625.49,-423 704,-423"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-410C605.27,-409.57 624.25,-424.57 704,-425"/>
|
||||
<text text-anchor="middle" x="532.83" y="-413.05" font-family="arial" font-size="14.00">X2:3            </text>
|
||||
</g>
|
||||
<!-- W1_w4r -->
|
||||
<g id="node13" class="node">
|
||||
<title>W1_w4r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-384" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w4l--W1_w4r -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W1_w4l--W1_w4r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-382C388.34,-382 521.73,-382 525.9,-382"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M384.1,-384C388.34,-384 521.73,-384 525.9,-384"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-386C388.34,-386 521.73,-386 525.9,-386"/>
|
||||
<text text-anchor="middle" x="389.1" y="-388.96" font-family="arial" font-size="14.00">                                   GN</text>
|
||||
</g>
|
||||
<!-- W1_w4r--X2 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W1_w4r:e--X2:p4l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-382C607.84,-382.47 626.75,-398.47 704,-398"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M528,-384C606.54,-384 625.46,-400 704,-400"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-386C605.25,-385.53 624.16,-401.53 704,-402"/>
|
||||
<text text-anchor="middle" x="532.82" y="-389.06" font-family="arial" font-size="14.00">X2:4            </text>
|
||||
</g>
|
||||
<!-- W2_w1r -->
|
||||
<g id="node15" class="node">
|
||||
<title>W2_w1r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-308" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W2_w1l--W2_w1r -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>W2_w1l--W2_w1r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-306C388.34,-306 521.73,-306 525.9,-306"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-308C388.34,-308 521.73,-308 525.9,-308"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-310C388.34,-310 521.73,-310 525.9,-310"/>
|
||||
<text text-anchor="middle" x="389.1" y="-312.96" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W2_w1r--X3 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>W2_w1r:e--X3:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-306C606.12,-306 625.67,-305 704,-305"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-308C606.22,-308 625.78,-307 704,-307"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-310C606.33,-310 625.88,-309 704,-309"/>
|
||||
<text text-anchor="middle" x="533.01" y="-312.95" font-family="arial" font-size="14.00">X3:1            </text>
|
||||
</g>
|
||||
<!-- W2_w2r -->
|
||||
<g id="node17" class="node">
|
||||
<title>W2_w2r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-284" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W2_w2l--W2_w2r -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>W2_w2l--W2_w2r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-282C388.34,-282 521.73,-282 525.9,-282"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M384.1,-284C388.34,-284 521.73,-284 525.9,-284"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-286C388.34,-286 521.73,-286 525.9,-286"/>
|
||||
<text text-anchor="middle" x="389.1" y="-288.96" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W2_w2r--X3 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>W2_w2r:e--X3:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-282C606.12,-282 625.67,-281 704,-281"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M528,-284C606.22,-284 625.78,-283 704,-283"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-286C606.33,-286 625.88,-285 704,-285"/>
|
||||
<text text-anchor="middle" x="533.01" y="-288.95" font-family="arial" font-size="14.00">X3:2            </text>
|
||||
</g>
|
||||
<!-- W2_w3r -->
|
||||
<g id="node19" class="node">
|
||||
<title>W2_w3r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-260" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W2_w3l--W2_w3r -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>W2_w3l--W2_w3r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-258C388.34,-258 521.73,-258 525.9,-258"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M384.1,-260C388.34,-260 521.73,-260 525.9,-260"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-262C388.34,-262 521.73,-262 525.9,-262"/>
|
||||
<text text-anchor="middle" x="389.1" y="-264.96" font-family="arial" font-size="14.00">                                   YE</text>
|
||||
</g>
|
||||
<!-- W2_w3r--X3 -->
|
||||
<g id="edge21" class="edge">
|
||||
<title>W2_w3r:e--X3:p3l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-258C606.22,-258 625.78,-258 704,-258"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M528,-260C606.22,-260 625.78,-260 704,-260"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-262C606.22,-262 625.78,-262 704,-262"/>
|
||||
<text text-anchor="middle" x="533" y="-264.96" font-family="arial" font-size="14.00">X3:3            </text>
|
||||
</g>
|
||||
<!-- W2_w4r -->
|
||||
<g id="node21" class="node">
|
||||
<title>W2_w4r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-236" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W2_w4l--W2_w4r -->
|
||||
<g id="edge22" class="edge">
|
||||
<title>W2_w4l--W2_w4r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-234C388.34,-234 521.73,-234 525.9,-234"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M384.1,-236C388.34,-236 521.73,-236 525.9,-236"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-238C388.34,-238 521.73,-238 525.9,-238"/>
|
||||
<text text-anchor="middle" x="389.1" y="-240.96" font-family="arial" font-size="14.00">                                   GN</text>
|
||||
</g>
|
||||
<!-- W2_w4r--X3 -->
|
||||
<g id="edge24" class="edge">
|
||||
<title>W2_w4r:e--X3:p4l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-234C606.33,-234 625.88,-235 704,-235"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M528,-236C606.22,-236 625.78,-237 704,-237"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-238C606.12,-238 625.67,-239 704,-239"/>
|
||||
<text text-anchor="middle" x="532.99" y="-240.97" font-family="arial" font-size="14.00">X3:4            </text>
|
||||
</g>
|
||||
<!-- W3_w1r -->
|
||||
<g id="node23" class="node">
|
||||
<title>W3_w1r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-174" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W3_w1l--W3_w1r -->
|
||||
<g id="edge25" class="edge">
|
||||
<title>W3_w1l--W3_w1r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-172C388.34,-172 521.73,-172 525.9,-172"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-174C388.34,-174 521.73,-174 525.9,-174"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-176C388.34,-176 521.73,-176 525.9,-176"/>
|
||||
<text text-anchor="middle" x="389.1" y="-178.96" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W3_w1r--X4 -->
|
||||
<g id="edge27" class="edge">
|
||||
<title>W3_w1r:e--X4:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-172C605.68,-173.03 622.82,-142.03 704,-141"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-174C607.43,-174 624.57,-143 704,-143"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-176C609.18,-174.97 626.32,-143.97 704,-145"/>
|
||||
<text text-anchor="middle" x="533.34" y="-178.76" font-family="arial" font-size="14.00">X4:1            </text>
|
||||
</g>
|
||||
<!-- W3_w2r -->
|
||||
<g id="node25" class="node">
|
||||
<title>W3_w2r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-150" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W3_w2l--W3_w2r -->
|
||||
<g id="edge28" class="edge">
|
||||
<title>W3_w2l--W3_w2r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-148C388.34,-148 521.73,-148 525.9,-148"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M384.1,-150C388.34,-150 521.73,-150 525.9,-150"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-152C388.34,-152 521.73,-152 525.9,-152"/>
|
||||
<text text-anchor="middle" x="389.1" y="-154.96" font-family="arial" font-size="14.00">                                   BU</text>
|
||||
</g>
|
||||
<!-- W3_w2r--X4 -->
|
||||
<g id="edge30" class="edge">
|
||||
<title>W3_w2r:e--X4:p3l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-148C607.75,-149.54 620.36,-96.54 704,-95"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M528,-150C609.69,-150 622.31,-97 704,-97"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-152C611.64,-150.46 624.25,-97.46 704,-99"/>
|
||||
<text text-anchor="middle" x="533.56" y="-154.61" font-family="arial" font-size="14.00">X4:3            </text>
|
||||
</g>
|
||||
<!-- W3_w3r -->
|
||||
<g id="node27" class="node">
|
||||
<title>W3_w3r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-126" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W3_w3l--W3_w3r -->
|
||||
<g id="edge31" class="edge">
|
||||
<title>W3_w3l--W3_w3r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-124C388.34,-124 521.73,-124 525.9,-124"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M384.1,-126C388.34,-126 521.73,-126 525.9,-126"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-128C388.34,-128 521.73,-128 525.9,-128"/>
|
||||
<text text-anchor="middle" x="389.1" y="-130.96" font-family="arial" font-size="14.00">                                   OG</text>
|
||||
</g>
|
||||
<!-- W3_w3r--X4 -->
|
||||
<g id="edge33" class="edge">
|
||||
<title>W3_w3r:e--X4:p4l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-124C607.62,-125.52 620.49,-73.52 704,-72"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M528,-126C609.56,-126 622.44,-74 704,-74"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-128C611.51,-126.48 624.38,-74.48 704,-76"/>
|
||||
<text text-anchor="middle" x="533.55" y="-130.62" font-family="arial" font-size="14.00">X4:4            </text>
|
||||
</g>
|
||||
<!-- W3_w4r -->
|
||||
<g id="node29" class="node">
|
||||
<title>W3_w4r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-102" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W3_w4l--W3_w4r -->
|
||||
<g id="edge34" class="edge">
|
||||
<title>W3_w4l--W3_w4r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-100C388.34,-100 521.73,-100 525.9,-100"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M384.1,-102C388.34,-102 521.73,-102 525.9,-102"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-104C388.34,-104 521.73,-104 525.9,-104"/>
|
||||
<text text-anchor="middle" x="389.1" y="-106.96" font-family="arial" font-size="14.00">                                   VT</text>
|
||||
</g>
|
||||
<!-- W3_w4r--X4 -->
|
||||
<g id="edge36" class="edge">
|
||||
<title>W3_w4r:e--X4:p5l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-100C607.5,-101.5 620.62,-50.5 704,-49"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M528,-102C609.44,-102 622.56,-51 704,-51"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-104C611.38,-102.5 624.5,-51.5 704,-53"/>
|
||||
<text text-anchor="middle" x="533.54" y="-106.63" font-family="arial" font-size="14.00">X4:5            </text>
|
||||
</g>
|
||||
<!-- W4_w1r -->
|
||||
<g id="node31" class="node">
|
||||
<title>W4_w1r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-40" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W4_w1l--W4_w1r -->
|
||||
<g id="edge37" class="edge">
|
||||
<title>W4_w1l--W4_w1r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-38C388.34,-38 521.73,-38 525.9,-38"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-40C388.34,-40 521.73,-40 525.9,-40"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-42C388.34,-42 521.73,-42 525.9,-42"/>
|
||||
<text text-anchor="middle" x="389.1" y="-44.96" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W4_w1r--X4 -->
|
||||
<g id="edge39" class="edge">
|
||||
<title>W4_w1r:e--X4:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-38C620.63,-40.1 615.36,-143.1 704,-141"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-40C618.63,-40 613.37,-143 704,-143"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-42C616.64,-39.9 611.37,-142.9 704,-145"/>
|
||||
<text text-anchor="middle" x="531.95" y="-45.49" font-family="arial" font-size="14.00">X4:1            </text>
|
||||
</g>
|
||||
<!-- W4_w2r -->
|
||||
<g id="node33" class="node">
|
||||
<title>W4_w2r</title>
|
||||
<ellipse fill="white" stroke="black" cx="527" cy="-16" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W4_w2l--W4_w2r -->
|
||||
<g id="edge40" class="edge">
|
||||
<title>W4_w2l--W4_w2r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-14C388.34,-14 521.73,-14 525.9,-14"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M384.1,-16C388.34,-16 521.73,-16 525.9,-16"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M384.1,-18C388.34,-18 521.73,-18 525.9,-18"/>
|
||||
<text text-anchor="middle" x="389.1" y="-20.96" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W4_w2r--X4 -->
|
||||
<g id="edge42" class="edge">
|
||||
<title>W4_w2r:e--X4:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-14C620.86,-16.11 615.14,-120.11 704,-118"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M528,-16C618.86,-16 613.14,-120 704,-120"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M528,-18C616.86,-15.89 611.14,-119.89 704,-122"/>
|
||||
<text text-anchor="middle" x="531.95" y="-21.49" font-family="arial" font-size="14.00">X4:2            </text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 43 KiB |
@ -31,19 +31,23 @@ wires:
|
||||
W1:
|
||||
<<: *wire_i2c
|
||||
type: bundle
|
||||
show_equiv: true
|
||||
W2:
|
||||
<<: *wire_i2c
|
||||
type: bundle
|
||||
show_equiv: true
|
||||
W3:
|
||||
mm2: 0.14
|
||||
length: 0.2
|
||||
type: bundle
|
||||
colors: [BK, BU, OG, VT]
|
||||
type: bundle
|
||||
show_equiv: true
|
||||
W4:
|
||||
mm2: 0.5
|
||||
length: 0.35
|
||||
colors: [BK, RD]
|
||||
type: bundle
|
||||
show_equiv: true
|
||||
|
||||
connections:
|
||||
-
|
||||
24
examples/ex01.gv
Normal file
@ -0,0 +1,24 @@
|
||||
graph {
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor=transparent fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style=filled]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{Molex KK 254|female|4-pin}|{{GND|VCC|RX|TX}|{<p1r>1|<p2r>2|<p3r>3|<p4r>4}}"]
|
||||
X2 [label="X2|{Molex KK 254|female|4-pin}|{{<p1l>1|<p2l>2|<p3l>3|<p4l>4}|{GND|VCC|RX|TX}}"]
|
||||
W1 [label="W1|{4x|0.25 mm² (24 AWG)|+ S|0.2 m}|{{<w1>BN|<w2>RD|<w3>OG|<w4>YE|<ws>Shield}}"]
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
X1:p1r -- W1:w1
|
||||
W1:w1 -- X2:p1l
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2r -- W1:w2
|
||||
W1:w2 -- X2:p2l
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
X1:p3r -- W1:w3
|
||||
W1:w3 -- X2:p4l
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X1:p4r -- W1:w4
|
||||
W1:w4 -- X2:p3l
|
||||
edge [color="#000000"]
|
||||
X1:p1r -- W1:ws
|
||||
}
|
||||
BIN
examples/ex01.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
152
examples/ex01.svg
Normal file
@ -0,0 +1,152 @@
|
||||
<?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 2.44.0 (20200408.0750)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="968pt" height="171pt"
|
||||
viewBox="0.00 0.00 968.00 170.50" 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 166.5)">
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="white" stroke="black" points="0,-24 0,-162 206,-162 206,-24 0,-24"/>
|
||||
<text text-anchor="middle" x="103" y="-146.8" font-family="arial" font-size="14.00">X1</text>
|
||||
<polyline fill="none" stroke="black" points="0,-139 206,-139 "/>
|
||||
<text text-anchor="middle" x="50.5" y="-123.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="101,-116 101,-139 "/>
|
||||
<text text-anchor="middle" x="130" y="-123.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="159,-116 159,-139 "/>
|
||||
<text text-anchor="middle" x="182.5" y="-123.8" font-family="arial" font-size="14.00">4-pin</text>
|
||||
<polyline fill="none" stroke="black" points="0,-116 206,-116 "/>
|
||||
<text text-anchor="middle" x="57" y="-100.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="0,-93 114,-93 "/>
|
||||
<text text-anchor="middle" x="57" y="-77.8" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polyline fill="none" stroke="black" points="0,-70 114,-70 "/>
|
||||
<text text-anchor="middle" x="57" y="-54.8" font-family="arial" font-size="14.00">RX</text>
|
||||
<polyline fill="none" stroke="black" points="0,-47 114,-47 "/>
|
||||
<text text-anchor="middle" x="57" y="-31.8" font-family="arial" font-size="14.00">TX</text>
|
||||
<polyline fill="none" stroke="black" points="114,-24 114,-116 "/>
|
||||
<text text-anchor="middle" x="160" y="-100.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="114,-93 206,-93 "/>
|
||||
<text text-anchor="middle" x="160" y="-77.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="114,-70 206,-70 "/>
|
||||
<text text-anchor="middle" x="160" y="-54.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="114,-47 206,-47 "/>
|
||||
<text text-anchor="middle" x="160" y="-31.8" font-family="arial" font-size="14.00">4</text>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node3" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="white" stroke="black" points="350,-0.5 350,-161.5 610,-161.5 610,-0.5 350,-0.5"/>
|
||||
<text text-anchor="middle" x="480" y="-146.3" font-family="arial" font-size="14.00">W1</text>
|
||||
<polyline fill="none" stroke="black" points="350,-138.5 610,-138.5 "/>
|
||||
<text text-anchor="middle" x="365.5" y="-123.3" font-family="arial" font-size="14.00">4x</text>
|
||||
<polyline fill="none" stroke="black" points="381,-115.5 381,-138.5 "/>
|
||||
<text text-anchor="middle" x="451" y="-123.3" font-family="arial" font-size="14.00">0.25 mm² (24 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="521,-115.5 521,-138.5 "/>
|
||||
<text text-anchor="middle" x="540" y="-123.3" font-family="arial" font-size="14.00">+ S</text>
|
||||
<polyline fill="none" stroke="black" points="559,-115.5 559,-138.5 "/>
|
||||
<text text-anchor="middle" x="584.5" y="-123.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="350,-115.5 610,-115.5 "/>
|
||||
<text text-anchor="middle" x="480" y="-100.3" font-family="arial" font-size="14.00">BN</text>
|
||||
<polyline fill="none" stroke="black" points="350,-92.5 610,-92.5 "/>
|
||||
<text text-anchor="middle" x="480" y="-77.3" font-family="arial" font-size="14.00">RD</text>
|
||||
<polyline fill="none" stroke="black" points="350,-69.5 610,-69.5 "/>
|
||||
<text text-anchor="middle" x="480" y="-54.3" font-family="arial" font-size="14.00">OG</text>
|
||||
<polyline fill="none" stroke="black" points="350,-46.5 610,-46.5 "/>
|
||||
<text text-anchor="middle" x="480" y="-31.3" font-family="arial" font-size="14.00">YE</text>
|
||||
<polyline fill="none" stroke="black" points="350,-23.5 610,-23.5 "/>
|
||||
<text text-anchor="middle" x="480" y="-8.3" font-family="arial" font-size="14.00">Shield</text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:p1r--W1:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-103C269.88,-103 285.87,-102 350,-102"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M206,-105C270,-105 286,-104 350,-104"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-107C270.13,-107 286.12,-106 350,-106"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:p2r--W1:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-79C270,-79 286,-79 350,-79"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-81C270,-81 286,-81 350,-81"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-83C270,-83 286,-83 350,-83"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:p3r--W1:w3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-56C270,-56 286,-56 350,-56"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M206,-58C270,-58 286,-58 350,-58"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-60C270,-60 286,-60 350,-60"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:p4r--W1:w4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-33C270,-33 286,-33 350,-33"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M206,-35C270,-35 286,-35 350,-35"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-37C270,-37 286,-37 350,-37"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>X1:p1r--W1:ws</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-105C282.19,-105 273.81,-12 350,-12"/>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="white" stroke="black" points="754,-23 754,-161 960,-161 960,-23 754,-23"/>
|
||||
<text text-anchor="middle" x="857" y="-145.8" font-family="arial" font-size="14.00">X2</text>
|
||||
<polyline fill="none" stroke="black" points="754,-138 960,-138 "/>
|
||||
<text text-anchor="middle" x="804.5" y="-122.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="855,-115 855,-138 "/>
|
||||
<text text-anchor="middle" x="884" y="-122.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="913,-115 913,-138 "/>
|
||||
<text text-anchor="middle" x="936.5" y="-122.8" font-family="arial" font-size="14.00">4-pin</text>
|
||||
<polyline fill="none" stroke="black" points="754,-115 960,-115 "/>
|
||||
<text text-anchor="middle" x="799.5" y="-99.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="754,-92 845,-92 "/>
|
||||
<text text-anchor="middle" x="799.5" y="-76.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="754,-69 845,-69 "/>
|
||||
<text text-anchor="middle" x="799.5" y="-53.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="754,-46 845,-46 "/>
|
||||
<text text-anchor="middle" x="799.5" y="-30.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="845,-23 845,-115 "/>
|
||||
<text text-anchor="middle" x="902.5" y="-99.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="845,-92 960,-92 "/>
|
||||
<text text-anchor="middle" x="902.5" y="-76.8" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polyline fill="none" stroke="black" points="845,-69 960,-69 "/>
|
||||
<text text-anchor="middle" x="902.5" y="-53.8" font-family="arial" font-size="14.00">RX</text>
|
||||
<polyline fill="none" stroke="black" points="845,-46 960,-46 "/>
|
||||
<text text-anchor="middle" x="902.5" y="-30.8" font-family="arial" font-size="14.00">TX</text>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>W1:w1--X2:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-102C674,-102 690,-102 754,-102"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M610,-104C674,-104 690,-104 754,-104"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-106C674,-106 690,-106 754,-106"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1:w2--X2:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-79C673.88,-79 689.87,-78 754,-78"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M610,-81C674,-81 690,-80 754,-80"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-83C674.13,-83 690.12,-82 754,-82"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W1:w3--X2:p4l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-56C673.16,-56.98 687.4,-32.98 754,-32"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M610,-58C674.88,-58 689.12,-34 754,-34"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-60C676.6,-59.02 690.84,-35.02 754,-36"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>W1:w4--X2:p3l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-33C676.41,-33.9 690.93,-55.9 754,-55"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M610,-35C674.74,-35 689.26,-57 754,-57"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M610,-37C673.07,-36.1 687.59,-58.1 754,-59"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.3 KiB |
27
examples/ex01.yml
Normal file
@ -0,0 +1,27 @@
|
||||
nodes:
|
||||
X1:
|
||||
type: Molex KK 254 # more information
|
||||
gender: female
|
||||
pinout: [GND, VCC, RX, TX] # num_pins is implicit in pinout
|
||||
X2:
|
||||
type: Molex KK 254
|
||||
gender: female
|
||||
pinout: [GND, VCC, RX, TX]
|
||||
|
||||
wires:
|
||||
W1:
|
||||
color_code: IEC # auto-color wires based on a standard
|
||||
num_wires: 4 # need to specify number of wires explicitly when using a color code
|
||||
mm2: 0.25 # metric gauge, in mm^2
|
||||
show_equiv: true # auto-calculate AWG equivalent from metric gauge
|
||||
length: 0.2 # length in m
|
||||
shield: true
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: [1-4]
|
||||
- W1: [1-4]
|
||||
- X2: [1,2,4,3] # crossover
|
||||
- # connection from connector pin to wire shielding
|
||||
- X1: 1
|
||||
- W1: s
|
||||
32
examples/ex02.gv
Normal file
@ -0,0 +1,32 @@
|
||||
graph {
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor=transparent fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style=filled]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{Molex Micro-Fit|male|2-pin}|{{GND|VCC}|{<p1r>1|<p2r>2}}"]
|
||||
X2 [label="X2|{Molex Micro-Fit|female|2-pin}|{{<p1l>1|<p2l>2}|{GND|VCC}}"]
|
||||
X3 [label="X3|{Molex Micro-Fit|female|2-pin}|{{<p1l>1|<p2l>2}|{GND|VCC}}"]
|
||||
X4 [label="X4|{Molex Micro-Fit|female|2-pin}|{{<p1l>1|<p2l>2}|{GND|VCC}}"]
|
||||
W1 [label="W1|{2x|0.25 mm² (24 AWG)|0.2 m}|{{<w1>BK|<w2>RD}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p1r -- W1:w1
|
||||
W1:w1 -- X2:p1l
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2r -- W1:w2
|
||||
W1:w2 -- X2:p2l
|
||||
W2 [label="W2|{2x|0.25 mm² (24 AWG)|0.2 m}|{{<w1>BK|<w2>RD}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p1r -- W2:w1
|
||||
W2:w1 -- X3:p1l
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2r -- W2:w2
|
||||
W2:w2 -- X3:p2l
|
||||
W3 [label="W3|{2x|0.25 mm² (24 AWG)|0.2 m}|{{<w1>BK|<w2>RD}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p1r -- W3:w1
|
||||
W3:w1 -- X4:p1l
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2r -- W3:w2
|
||||
W3:w2 -- X4:p2l
|
||||
}
|
||||
BIN
examples/ex02.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
223
examples/ex02.svg
Normal file
@ -0,0 +1,223 @@
|
||||
<?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 2.44.0 (20200408.0750)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="937pt" height="335pt"
|
||||
viewBox="0.00 0.00 937.00 335.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 331)">
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="white" stroke="black" points="0,-117.5 0,-209.5 204,-209.5 204,-117.5 0,-117.5"/>
|
||||
<text text-anchor="middle" x="102" y="-194.3" font-family="arial" font-size="14.00">X1</text>
|
||||
<polyline fill="none" stroke="black" points="0,-186.5 204,-186.5 "/>
|
||||
<text text-anchor="middle" x="55" y="-171.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="110,-163.5 110,-186.5 "/>
|
||||
<text text-anchor="middle" x="133.5" y="-171.3" font-family="arial" font-size="14.00">male</text>
|
||||
<polyline fill="none" stroke="black" points="157,-163.5 157,-186.5 "/>
|
||||
<text text-anchor="middle" x="180.5" y="-171.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="0,-163.5 204,-163.5 "/>
|
||||
<text text-anchor="middle" x="56.5" y="-148.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="0,-140.5 113,-140.5 "/>
|
||||
<text text-anchor="middle" x="56.5" y="-125.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polyline fill="none" stroke="black" points="113,-117.5 113,-163.5 "/>
|
||||
<text text-anchor="middle" x="158.5" y="-148.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="113,-140.5 204,-140.5 "/>
|
||||
<text text-anchor="middle" x="158.5" y="-125.3" font-family="arial" font-size="14.00">2</text>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node5" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="white" stroke="black" points="348,-234.5 348,-326.5 570,-326.5 570,-234.5 348,-234.5"/>
|
||||
<text text-anchor="middle" x="459" y="-311.3" font-family="arial" font-size="14.00">W1</text>
|
||||
<polyline fill="none" stroke="black" points="348,-303.5 570,-303.5 "/>
|
||||
<text text-anchor="middle" x="363.5" y="-288.3" font-family="arial" font-size="14.00">2x</text>
|
||||
<polyline fill="none" stroke="black" points="379,-280.5 379,-303.5 "/>
|
||||
<text text-anchor="middle" x="449" y="-288.3" font-family="arial" font-size="14.00">0.25 mm² (24 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="519,-280.5 519,-303.5 "/>
|
||||
<text text-anchor="middle" x="544.5" y="-288.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="348,-280.5 570,-280.5 "/>
|
||||
<text text-anchor="middle" x="459" y="-265.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="348,-257.5 570,-257.5 "/>
|
||||
<text text-anchor="middle" x="459" y="-242.3" font-family="arial" font-size="14.00">RD</text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:p1r--W1:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-149.5C288.43,-151.85 267.51,-268.85 348,-266.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-151.5C286.46,-151.5 265.54,-268.5 348,-268.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-153.5C284.49,-151.15 263.57,-268.15 348,-270.5"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:p2r--W1:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-126.5C288.43,-128.85 267.51,-245.85 348,-243.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M204,-128.5C286.46,-128.5 265.54,-245.5 348,-245.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-130.5C284.49,-128.15 263.57,-245.15 348,-247.5"/>
|
||||
</g>
|
||||
<!-- W2 -->
|
||||
<g id="node6" class="node">
|
||||
<title>W2</title>
|
||||
<polygon fill="white" stroke="black" points="348,-117.5 348,-209.5 570,-209.5 570,-117.5 348,-117.5"/>
|
||||
<text text-anchor="middle" x="459" y="-194.3" font-family="arial" font-size="14.00">W2</text>
|
||||
<polyline fill="none" stroke="black" points="348,-186.5 570,-186.5 "/>
|
||||
<text text-anchor="middle" x="363.5" y="-171.3" font-family="arial" font-size="14.00">2x</text>
|
||||
<polyline fill="none" stroke="black" points="379,-163.5 379,-186.5 "/>
|
||||
<text text-anchor="middle" x="449" y="-171.3" font-family="arial" font-size="14.00">0.25 mm² (24 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="519,-163.5 519,-186.5 "/>
|
||||
<text text-anchor="middle" x="544.5" y="-171.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="348,-163.5 570,-163.5 "/>
|
||||
<text text-anchor="middle" x="459" y="-148.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="348,-140.5 570,-140.5 "/>
|
||||
<text text-anchor="middle" x="459" y="-125.3" font-family="arial" font-size="14.00">RD</text>
|
||||
</g>
|
||||
<!-- X1--W2 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:p1r--W2:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-149.5C268,-149.5 284,-149.5 348,-149.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-151.5C268,-151.5 284,-151.5 348,-151.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-153.5C268,-153.5 284,-153.5 348,-153.5"/>
|
||||
</g>
|
||||
<!-- X1--W2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:p2r--W2:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-126.5C268,-126.5 284,-126.5 348,-126.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M204,-128.5C268,-128.5 284,-128.5 348,-128.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-130.5C268,-130.5 284,-130.5 348,-130.5"/>
|
||||
</g>
|
||||
<!-- W3 -->
|
||||
<g id="node7" class="node">
|
||||
<title>W3</title>
|
||||
<polygon fill="white" stroke="black" points="348,-0.5 348,-92.5 570,-92.5 570,-0.5 348,-0.5"/>
|
||||
<text text-anchor="middle" x="459" y="-77.3" font-family="arial" font-size="14.00">W3</text>
|
||||
<polyline fill="none" stroke="black" points="348,-69.5 570,-69.5 "/>
|
||||
<text text-anchor="middle" x="363.5" y="-54.3" font-family="arial" font-size="14.00">2x</text>
|
||||
<polyline fill="none" stroke="black" points="379,-46.5 379,-69.5 "/>
|
||||
<text text-anchor="middle" x="449" y="-54.3" font-family="arial" font-size="14.00">0.25 mm² (24 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="519,-46.5 519,-69.5 "/>
|
||||
<text text-anchor="middle" x="544.5" y="-54.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="348,-46.5 570,-46.5 "/>
|
||||
<text text-anchor="middle" x="459" y="-31.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="348,-23.5 570,-23.5 "/>
|
||||
<text text-anchor="middle" x="459" y="-8.3" font-family="arial" font-size="14.00">RD</text>
|
||||
</g>
|
||||
<!-- X1--W3 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>X1:p1r--W3:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-149.5C284.49,-151.85 263.57,-34.85 348,-32.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-151.5C286.46,-151.5 265.54,-34.5 348,-34.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-153.5C288.43,-151.15 267.51,-34.15 348,-36.5"/>
|
||||
</g>
|
||||
<!-- X1--W3 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>X1:p2r--W3:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-126.5C284.49,-128.85 263.57,-11.85 348,-9.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M204,-128.5C286.46,-128.5 265.54,-11.5 348,-11.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-130.5C288.43,-128.15 267.51,-11.15 348,-13.5"/>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="white" stroke="black" points="714,-234.5 714,-326.5 929,-326.5 929,-234.5 714,-234.5"/>
|
||||
<text text-anchor="middle" x="821.5" y="-311.3" font-family="arial" font-size="14.00">X2</text>
|
||||
<polyline fill="none" stroke="black" points="714,-303.5 929,-303.5 "/>
|
||||
<text text-anchor="middle" x="769" y="-288.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="824,-280.5 824,-303.5 "/>
|
||||
<text text-anchor="middle" x="853" y="-288.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="882,-280.5 882,-303.5 "/>
|
||||
<text text-anchor="middle" x="905.5" y="-288.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="714,-280.5 929,-280.5 "/>
|
||||
<text text-anchor="middle" x="762" y="-265.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="714,-257.5 810,-257.5 "/>
|
||||
<text text-anchor="middle" x="762" y="-242.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="810,-234.5 810,-280.5 "/>
|
||||
<text text-anchor="middle" x="869.5" y="-265.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="810,-257.5 929,-257.5 "/>
|
||||
<text text-anchor="middle" x="869.5" y="-242.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
</g>
|
||||
<!-- X3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>X3</title>
|
||||
<polygon fill="white" stroke="black" points="714,-117.5 714,-209.5 929,-209.5 929,-117.5 714,-117.5"/>
|
||||
<text text-anchor="middle" x="821.5" y="-194.3" font-family="arial" font-size="14.00">X3</text>
|
||||
<polyline fill="none" stroke="black" points="714,-186.5 929,-186.5 "/>
|
||||
<text text-anchor="middle" x="769" y="-171.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="824,-163.5 824,-186.5 "/>
|
||||
<text text-anchor="middle" x="853" y="-171.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="882,-163.5 882,-186.5 "/>
|
||||
<text text-anchor="middle" x="905.5" y="-171.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="714,-163.5 929,-163.5 "/>
|
||||
<text text-anchor="middle" x="762" y="-148.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="714,-140.5 810,-140.5 "/>
|
||||
<text text-anchor="middle" x="762" y="-125.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="810,-117.5 810,-163.5 "/>
|
||||
<text text-anchor="middle" x="869.5" y="-148.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="810,-140.5 929,-140.5 "/>
|
||||
<text text-anchor="middle" x="869.5" y="-125.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
</g>
|
||||
<!-- X4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>X4</title>
|
||||
<polygon fill="white" stroke="black" points="714,-0.5 714,-92.5 929,-92.5 929,-0.5 714,-0.5"/>
|
||||
<text text-anchor="middle" x="821.5" y="-77.3" font-family="arial" font-size="14.00">X4</text>
|
||||
<polyline fill="none" stroke="black" points="714,-69.5 929,-69.5 "/>
|
||||
<text text-anchor="middle" x="769" y="-54.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="824,-46.5 824,-69.5 "/>
|
||||
<text text-anchor="middle" x="853" y="-54.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="882,-46.5 882,-69.5 "/>
|
||||
<text text-anchor="middle" x="905.5" y="-54.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="714,-46.5 929,-46.5 "/>
|
||||
<text text-anchor="middle" x="762" y="-31.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="714,-23.5 810,-23.5 "/>
|
||||
<text text-anchor="middle" x="762" y="-8.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="810,-0.5 810,-46.5 "/>
|
||||
<text text-anchor="middle" x="869.5" y="-31.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="810,-23.5 929,-23.5 "/>
|
||||
<text text-anchor="middle" x="869.5" y="-8.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>W1:w1--X2:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-266.5C634,-266.5 650,-266.5 714,-266.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-268.5C634,-268.5 650,-268.5 714,-268.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-270.5C634,-270.5 650,-270.5 714,-270.5"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1:w2--X2:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-243.5C634,-243.5 650,-243.5 714,-243.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M570,-245.5C634,-245.5 650,-245.5 714,-245.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-247.5C634,-247.5 650,-247.5 714,-247.5"/>
|
||||
</g>
|
||||
<!-- W2--X3 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W2:w1--X3:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-149.5C634,-149.5 650,-149.5 714,-149.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-151.5C634,-151.5 650,-151.5 714,-151.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-153.5C634,-153.5 650,-153.5 714,-153.5"/>
|
||||
</g>
|
||||
<!-- W2--X3 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>W2:w2--X3:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-126.5C634,-126.5 650,-126.5 714,-126.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M570,-128.5C634,-128.5 650,-128.5 714,-128.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-130.5C634,-130.5 650,-130.5 714,-130.5"/>
|
||||
</g>
|
||||
<!-- W3--X4 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W3:w1--X4:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-32.5C634,-32.5 650,-32.5 714,-32.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-34.5C634,-34.5 650,-34.5 714,-34.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-36.5C634,-36.5 650,-36.5 714,-36.5"/>
|
||||
</g>
|
||||
<!-- W3--X4 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W3:w2--X4:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-9.5C634,-9.5 650,-9.5 714,-9.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M570,-11.5C634,-11.5 650,-11.5 714,-11.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M570,-13.5C634,-13.5 650,-13.5 714,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
38
examples/ex02.yml
Normal file
@ -0,0 +1,38 @@
|
||||
nodes:
|
||||
X1: &boo
|
||||
type: Molex Micro-Fit
|
||||
gender: male
|
||||
pinout: [GND, VCC]
|
||||
X2: &con_power_f # define template
|
||||
type: Molex Micro-Fit
|
||||
gender: female
|
||||
pinout: [GND, VCC]
|
||||
X3:
|
||||
<<: *con_power_f # create from template
|
||||
X4:
|
||||
<<: *con_power_f # create from template
|
||||
|
||||
wires:
|
||||
W1: &wire_power # define template
|
||||
colors: [BK, RD] # number of wires implicit in color list
|
||||
mm2: 0.25
|
||||
show_equiv: true
|
||||
length: 0.2
|
||||
W2:
|
||||
<<: *wire_power # create from template
|
||||
W3:
|
||||
<<: *wire_power # create from template
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: [1-2]
|
||||
- W1: [1-2]
|
||||
- X2: [1-2]
|
||||
-
|
||||
- X1: [1-2]
|
||||
- W2: [1-2]
|
||||
- X3: [1-2]
|
||||
-
|
||||
- X1: [1-2]
|
||||
- W3: [1-2]
|
||||
- X4: [1-2]
|
||||
52
examples/ex03.gv
Normal file
@ -0,0 +1,52 @@
|
||||
graph {
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor=transparent fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style=filled]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{Molex Micro-Fit|male|2-pin}|{{GND|VCC}|{<p1r>1|<p2r>2}}"]
|
||||
X2 [label="X2|{Molex Micro-Fit|female|2-pin}|{{<p1l>1|<p2l>2}|{GND|VCC}}"]
|
||||
X3 [label="X3|{Molex Micro-Fit|female|2-pin}|{{<p1l>1|<p2l>2}|{GND|VCC}}"]
|
||||
X4 [label="X4|{Molex Micro-Fit|female|2-pin}|{{<p1l>1|<p2l>2}|{GND|VCC}}"]
|
||||
subgraph cluster_W1 {
|
||||
graph [fillcolor=white label="6x | 0.25 mm² (24 AWG) | 0.2 m
|
||||
" style="filled, dashed"]
|
||||
node [fixedsize=true height=0 label="" shape=point width=0]
|
||||
W1_w1l
|
||||
W1_w1r
|
||||
W1_w2l
|
||||
W1_w2r
|
||||
W1_w3l
|
||||
W1_w3r
|
||||
W1_w4l
|
||||
W1_w4r
|
||||
W1_w5l
|
||||
W1_w5r
|
||||
W1_w6l
|
||||
W1_w6r
|
||||
}
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W1_w1l -- W1_w1r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X1:p1r -- W1_w1l:w [headlabel=" X1:1" labelangle=-60 labeldist=0]
|
||||
W1_w1r:e -- X2:p1l [labelangle=60 labeldist=0 taillabel="X2:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W1_w2l -- W1_w2r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
X1:p2r -- W1_w2l:w [headlabel=" X1:2" labelangle=-60 labeldist=0]
|
||||
W1_w2r:e -- X2:p2l [labelangle=60 labeldist=0 taillabel="X2:2 "]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W1_w3l -- W1_w3r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X1:p1r -- W1_w3l:w [headlabel=" X1:1" labelangle=-60 labeldist=0]
|
||||
W1_w3r:e -- X3:p1l [labelangle=60 labeldist=0 taillabel="X3:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W1_w4l -- W1_w4r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
X1:p2r -- W1_w4l:w [headlabel=" X1:2" labelangle=-60 labeldist=0]
|
||||
W1_w4r:e -- X3:p2l [labelangle=60 labeldist=0 taillabel="X3:2 "]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
W1_w5l -- W1_w5r [labelangle=60 labeldist=0 taillabel=" BK"]
|
||||
X1:p1r -- W1_w5l:w [headlabel=" X1:1" labelangle=-60 labeldist=0]
|
||||
W1_w5r:e -- X4:p1l [labelangle=60 labeldist=0 taillabel="X4:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W1_w6l -- W1_w6r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
X1:p2r -- W1_w6l:w [headlabel=" X1:2" labelangle=-60 labeldist=0]
|
||||
W1_w6r:e -- X4:p2l [labelangle=60 labeldist=0 taillabel="X4:2 "]
|
||||
}
|
||||
BIN
examples/ex03.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
301
examples/ex03.svg
Normal file
@ -0,0 +1,301 @@
|
||||
<?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 2.44.0 (20200408.0750)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="925pt" height="335pt"
|
||||
viewBox="0.00 0.00 925.00 335.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 331)">
|
||||
<g id="clust1" class="cluster">
|
||||
<title>cluster_W1</title>
|
||||
<polygon fill="white" stroke="black" stroke-dasharray="5,2" points="340,-71.5 340,-245.5 566,-245.5 566,-71.5 340,-71.5"/>
|
||||
<text text-anchor="middle" x="453" y="-230.3" font-family="arial" font-size="14.00">6x  |  0.25 mm² (24 AWG)  |  0.2 m</text>
|
||||
<text text-anchor="middle" x="453" y="-215.3" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="white" stroke="black" points="0,-116.5 0,-208.5 204,-208.5 204,-116.5 0,-116.5"/>
|
||||
<text text-anchor="middle" x="102" y="-193.3" font-family="arial" font-size="14.00">X1</text>
|
||||
<polyline fill="none" stroke="black" points="0,-185.5 204,-185.5 "/>
|
||||
<text text-anchor="middle" x="55" y="-170.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="110,-162.5 110,-185.5 "/>
|
||||
<text text-anchor="middle" x="133.5" y="-170.3" font-family="arial" font-size="14.00">male</text>
|
||||
<polyline fill="none" stroke="black" points="157,-162.5 157,-185.5 "/>
|
||||
<text text-anchor="middle" x="180.5" y="-170.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="0,-162.5 204,-162.5 "/>
|
||||
<text text-anchor="middle" x="56.5" y="-147.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="0,-139.5 113,-139.5 "/>
|
||||
<text text-anchor="middle" x="56.5" y="-124.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
<polyline fill="none" stroke="black" points="113,-116.5 113,-162.5 "/>
|
||||
<text text-anchor="middle" x="158.5" y="-147.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="113,-139.5 204,-139.5 "/>
|
||||
<text text-anchor="middle" x="158.5" y="-124.3" font-family="arial" font-size="14.00">2</text>
|
||||
</g>
|
||||
<!-- W1_w1l -->
|
||||
<g id="node5" class="node">
|
||||
<title>W1_w1l</title>
|
||||
<ellipse fill="white" stroke="black" cx="381" cy="-199.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w1l -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>X1:p1r--W1_w1l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-148.5C287.12,-149.96 300.73,-198.96 380,-197.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-150.5C285.2,-150.5 298.8,-199.5 380,-199.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-152.5C283.27,-151.04 296.88,-200.04 380,-201.5"/>
|
||||
<text text-anchor="middle" x="374.48" y="-204.14" font-family="arial" font-size="14.00">            X1:1</text>
|
||||
</g>
|
||||
<!-- W1_w2l -->
|
||||
<g id="node7" class="node">
|
||||
<title>W1_w2l</title>
|
||||
<ellipse fill="white" stroke="black" cx="381" cy="-151.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w2l -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:p2r--W1_w2l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-125.5C284.54,-126.3 302.65,-150.3 380,-149.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M204,-127.5C282.95,-127.5 301.05,-151.5 380,-151.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-129.5C281.35,-128.7 299.46,-152.7 380,-153.5"/>
|
||||
<text text-anchor="middle" x="374.74" y="-156.3" font-family="arial" font-size="14.00">            X1:2</text>
|
||||
</g>
|
||||
<!-- W1_w3l -->
|
||||
<g id="node9" class="node">
|
||||
<title>W1_w3l</title>
|
||||
<ellipse fill="white" stroke="black" cx="381" cy="-175.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w3l -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>X1:p1r--W1_w3l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-148.5C284.63,-149.33 302.62,-174.33 380,-173.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-150.5C283.01,-150.5 300.99,-175.5 380,-175.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-152.5C281.38,-151.67 299.37,-176.67 380,-177.5"/>
|
||||
<text text-anchor="middle" x="374.73" y="-180.3" font-family="arial" font-size="14.00">            X1:1</text>
|
||||
</g>
|
||||
<!-- W1_w4l -->
|
||||
<g id="node11" class="node">
|
||||
<title>W1_w4l</title>
|
||||
<ellipse fill="white" stroke="black" cx="381" cy="-103.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w4l -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>X1:p2r--W1_w4l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-125.5C281.35,-126.3 299.46,-102.3 380,-101.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M204,-127.5C282.95,-127.5 301.05,-103.5 380,-103.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-129.5C284.54,-128.7 302.65,-104.7 380,-105.5"/>
|
||||
<text text-anchor="middle" x="375.27" y="-108.61" font-family="arial" font-size="14.00">            X1:2</text>
|
||||
</g>
|
||||
<!-- W1_w5l -->
|
||||
<g id="node13" class="node">
|
||||
<title>W1_w5l</title>
|
||||
<ellipse fill="white" stroke="black" cx="381" cy="-127.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w5l -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>X1:p1r--W1_w5l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-148.5C281.32,-149.26 299.55,-126.26 380,-125.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-150.5C282.89,-150.5 301.11,-127.5 380,-127.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-152.5C284.45,-151.74 302.68,-128.74 380,-129.5"/>
|
||||
<text text-anchor="middle" x="375.26" y="-132.6" font-family="arial" font-size="14.00">            X1:1</text>
|
||||
</g>
|
||||
<!-- W1_w6l -->
|
||||
<g id="node15" class="node">
|
||||
<title>W1_w6l</title>
|
||||
<ellipse fill="white" stroke="black" cx="381" cy="-79.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- X1--W1_w6l -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>X1:p2r--W1_w6l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-125.5C283.16,-126.95 297,-78.95 380,-77.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M204,-127.5C285.08,-127.5 298.92,-79.5 380,-79.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M204,-129.5C287,-128.05 300.84,-80.05 380,-81.5"/>
|
||||
<text text-anchor="middle" x="375.53" y="-84.74" font-family="arial" font-size="14.00">            X1:2</text>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>X2</title>
|
||||
<polygon fill="white" stroke="black" points="702,-234.5 702,-326.5 917,-326.5 917,-234.5 702,-234.5"/>
|
||||
<text text-anchor="middle" x="809.5" y="-311.3" font-family="arial" font-size="14.00">X2</text>
|
||||
<polyline fill="none" stroke="black" points="702,-303.5 917,-303.5 "/>
|
||||
<text text-anchor="middle" x="757" y="-288.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="812,-280.5 812,-303.5 "/>
|
||||
<text text-anchor="middle" x="841" y="-288.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="870,-280.5 870,-303.5 "/>
|
||||
<text text-anchor="middle" x="893.5" y="-288.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="702,-280.5 917,-280.5 "/>
|
||||
<text text-anchor="middle" x="750" y="-265.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="702,-257.5 798,-257.5 "/>
|
||||
<text text-anchor="middle" x="750" y="-242.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="798,-234.5 798,-280.5 "/>
|
||||
<text text-anchor="middle" x="857.5" y="-265.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="798,-257.5 917,-257.5 "/>
|
||||
<text text-anchor="middle" x="857.5" y="-242.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
</g>
|
||||
<!-- X3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>X3</title>
|
||||
<polygon fill="white" stroke="black" points="702,-117.5 702,-209.5 917,-209.5 917,-117.5 702,-117.5"/>
|
||||
<text text-anchor="middle" x="809.5" y="-194.3" font-family="arial" font-size="14.00">X3</text>
|
||||
<polyline fill="none" stroke="black" points="702,-186.5 917,-186.5 "/>
|
||||
<text text-anchor="middle" x="757" y="-171.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="812,-163.5 812,-186.5 "/>
|
||||
<text text-anchor="middle" x="841" y="-171.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="870,-163.5 870,-186.5 "/>
|
||||
<text text-anchor="middle" x="893.5" y="-171.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="702,-163.5 917,-163.5 "/>
|
||||
<text text-anchor="middle" x="750" y="-148.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="702,-140.5 798,-140.5 "/>
|
||||
<text text-anchor="middle" x="750" y="-125.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="798,-117.5 798,-163.5 "/>
|
||||
<text text-anchor="middle" x="857.5" y="-148.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="798,-140.5 917,-140.5 "/>
|
||||
<text text-anchor="middle" x="857.5" y="-125.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
</g>
|
||||
<!-- X4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>X4</title>
|
||||
<polygon fill="white" stroke="black" points="702,-0.5 702,-92.5 917,-92.5 917,-0.5 702,-0.5"/>
|
||||
<text text-anchor="middle" x="809.5" y="-77.3" font-family="arial" font-size="14.00">X4</text>
|
||||
<polyline fill="none" stroke="black" points="702,-69.5 917,-69.5 "/>
|
||||
<text text-anchor="middle" x="757" y="-54.3" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="812,-46.5 812,-69.5 "/>
|
||||
<text text-anchor="middle" x="841" y="-54.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="870,-46.5 870,-69.5 "/>
|
||||
<text text-anchor="middle" x="893.5" y="-54.3" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="702,-46.5 917,-46.5 "/>
|
||||
<text text-anchor="middle" x="750" y="-31.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="702,-23.5 798,-23.5 "/>
|
||||
<text text-anchor="middle" x="750" y="-8.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="798,-0.5 798,-46.5 "/>
|
||||
<text text-anchor="middle" x="857.5" y="-31.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="798,-23.5 917,-23.5 "/>
|
||||
<text text-anchor="middle" x="857.5" y="-8.3" font-family="arial" font-size="14.00">VCC</text>
|
||||
</g>
|
||||
<!-- W1_w1r -->
|
||||
<g id="node6" class="node">
|
||||
<title>W1_w1r</title>
|
||||
<ellipse fill="white" stroke="black" cx="525" cy="-199.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w1l--W1_w1r -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>W1_w1l--W1_w1r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-197.5C386.34,-197.5 519.73,-197.5 523.9,-197.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-199.5C386.34,-199.5 519.73,-199.5 523.9,-199.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-201.5C386.34,-201.5 519.73,-201.5 523.9,-201.5"/>
|
||||
<text text-anchor="middle" x="387.1" y="-204.46" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W1_w1r--X2 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>W1_w1r:e--X2:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-197.5C612.01,-199.27 619.97,-268.27 702,-266.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-199.5C610.02,-199.5 617.98,-268.5 702,-268.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-201.5C608.03,-199.73 615.99,-268.73 702,-270.5"/>
|
||||
<text text-anchor="middle" x="530.26" y="-204.85" font-family="arial" font-size="14.00">X2:1            </text>
|
||||
</g>
|
||||
<!-- W1_w2r -->
|
||||
<g id="node8" class="node">
|
||||
<title>W1_w2r</title>
|
||||
<ellipse fill="white" stroke="black" cx="525" cy="-151.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w2l--W1_w2r -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1_w2l--W1_w2r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-149.5C386.34,-149.5 519.73,-149.5 523.9,-149.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M382.1,-151.5C386.34,-151.5 519.73,-151.5 523.9,-151.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-153.5C386.34,-153.5 519.73,-153.5 523.9,-153.5"/>
|
||||
<text text-anchor="middle" x="387.1" y="-156.46" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W1_w2r--X2 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W1_w2r:e--X2:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-149.5C616.68,-151.53 615.32,-245.53 702,-243.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M526,-151.5C614.68,-151.5 613.32,-245.5 702,-245.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-153.5C612.68,-151.47 611.32,-245.47 702,-247.5"/>
|
||||
<text text-anchor="middle" x="530.03" y="-156.95" font-family="arial" font-size="14.00">X2:2            </text>
|
||||
</g>
|
||||
<!-- W1_w3r -->
|
||||
<g id="node10" class="node">
|
||||
<title>W1_w3r</title>
|
||||
<ellipse fill="white" stroke="black" cx="525" cy="-175.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w3l--W1_w3r -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>W1_w3l--W1_w3r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-173.5C386.34,-173.5 519.73,-173.5 523.9,-173.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-175.5C386.34,-175.5 519.73,-175.5 523.9,-175.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-177.5C386.34,-177.5 519.73,-177.5 523.9,-177.5"/>
|
||||
<text text-anchor="middle" x="387.1" y="-180.46" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W1_w3r--X3 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>W1_w3r:e--X3:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-173.5C603.35,-174.3 621.46,-150.3 702,-149.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-175.5C604.95,-175.5 623.05,-151.5 702,-151.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-177.5C606.54,-176.7 624.65,-152.7 702,-153.5"/>
|
||||
<text text-anchor="middle" x="531.26" y="-180.3" font-family="arial" font-size="14.00">X3:1            </text>
|
||||
</g>
|
||||
<!-- W1_w4r -->
|
||||
<g id="node12" class="node">
|
||||
<title>W1_w4r</title>
|
||||
<ellipse fill="white" stroke="black" cx="525" cy="-103.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w4l--W1_w4r -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W1_w4l--W1_w4r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-101.5C386.34,-101.5 519.73,-101.5 523.9,-101.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M382.1,-103.5C386.34,-103.5 519.73,-103.5 523.9,-103.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-105.5C386.34,-105.5 519.73,-105.5 523.9,-105.5"/>
|
||||
<text text-anchor="middle" x="387.1" y="-108.46" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W1_w4r--X3 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W1_w4r:e--X3:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-101.5C606.63,-102.33 624.62,-127.33 702,-126.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M526,-103.5C605.01,-103.5 622.99,-128.5 702,-128.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-105.5C603.38,-104.67 621.37,-129.67 702,-130.5"/>
|
||||
<text text-anchor="middle" x="530.72" y="-108.61" font-family="arial" font-size="14.00">X3:2            </text>
|
||||
</g>
|
||||
<!-- W1_w5r -->
|
||||
<g id="node14" class="node">
|
||||
<title>W1_w5r</title>
|
||||
<ellipse fill="white" stroke="black" cx="525" cy="-127.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w5l--W1_w5r -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>W1_w5l--W1_w5r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-125.5C386.34,-125.5 519.73,-125.5 523.9,-125.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-127.5C386.34,-127.5 519.73,-127.5 523.9,-127.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-129.5C386.34,-129.5 519.73,-129.5 523.9,-129.5"/>
|
||||
<text text-anchor="middle" x="387.1" y="-132.46" font-family="arial" font-size="14.00">                                   BK</text>
|
||||
</g>
|
||||
<!-- W1_w5r--X4 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>W1_w5r:e--X4:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-125.5C612.47,-127.52 611.53,-34.52 702,-32.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-127.5C614.47,-127.5 613.53,-34.5 702,-34.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-129.5C616.47,-127.48 615.53,-34.48 702,-36.5"/>
|
||||
<text text-anchor="middle" x="531.9" y="-131.87" font-family="arial" font-size="14.00">X4:1            </text>
|
||||
</g>
|
||||
<!-- W1_w6r -->
|
||||
<g id="node16" class="node">
|
||||
<title>W1_w6r</title>
|
||||
<ellipse fill="white" stroke="black" cx="525" cy="-79.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w6l--W1_w6r -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>W1_w6l--W1_w6r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-77.5C386.34,-77.5 519.73,-77.5 523.9,-77.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M382.1,-79.5C386.34,-79.5 519.73,-79.5 523.9,-79.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M382.1,-81.5C386.34,-81.5 519.73,-81.5 523.9,-81.5"/>
|
||||
<text text-anchor="middle" x="387.1" y="-84.46" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W1_w6r--X4 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>W1_w6r:e--X4:p2l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-77.5C607.87,-79.26 616.16,-11.26 702,-9.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M526,-79.5C609.86,-79.5 618.14,-11.5 702,-11.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M526,-81.5C611.84,-79.74 620.13,-11.74 702,-13.5"/>
|
||||
<text text-anchor="middle" x="531.7" y="-84.02" font-family="arial" font-size="14.00">X4:2            </text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 20 KiB |
36
examples/ex03.yml
Normal file
@ -0,0 +1,36 @@
|
||||
nodes:
|
||||
X1: &boo
|
||||
type: Molex Micro-Fit
|
||||
gender: male
|
||||
pinout: [GND, VCC]
|
||||
X2: &con_power_f
|
||||
type: Molex Micro-Fit
|
||||
gender: female
|
||||
pinout: [GND, VCC]
|
||||
X3:
|
||||
<<: *con_power_f
|
||||
X4:
|
||||
<<: *con_power_f
|
||||
|
||||
wires:
|
||||
W1:
|
||||
type: bundle # bundles are routed together, but more loosely than normal cables
|
||||
num_wires: 6
|
||||
colors: [BK, RD] # if number of items in color list is less than num_wires, loop colors
|
||||
mm2: 0.25
|
||||
show_equiv: true
|
||||
length: 0.2
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: [1-2]
|
||||
- W1: [1-2]
|
||||
- X2: [1-2]
|
||||
-
|
||||
- X1: [1-2]
|
||||
- W1: [3,4]
|
||||
- X3: [1-2]
|
||||
-
|
||||
- X1: [1-2]
|
||||
- W1: [5,6]
|
||||
- X4: [1-2]
|
||||
66
examples/ex04.gv
Normal file
@ -0,0 +1,66 @@
|
||||
graph {
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
graph [bgcolor=transparent fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style=filled]
|
||||
edge [fontname=arial style=bold]
|
||||
F1 [label="{crimp}|{{<p1r>1}}"]
|
||||
F2 [label="{crimp}|{{<p1r>1}}"]
|
||||
F3 [label="{crimp}|{{<p1r>1}}"]
|
||||
F4 [label="{crimp}|{{<p1r>1}}"]
|
||||
F5 [label="{crimp}|{{<p1r>1}}"]
|
||||
F6 [label="{crimp}|{{<p1r>1}}"]
|
||||
F7 [label="{crimp}|{{<p1l>1}}"]
|
||||
F8 [label="{crimp}|{{<p1l>1}}"]
|
||||
F9 [label="{crimp}|{{<p1l>1}}"]
|
||||
F10 [label="{crimp}|{{<p1l>1}}"]
|
||||
F11 [label="{crimp}|{{<p1l>1}}"]
|
||||
F12 [label="{crimp}|{{<p1l>1}}"]
|
||||
subgraph cluster_W1 {
|
||||
graph [fillcolor=white label="6x | 0.25 mm² (24 AWG) | 0.2 m
|
||||
" style="filled, dashed"]
|
||||
node [fixedsize=true height=0 label="" shape=point width=0]
|
||||
W1_w1l
|
||||
W1_w1r
|
||||
W1_w2l
|
||||
W1_w2r
|
||||
W1_w3l
|
||||
W1_w3r
|
||||
W1_w4l
|
||||
W1_w4r
|
||||
W1_w5l
|
||||
W1_w5r
|
||||
W1_w6l
|
||||
W1_w6r
|
||||
}
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
W1_w1l -- W1_w1r [labelangle=60 labeldist=0 taillabel=" BN"]
|
||||
F1:p1r -- W1_w1l:w [headlabel=" F1:1" labelangle=-60 labeldist=0]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W1_w2l -- W1_w2r [labelangle=60 labeldist=0 taillabel=" RD"]
|
||||
F2:p1r -- W1_w2l:w [headlabel=" F2:1" labelangle=-60 labeldist=0]
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
W1_w3l -- W1_w3r [labelangle=60 labeldist=0 taillabel=" OG"]
|
||||
F3:p1r -- W1_w3l:w [headlabel=" F3:1" labelangle=-60 labeldist=0]
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
W1_w4l -- W1_w4r [labelangle=60 labeldist=0 taillabel=" YE"]
|
||||
F4:p1r -- W1_w4l:w [headlabel=" F4:1" labelangle=-60 labeldist=0]
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
W1_w5l -- W1_w5r [labelangle=60 labeldist=0 taillabel=" GN"]
|
||||
F5:p1r -- W1_w5l:w [headlabel=" F5:1" labelangle=-60 labeldist=0]
|
||||
edge [color="#000000:#0066ff:#000000"]
|
||||
W1_w6l -- W1_w6r [labelangle=60 labeldist=0 taillabel=" BU"]
|
||||
F6:p1r -- W1_w6l:w [headlabel=" F6:1" labelangle=-60 labeldist=0]
|
||||
edge [color="#000000:#0066ff:#000000"]
|
||||
W1_w6r:e -- F7:p1l [labelangle=60 labeldist=0 taillabel="F7:1 "]
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
W1_w5r:e -- F8:p1l [labelangle=60 labeldist=0 taillabel="F8:1 "]
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
W1_w4r:e -- F9:p1l [labelangle=60 labeldist=0 taillabel="F9:1 "]
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
W1_w3r:e -- F10:p1l [labelangle=60 labeldist=0 taillabel="F10:1 "]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
W1_w2r:e -- F11:p1l [labelangle=60 labeldist=0 taillabel="F11:1 "]
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
W1_w1r:e -- F12:p1l [labelangle=60 labeldist=0 taillabel="F12:1 "]
|
||||
}
|
||||
BIN
examples/ex04.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
317
examples/ex04.svg
Normal file
@ -0,0 +1,317 @@
|
||||
<?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 2.44.0 (20200408.0750)
|
||||
-->
|
||||
<!-- Pages: 1 -->
|
||||
<svg width="614pt" height="410pt"
|
||||
viewBox="0.00 0.00 614.00 410.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 406)">
|
||||
<g id="clust1" class="cluster">
|
||||
<title>cluster_W1</title>
|
||||
<polygon fill="white" stroke="black" stroke-dasharray="5,2" points="190,-120.5 190,-294.5 416,-294.5 416,-120.5 190,-120.5"/>
|
||||
<text text-anchor="middle" x="303" y="-279.3" font-family="arial" font-size="14.00">6x  |  0.25 mm² (24 AWG)  |  0.2 m</text>
|
||||
<text text-anchor="middle" x="303" y="-264.3" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<!-- F1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>F1</title>
|
||||
<polygon fill="white" stroke="black" points="0,-355.5 0,-401.5 54,-401.5 54,-355.5 0,-355.5"/>
|
||||
<text text-anchor="middle" x="27" y="-386.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="0,-378.5 54,-378.5 "/>
|
||||
<text text-anchor="middle" x="27" y="-363.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w1l -->
|
||||
<g id="node13" class="node">
|
||||
<title>W1_w1l</title>
|
||||
<ellipse fill="white" stroke="black" cx="231" cy="-248.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- F1--W1_w1l -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>F1:p1r--W1_w1l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-364.5C146.19,-366.71 133.83,-248.71 230,-246.5"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M54,-366.5C148.18,-366.5 135.82,-248.5 230,-248.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-368.5C150.17,-366.29 137.81,-248.29 230,-250.5"/>
|
||||
<text text-anchor="middle" x="226.16" y="-254.04" font-family="arial" font-size="14.00">            F1:1</text>
|
||||
</g>
|
||||
<!-- F2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>F2</title>
|
||||
<polygon fill="white" stroke="black" points="0,-284.5 0,-330.5 54,-330.5 54,-284.5 0,-284.5"/>
|
||||
<text text-anchor="middle" x="27" y="-315.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="0,-307.5 54,-307.5 "/>
|
||||
<text text-anchor="middle" x="27" y="-292.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w2l -->
|
||||
<g id="node15" class="node">
|
||||
<title>W1_w2l</title>
|
||||
<ellipse fill="white" stroke="black" cx="231" cy="-224.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- F2--W1_w2l -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>F2:p1r--W1_w2l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-293.5C136.36,-295.3 143.66,-224.3 230,-222.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M54,-295.5C138.35,-295.5 145.65,-224.5 230,-224.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-297.5C140.34,-295.7 147.64,-224.7 230,-226.5"/>
|
||||
<text text-anchor="middle" x="225.76" y="-229.86" font-family="arial" font-size="14.00">            F2:1</text>
|
||||
</g>
|
||||
<!-- F3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>F3</title>
|
||||
<polygon fill="white" stroke="black" points="0,-213.5 0,-259.5 54,-259.5 54,-213.5 0,-213.5"/>
|
||||
<text text-anchor="middle" x="27" y="-244.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="0,-236.5 54,-236.5 "/>
|
||||
<text text-anchor="middle" x="27" y="-221.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w3l -->
|
||||
<g id="node17" class="node">
|
||||
<title>W1_w3l</title>
|
||||
<ellipse fill="white" stroke="black" cx="231" cy="-200.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- F3--W1_w3l -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>F3:p1r--W1_w3l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-222.5C131.35,-223.3 149.46,-199.3 230,-198.5"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M54,-224.5C132.95,-224.5 151.05,-200.5 230,-200.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-226.5C134.54,-225.7 152.65,-201.7 230,-202.5"/>
|
||||
<text text-anchor="middle" x="225.27" y="-205.61" font-family="arial" font-size="14.00">            F3:1</text>
|
||||
</g>
|
||||
<!-- F4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>F4</title>
|
||||
<polygon fill="white" stroke="black" points="0,-142.5 0,-188.5 54,-188.5 54,-142.5 0,-142.5"/>
|
||||
<text text-anchor="middle" x="27" y="-173.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="0,-165.5 54,-165.5 "/>
|
||||
<text text-anchor="middle" x="27" y="-150.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w4l -->
|
||||
<g id="node19" class="node">
|
||||
<title>W1_w4l</title>
|
||||
<ellipse fill="white" stroke="black" cx="231" cy="-176.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- F4--W1_w4l -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>F4:p1r--W1_w4l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-151.5C134.45,-152.26 152.68,-175.26 230,-174.5"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M54,-153.5C132.89,-153.5 151.11,-176.5 230,-176.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-155.5C131.32,-154.74 149.55,-177.74 230,-178.5"/>
|
||||
<text text-anchor="middle" x="224.75" y="-181.31" font-family="arial" font-size="14.00">            F4:1</text>
|
||||
</g>
|
||||
<!-- F5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>F5</title>
|
||||
<polygon fill="white" stroke="black" points="0,-71.5 0,-117.5 54,-117.5 54,-71.5 0,-71.5"/>
|
||||
<text text-anchor="middle" x="27" y="-102.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="0,-94.5 54,-94.5 "/>
|
||||
<text text-anchor="middle" x="27" y="-79.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w5l -->
|
||||
<g id="node21" class="node">
|
||||
<title>W1_w5l</title>
|
||||
<ellipse fill="white" stroke="black" cx="231" cy="-152.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- F5--W1_w5l -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>F5:p1r--W1_w5l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-80.5C140.17,-82.28 147.81,-152.28 230,-150.5"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M54,-82.5C138.18,-82.5 145.82,-152.5 230,-152.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-84.5C136.19,-82.72 143.83,-152.72 230,-154.5"/>
|
||||
<text text-anchor="middle" x="224.29" y="-157.01" font-family="arial" font-size="14.00">            F5:1</text>
|
||||
</g>
|
||||
<!-- F6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>F6</title>
|
||||
<polygon fill="white" stroke="black" points="0,-0.5 0,-46.5 54,-46.5 54,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="27" y="-31.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="0,-23.5 54,-23.5 "/>
|
||||
<text text-anchor="middle" x="27" y="-8.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w6l -->
|
||||
<g id="node23" class="node">
|
||||
<title>W1_w6l</title>
|
||||
<ellipse fill="white" stroke="black" cx="231" cy="-128.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- F6--W1_w6l -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>F6:p1r--W1_w6l:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-9.5C149.92,-11.7 138.06,-128.7 230,-126.5"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M54,-11.5C147.93,-11.5 136.07,-128.5 230,-128.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M54,-13.5C145.94,-11.3 134.08,-128.3 230,-130.5"/>
|
||||
<text text-anchor="middle" x="223.93" y="-132.74" font-family="arial" font-size="14.00">            F6:1</text>
|
||||
</g>
|
||||
<!-- F7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>F7</title>
|
||||
<polygon fill="white" stroke="black" points="552,-0.5 552,-46.5 606,-46.5 606,-0.5 552,-0.5"/>
|
||||
<text text-anchor="middle" x="579" y="-31.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="552,-23.5 606,-23.5 "/>
|
||||
<text text-anchor="middle" x="579" y="-8.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- F8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>F8</title>
|
||||
<polygon fill="white" stroke="black" points="552,-71.5 552,-117.5 606,-117.5 606,-71.5 552,-71.5"/>
|
||||
<text text-anchor="middle" x="579" y="-102.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="552,-94.5 606,-94.5 "/>
|
||||
<text text-anchor="middle" x="579" y="-79.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- F9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>F9</title>
|
||||
<polygon fill="white" stroke="black" points="552,-142.5 552,-188.5 606,-188.5 606,-142.5 552,-142.5"/>
|
||||
<text text-anchor="middle" x="579" y="-173.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="552,-165.5 606,-165.5 "/>
|
||||
<text text-anchor="middle" x="579" y="-150.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- F10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>F10</title>
|
||||
<polygon fill="white" stroke="black" points="552,-213.5 552,-259.5 606,-259.5 606,-213.5 552,-213.5"/>
|
||||
<text text-anchor="middle" x="579" y="-244.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="552,-236.5 606,-236.5 "/>
|
||||
<text text-anchor="middle" x="579" y="-221.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- F11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>F11</title>
|
||||
<polygon fill="white" stroke="black" points="552,-284.5 552,-330.5 606,-330.5 606,-284.5 552,-284.5"/>
|
||||
<text text-anchor="middle" x="579" y="-315.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="552,-307.5 606,-307.5 "/>
|
||||
<text text-anchor="middle" x="579" y="-292.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- F12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>F12</title>
|
||||
<polygon fill="white" stroke="black" points="552,-355.5 552,-401.5 606,-401.5 606,-355.5 552,-355.5"/>
|
||||
<text text-anchor="middle" x="579" y="-386.3" font-family="arial" font-size="14.00">crimp</text>
|
||||
<polyline fill="none" stroke="black" points="552,-378.5 606,-378.5 "/>
|
||||
<text text-anchor="middle" x="579" y="-363.3" font-family="arial" font-size="14.00">1</text>
|
||||
</g>
|
||||
<!-- W1_w1r -->
|
||||
<g id="node14" class="node">
|
||||
<title>W1_w1r</title>
|
||||
<ellipse fill="white" stroke="black" cx="375" cy="-248.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w1l--W1_w1r -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>W1_w1l--W1_w1r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-246.5C236.34,-246.5 369.73,-246.5 373.9,-246.5"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M232.1,-248.5C236.34,-248.5 369.73,-248.5 373.9,-248.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-250.5C236.34,-250.5 369.73,-250.5 373.9,-250.5"/>
|
||||
<text text-anchor="middle" x="237.1" y="-253.46" font-family="arial" font-size="14.00">                                   BN</text>
|
||||
</g>
|
||||
<!-- W1_w1r--F12 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>W1_w1r:e--F12:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-246.5C472.17,-248.71 459.81,-366.71 552,-364.5"/>
|
||||
<path fill="none" stroke="#666600" stroke-width="2" d="M376,-248.5C470.18,-248.5 457.82,-366.5 552,-366.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-250.5C468.19,-248.29 455.83,-366.29 552,-368.5"/>
|
||||
<text text-anchor="middle" x="379.84" y="-254.04" font-family="arial" font-size="14.00">F12:1            </text>
|
||||
</g>
|
||||
<!-- W1_w2r -->
|
||||
<g id="node16" class="node">
|
||||
<title>W1_w2r</title>
|
||||
<ellipse fill="white" stroke="black" cx="375" cy="-224.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w2l--W1_w2r -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>W1_w2l--W1_w2r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-222.5C236.34,-222.5 369.73,-222.5 373.9,-222.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M232.1,-224.5C236.34,-224.5 369.73,-224.5 373.9,-224.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-226.5C236.34,-226.5 369.73,-226.5 373.9,-226.5"/>
|
||||
<text text-anchor="middle" x="237.1" y="-229.46" font-family="arial" font-size="14.00">                                   RD</text>
|
||||
</g>
|
||||
<!-- W1_w2r--F11 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>W1_w2r:e--F11:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-222.5C462.34,-224.3 469.64,-295.3 552,-293.5"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M376,-224.5C460.35,-224.5 467.65,-295.5 552,-295.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-226.5C458.36,-224.7 465.66,-295.7 552,-297.5"/>
|
||||
<text text-anchor="middle" x="380.24" y="-229.86" font-family="arial" font-size="14.00">F11:1            </text>
|
||||
</g>
|
||||
<!-- W1_w3r -->
|
||||
<g id="node18" class="node">
|
||||
<title>W1_w3r</title>
|
||||
<ellipse fill="white" stroke="black" cx="375" cy="-200.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w3l--W1_w3r -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>W1_w3l--W1_w3r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-198.5C236.34,-198.5 369.73,-198.5 373.9,-198.5"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M232.1,-200.5C236.34,-200.5 369.73,-200.5 373.9,-200.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-202.5C236.34,-202.5 369.73,-202.5 373.9,-202.5"/>
|
||||
<text text-anchor="middle" x="237.1" y="-205.46" font-family="arial" font-size="14.00">                                   OG</text>
|
||||
</g>
|
||||
<!-- W1_w3r--F10 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>W1_w3r:e--F10:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-198.5C456.54,-199.3 474.65,-223.3 552,-222.5"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M376,-200.5C454.95,-200.5 473.05,-224.5 552,-224.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-202.5C453.35,-201.7 471.46,-225.7 552,-226.5"/>
|
||||
<text text-anchor="middle" x="380.73" y="-205.61" font-family="arial" font-size="14.00">F10:1            </text>
|
||||
</g>
|
||||
<!-- W1_w4r -->
|
||||
<g id="node20" class="node">
|
||||
<title>W1_w4r</title>
|
||||
<ellipse fill="white" stroke="black" cx="375" cy="-176.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w4l--W1_w4r -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>W1_w4l--W1_w4r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-174.5C236.34,-174.5 369.73,-174.5 373.9,-174.5"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M232.1,-176.5C236.34,-176.5 369.73,-176.5 373.9,-176.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-178.5C236.34,-178.5 369.73,-178.5 373.9,-178.5"/>
|
||||
<text text-anchor="middle" x="237.1" y="-181.46" font-family="arial" font-size="14.00">                                   YE</text>
|
||||
</g>
|
||||
<!-- W1_w4r--F9 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>W1_w4r:e--F9:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-174.5C453.32,-175.26 471.55,-152.26 552,-151.5"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M376,-176.5C454.89,-176.5 473.11,-153.5 552,-153.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-178.5C456.45,-177.74 474.68,-154.74 552,-155.5"/>
|
||||
<text text-anchor="middle" x="381.25" y="-181.31" font-family="arial" font-size="14.00">F9:1            </text>
|
||||
</g>
|
||||
<!-- W1_w5r -->
|
||||
<g id="node22" class="node">
|
||||
<title>W1_w5r</title>
|
||||
<ellipse fill="white" stroke="black" cx="375" cy="-152.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w5l--W1_w5r -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>W1_w5l--W1_w5r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-150.5C236.34,-150.5 369.73,-150.5 373.9,-150.5"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M232.1,-152.5C236.34,-152.5 369.73,-152.5 373.9,-152.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-154.5C236.34,-154.5 369.73,-154.5 373.9,-154.5"/>
|
||||
<text text-anchor="middle" x="237.1" y="-157.46" font-family="arial" font-size="14.00">                                   GN</text>
|
||||
</g>
|
||||
<!-- W1_w5r--F8 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>W1_w5r:e--F8:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-150.5C458.19,-152.28 465.83,-82.28 552,-80.5"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M376,-152.5C460.18,-152.5 467.82,-82.5 552,-82.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-154.5C462.17,-152.72 469.81,-82.72 552,-84.5"/>
|
||||
<text text-anchor="middle" x="381.71" y="-157.01" font-family="arial" font-size="14.00">F8:1            </text>
|
||||
</g>
|
||||
<!-- W1_w6r -->
|
||||
<g id="node24" class="node">
|
||||
<title>W1_w6r</title>
|
||||
<ellipse fill="white" stroke="black" cx="375" cy="-128.5" rx="0" ry="0"/>
|
||||
</g>
|
||||
<!-- W1_w6l--W1_w6r -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>W1_w6l--W1_w6r</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-126.5C236.34,-126.5 369.73,-126.5 373.9,-126.5"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M232.1,-128.5C236.34,-128.5 369.73,-128.5 373.9,-128.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M232.1,-130.5C236.34,-130.5 369.73,-130.5 373.9,-130.5"/>
|
||||
<text text-anchor="middle" x="237.1" y="-133.46" font-family="arial" font-size="14.00">                                   BU</text>
|
||||
</g>
|
||||
<!-- W1_w6r--F7 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>W1_w6r:e--F7:p1l</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-126.5C467.94,-128.7 456.08,-11.7 552,-9.5"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M376,-128.5C469.93,-128.5 458.07,-11.5 552,-11.5"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M376,-130.5C471.92,-128.3 460.06,-11.3 552,-13.5"/>
|
||||
<text text-anchor="middle" x="382.07" y="-132.74" font-family="arial" font-size="14.00">F7:1            </text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 19 KiB |
32
examples/ex04.yml
Normal file
@ -0,0 +1,32 @@
|
||||
# nodes:
|
||||
# X1:
|
||||
# type: D-Sub
|
||||
# gender: female
|
||||
# num_pins: 4
|
||||
# X2:
|
||||
# type: Molex KK 254
|
||||
# gender: female
|
||||
# num_pins: 3
|
||||
|
||||
wires:
|
||||
W1:
|
||||
mm2: 0.25
|
||||
show_equiv: true
|
||||
length: 0.2
|
||||
color_code: IEC
|
||||
num_wires: 6
|
||||
type: bundle
|
||||
|
||||
ferrules:
|
||||
ferrule_crimp:
|
||||
type: crimp
|
||||
show_name: false
|
||||
show_num_pins: false
|
||||
|
||||
connections:
|
||||
-
|
||||
- ferrule_crimp
|
||||
- W1: [1-6]
|
||||
-
|
||||
- W1: [6-1]
|
||||
- ferrule_crimp
|
||||
|
Before Width: | Height: | Size: 57 KiB |
@ -1,15 +0,0 @@
|
||||
import wireviz
|
||||
|
||||
h = wireviz.Harness()
|
||||
|
||||
h.add_cable('W1', mm2=0.25, length=0.2, show_name=True, show_pinout=True, num_wires=3, color_code='DIN', shield=True)
|
||||
h.add_node('X1', type='D-Sub', gender='female', pinout=('DCD','RX','TX','DTR','GND','DSR','RTS','CTS','RI'))
|
||||
h.add_node('X2', type='Molex KK 254', gender='female', pinout=('GND','RX','TX','NC','OUT','IN'))
|
||||
# Option 1: define wires and shield in one line
|
||||
h.connect('X1',(5,2,3,5),'W1',(1,2,3,'s'),'X2',(1,3,2,None))
|
||||
h.loop('X2', 5, 6)
|
||||
# Option 2: define wires and shield separately
|
||||
# Harness.objects['W1'].connect('X1',(5,2,3),'auto','X2',(1,3,2)) # wires
|
||||
# Harness.objects['W1'].connect('X1',(5,),('s',),'X2',(None,)) # shield
|
||||
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
|
Before Width: | Height: | Size: 138 KiB |
@ -1,31 +0,0 @@
|
||||
import wireviz
|
||||
|
||||
h = wireviz.Harness()
|
||||
|
||||
# shortcuts for use during harness creation
|
||||
PINOUT_I2C = ('GND','+5V','SCL','SDA')
|
||||
COLORS_I2C = ('BK', 'RD', 'YE', 'GN')
|
||||
PINOUT_SPI_DATAONLY = ('MISO','MOSI','SCK')
|
||||
|
||||
h.add_node('X1', type='Molex KK 254', gender='female', pinout=('GND',
|
||||
'+5V',
|
||||
'SCL',
|
||||
'SDA',
|
||||
'MISO',
|
||||
'MOSI',
|
||||
'SCK',
|
||||
'N/C'))
|
||||
h.add_node('X2', type='Molex KK 254', gender='female', pinout=PINOUT_I2C)
|
||||
h.add_node('X3', type='Molex KK 254', gender='female', pinout=PINOUT_I2C)
|
||||
h.add_node('X4', type='Molex KK 254', gender='female', pinout=('GND','+12V')+PINOUT_SPI_DATAONLY)
|
||||
h.add_node('X5', type='Molex Micro-Fit', gender='male', pinout=('GND','+12V'))
|
||||
h.add_cable('W1', mm2=0.14, show_equiv=True, length=0.2, colors=COLORS_I2C, show_name=False)
|
||||
h.add_cable('W2', mm2=0.14, show_equiv=True, length=0.2, colors=COLORS_I2C, show_name=False)
|
||||
h.add_cable('W3', mm2=0.14, show_equiv=True, length=0.2, colors=('BK','BU','OG','VT'), show_name=False)
|
||||
h.add_cable('W4', mm2=0.5, show_equiv=True, length=0.35, colors=('BK','RD'), show_name=False)
|
||||
h.connect('X1',(1,2,3,4),'W1','auto','X2','auto')
|
||||
h.connect('X1',(1,2,3,4),'W2','auto','X3','auto')
|
||||
h.connect('X1',(1,5,6,7),'W3','auto','X4',(1,3,4,5))
|
||||
h.connect_all_straight('W4','X5','X4')
|
||||
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
@ -1,64 +0,0 @@
|
||||
templates: # defining templates to be used later on
|
||||
- &molex_f
|
||||
type: Molex KK 254
|
||||
gender: female
|
||||
- &con_i2c
|
||||
pinout: [GND, +5V, SCL, SDA]
|
||||
- &wire_i2c
|
||||
mm2: 0.14
|
||||
length: 0.2
|
||||
colors: [BK, RD, YE, GN]
|
||||
|
||||
nodes:
|
||||
X1:
|
||||
<<: *molex_f # copying items from the template
|
||||
pinout: [GND, +5V, SCL, SDA, MISO, MOSI, SCK, N/C]
|
||||
X2:
|
||||
<<: *molex_f
|
||||
<<: *con_i2c # it is possible to copy from more than one template
|
||||
X3:
|
||||
<<: *molex_f
|
||||
<<: *con_i2c
|
||||
X4:
|
||||
<<: *molex_f
|
||||
pinout: [GND, +12V, MISO, MOSI, SCK]
|
||||
X5:
|
||||
type: Molex Micro-Fit
|
||||
gender: male
|
||||
pinout: [GND, +12V]
|
||||
|
||||
wires:
|
||||
W1:
|
||||
<<: *wire_i2c
|
||||
show_name: false
|
||||
W2:
|
||||
<<: *wire_i2c
|
||||
show_name: false
|
||||
W3:
|
||||
mm2: 0.14
|
||||
length: 0.2
|
||||
colors: [BK, BU, OG, VT]
|
||||
show_name: false
|
||||
W4:
|
||||
mm2: 0.5
|
||||
length: 0.35
|
||||
colors: [BK, RD]
|
||||
show_name: false
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: [1-4]
|
||||
- W1: [1-4]
|
||||
- X2: [1-4]
|
||||
-
|
||||
- X1: [1-4]
|
||||
- W2: [1-4]
|
||||
- X3: [1-4]
|
||||
-
|
||||
- X1: [1,5-7]
|
||||
- W3: [1-4]
|
||||
- X4: [1,3-5]
|
||||
-
|
||||
- X5: [1,2]
|
||||
- W4: [1,2]
|
||||
- X4: [1,2]
|
||||
@ -1,26 +0,0 @@
|
||||
import wireviz
|
||||
|
||||
h = wireviz.Harness()
|
||||
h.color_mode = 'full'
|
||||
|
||||
h.add_node('X1', num_pins=10)
|
||||
h.add_node('X2', num_pins=10)
|
||||
h.add_cable('W1', num_wires=10, color_code='IEC')
|
||||
h.connect_all_straight('W1','X1','X2')
|
||||
|
||||
h.add_node('X3', num_pins=20)
|
||||
h.add_node('X4', num_pins=20)
|
||||
h.add_cable('W2', num_wires=20, color_code='DIN')
|
||||
h.connect_all_straight('W2','X3','X4')
|
||||
|
||||
h.add_node('X5', num_pins=20)
|
||||
h.add_node('X6', num_pins=20)
|
||||
h.add_cable('W3', num_wires=20, colors=('RD','YE','BU'))
|
||||
h.connect_all_straight('W3','X5','X6')
|
||||
|
||||
h.add_node('X7', num_pins=6)
|
||||
h.add_node('X8', num_pins=6)
|
||||
h.add_cable('W4', num_wires=6, length=1, mm2=1)
|
||||
h.connect_all_straight('W4','X7','X8')
|
||||
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
@ -1,13 +0,0 @@
|
||||
import wireviz
|
||||
|
||||
h = wireviz.Harness()
|
||||
|
||||
h.add_cable('W1', show_name=False, show_num_wires=False, num_wires=4, color_code='DIN')
|
||||
h.add_cable('W2', show_name=False, show_num_wires=False, num_wires=4, color_code='DIN')
|
||||
h.add_node('X1', num_pins=4, show_num_pins=False)
|
||||
h.add_node('X2', num_pins=4, show_num_pins=False)
|
||||
h.add_node('X3', num_pins=4, show_num_pins=False)
|
||||
h.connect_all_straight('W1','X1','X2')
|
||||
h.connect_all_straight('W2','X2','X3')
|
||||
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
@ -1,34 +0,0 @@
|
||||
nodes:
|
||||
X1:
|
||||
type: D-Sub
|
||||
gender: female
|
||||
num_pins: 4
|
||||
X2:
|
||||
type: Molex KK 254
|
||||
gender: female
|
||||
num_pins: 3
|
||||
|
||||
wires:
|
||||
W1:
|
||||
mm2: 0.25
|
||||
show_equiv: true
|
||||
length: 0.2
|
||||
color_code: IEC
|
||||
num_wires: 10
|
||||
type: bundle
|
||||
|
||||
ferrules:
|
||||
F_test:
|
||||
type: crimp
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: [1-3]
|
||||
- W1: [1-3]
|
||||
- X2: [1-3]
|
||||
-
|
||||
- F_test
|
||||
- W1: [4-10]
|
||||
-
|
||||
- W1: [10-4]
|
||||
- F_test
|
||||
25
examples/readme.md
Normal file
@ -0,0 +1,25 @@
|
||||
# Example gallery
|
||||
## Example 01
|
||||

|
||||
|
||||
[Source](ex01.yml)
|
||||
|
||||
|
||||
## Example 02
|
||||

|
||||
|
||||
[Source](ex02.yml)
|
||||
|
||||
|
||||
## Example 03
|
||||

|
||||
|
||||
[Source](ex03.yml)
|
||||
|
||||
|
||||
## Example 04
|
||||

|
||||
|
||||
[Source](ex04.yml)
|
||||
|
||||
|
||||
@ -1,43 +0,0 @@
|
||||
nodes:
|
||||
X1:
|
||||
# type: D-Sub
|
||||
# gender: female
|
||||
num_pins: 15
|
||||
X2:
|
||||
type: Molex KK 254
|
||||
gender: female
|
||||
num_pins: 10
|
||||
|
||||
wires:
|
||||
W1:
|
||||
mm2: 0.25
|
||||
length: 0.2
|
||||
color_code: DIN
|
||||
num_wires: 15
|
||||
shield: true
|
||||
|
||||
connections:
|
||||
-
|
||||
- X1: 1
|
||||
- W1: 1
|
||||
- X2: 1
|
||||
-
|
||||
- X1: [2,3,4]
|
||||
- W1: [2,3,4]
|
||||
- X2: [4,3,2]
|
||||
-
|
||||
- X1: [5-10]
|
||||
- W1: [5-7,10,9,8]
|
||||
- X2: [10-5]
|
||||
-
|
||||
- X1: 11
|
||||
- W1: s
|
||||
-
|
||||
- X1: [1-5]
|
||||
- W1: [11-15]
|
||||
-
|
||||
- W1: [12-15]
|
||||
- X2: [2-5]
|
||||
-
|
||||
- X1: [12,14]
|
||||
- X1: [13,15]
|
||||
20
readme.md
@ -23,16 +23,17 @@ WireViz is a simple yet flexible, YAML-based markup language for documenting cab
|
||||
|
||||
_Note_: WireViz is not designed to represent the complete wiring of a system. Its main aim is to document the construction of individual wires and harnesses.
|
||||
|
||||
## Example
|
||||
## Examples
|
||||
|
||||
[WireViz input file](examples/example1.yml):
|
||||
### Demo 01
|
||||
|
||||
[WireViz input file](examples/demo01.yml):
|
||||
|
||||
nodes:
|
||||
X1:
|
||||
type: D-Sub
|
||||
gender: female
|
||||
pinout: [DCD, RX, TX, DTR, GND, DSR, RTS, CTS, RI]
|
||||
random: yes
|
||||
X2:
|
||||
type: Molex KK 254
|
||||
gender: female
|
||||
@ -60,17 +61,22 @@ _Note_: WireViz is not designed to represent the complete wiring of a system. It
|
||||
|
||||
Output file:
|
||||
|
||||

|
||||

|
||||
|
||||
[Example 2](examples/example2.yml)
|
||||
### Demo 02
|
||||
|
||||

|
||||

|
||||
|
||||
[Source](examples/demo02.yml)
|
||||
|
||||
### More examples
|
||||
|
||||
See the [example gallery](examples/) and included readme file.
|
||||
|
||||
## Status
|
||||
|
||||
This is very much a [work in progress](todo.md).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
GNU GPLv3
|
||||
|
||||
2
src/.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
__pycache__/
|
||||
_output/
|
||||
_test/
|
||||
|
||||
21
src/batch.py
Normal file
@ -0,0 +1,21 @@
|
||||
import wireviz
|
||||
import os
|
||||
|
||||
readme = '../examples/readme.md'
|
||||
readme = os.path.abspath(readme)
|
||||
|
||||
with open(readme, 'w') as file:
|
||||
file.write('# Example gallery\n')
|
||||
for i in range(1,3):
|
||||
fn = '../examples/demo{:02d}.yml'.format(i)
|
||||
print(fn)
|
||||
wireviz.parse(fn)
|
||||
|
||||
for i in range(1,5):
|
||||
fn = '../examples/ex{:02d}.yml'.format(i)
|
||||
print(fn)
|
||||
wireviz.parse(fn)
|
||||
|
||||
file.write('## Example {:02d}\n'.format(i))
|
||||
file.write('\n\n'.format(i))
|
||||
file.write('[Source](ex{:02d}.yml)\n\n\n'.format(i))
|
||||
196
src/wireviz.py
Normal file → Executable file
@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any, List
|
||||
import yaml
|
||||
from graphviz import Graph
|
||||
|
||||
COLOR_CODES = {'DIN': ['WH','BN','GN','YE','GY','PK','BU','RD','BK','VT'], # ,'GYPK','RDBU','WHGN','BNGN','WHYE','YEBN','WHGY','GYBN','WHPK','PKBN'],
|
||||
@ -157,7 +160,7 @@ class Harness:
|
||||
if c.type == 'bundle':
|
||||
# create subgraph for wire bundle, add to main graph afterwards
|
||||
bun = Graph(name='cluster_{}'.format(k))
|
||||
labeltext = ' | '.join(p for p in a if p) + '\n ' # newline to add space between label and wires
|
||||
labeltext = ' | '.join(p for p in a if p) + '\n ' # newline to add space between label and wires
|
||||
bun.attr('graph', label=labeltext,
|
||||
style='filled, dashed',
|
||||
fillcolor='white')
|
||||
@ -385,3 +388,194 @@ def awg_equiv(mm2):
|
||||
return awg_equiv_table[k]
|
||||
else:
|
||||
return None
|
||||
|
||||
def parse(file_in, file_out=None):
|
||||
|
||||
file_in = os.path.abspath(file_in)
|
||||
if not file_out:
|
||||
file_out = file_in
|
||||
pre, ext = os.path.splitext(file_out)
|
||||
file_out = pre # extension will be added by graphviz output function
|
||||
file_out = os.path.abspath(file_out)
|
||||
|
||||
with open(file_in, 'r') as stream:
|
||||
try:
|
||||
input = yaml.safe_load(stream)
|
||||
except yaml.YAMLError as exc:
|
||||
print(exc)
|
||||
|
||||
def expand(input):
|
||||
# input can be:
|
||||
# - a singleton (normally str or int)
|
||||
# - a list of str or int
|
||||
# if str is of the format '#-#', it is treated as a range (inclusive) and expanded
|
||||
output = []
|
||||
if not isinstance(input, list):
|
||||
input = [input,]
|
||||
for e in input:
|
||||
e = str(e)
|
||||
if '-' in e: # list of pins
|
||||
a, b = tuple(map(int, e.split('-')))
|
||||
if a < b:
|
||||
for x in range(a,b+1):
|
||||
output.append(x)
|
||||
elif a > b:
|
||||
for x in range(a,b-1,-1):
|
||||
output.append(x)
|
||||
elif a == b:
|
||||
output.append(a)
|
||||
else:
|
||||
try:
|
||||
x = int(e)
|
||||
except:
|
||||
x = e
|
||||
output.append(x)
|
||||
return output
|
||||
|
||||
def check_designators(what, where):
|
||||
for i, x in enumerate(what):
|
||||
# print('Looking for {} in {}'.format(x,where[i]))
|
||||
if x not in input[where[i]]:
|
||||
return False
|
||||
return True
|
||||
|
||||
h = Harness()
|
||||
|
||||
# add items
|
||||
sections = ['nodes','wires','ferrules','connections']
|
||||
types = [dict, dict, dict, list]
|
||||
for sec, ty in zip(sections, types):
|
||||
if sec in input and type(input[sec]) == ty:
|
||||
if len(input[sec]) > 0:
|
||||
if ty == dict:
|
||||
for k, o in input[sec].items():
|
||||
if sec == 'nodes':
|
||||
h.add_node(name=k, **o)
|
||||
elif sec == 'wires':
|
||||
h.add_cable(name=k, **o)
|
||||
elif sec == 'ferrules':
|
||||
pass
|
||||
else:
|
||||
print('{} section empty'.format(sec))
|
||||
else:
|
||||
print('No {} section found'.format(sec))
|
||||
if ty == dict:
|
||||
input[sec] = {}
|
||||
elif ty == list:
|
||||
input[sec] = []
|
||||
|
||||
# add connections
|
||||
ferrule_counter = 0
|
||||
for con in input['connections']:
|
||||
if len(con) == 3: # format: connector -- wire -- conector
|
||||
|
||||
for c in con:
|
||||
if len(list(c.keys())) != 1: # check that each entry in con has only one key, which is the designator
|
||||
raise Exception('Too many keys')
|
||||
|
||||
from_name = list(con[0].keys())[0]
|
||||
via_name = list(con[1].keys())[0]
|
||||
to_name = list(con[2].keys())[0]
|
||||
|
||||
if not check_designators([from_name,via_name,to_name],('nodes','wires','nodes')):
|
||||
raise Exception('Bad connection definition (3)')
|
||||
|
||||
from_pins = expand(con[0][from_name])
|
||||
via_pins = expand(con[1][via_name])
|
||||
to_pins = expand(con[2][to_name])
|
||||
|
||||
if len(from_pins) != len(via_pins) or len(via_pins) != len(to_pins):
|
||||
raise Exception('List length mismatch')
|
||||
|
||||
for (from_pin, via_pin, to_pin) in zip(from_pins, via_pins, to_pins):
|
||||
h.connect(from_name, from_pin, via_name, via_pin, to_name, to_pin)
|
||||
|
||||
elif len(con) == 2:
|
||||
|
||||
for c in con:
|
||||
if type(c) is dict:
|
||||
if len(list(c.keys())) != 1: # check that each entry in con has only one key, which is the designator
|
||||
raise Exception('Too many keys')
|
||||
|
||||
# hack to make the format for ferrules compatible with the formats for connectors and wires
|
||||
if type(con[0]) == str:
|
||||
name = con[0]
|
||||
con[0] = {}
|
||||
con[0][name] = name
|
||||
if type(con[1]) == str:
|
||||
name = con[1]
|
||||
con[1] = {}
|
||||
con[1][name] = name
|
||||
|
||||
from_name = list(con[0].keys())[0]
|
||||
to_name = list(con[1].keys())[0]
|
||||
|
||||
n_w = check_designators([from_name, to_name],('nodes','wires'))
|
||||
w_n = check_designators([from_name, to_name],('wires','nodes'))
|
||||
n_n = check_designators([from_name, to_name],('nodes','nodes'))
|
||||
|
||||
|
||||
f_w = check_designators([from_name, to_name],('ferrules','wires'))
|
||||
w_f = check_designators([from_name, to_name],('wires','ferrules'))
|
||||
|
||||
if not n_w and not w_n and not n_n and not f_w and not w_f:
|
||||
raise Exception('Wrong designators')
|
||||
|
||||
from_pins = expand(con[0][from_name])
|
||||
to_pins = expand(con[1][to_name])
|
||||
|
||||
if n_w or w_n or n_n:
|
||||
if len(from_pins) != len(to_pins):
|
||||
raise Exception('List length mismatch')
|
||||
|
||||
if n_w or w_n:
|
||||
for (from_pin, to_pin) in zip(from_pins, to_pins):
|
||||
if n_w:
|
||||
h.connect(from_name, from_pin, to_name, to_pin, None, None)
|
||||
else: # w_n
|
||||
h.connect(None, None, from_name, from_pin, to_name, to_pin)
|
||||
elif n_n:
|
||||
con_name = list(con[0].keys())[0]
|
||||
from_pins = expand(con[0][from_name])
|
||||
to_pins = expand(con[1][to_name])
|
||||
|
||||
for (from_pin, to_pin) in zip(from_pins, to_pins):
|
||||
h.loop(con_name, from_pin, to_pin)
|
||||
if f_w or w_f:
|
||||
from_pins = expand(con[0][from_name])
|
||||
to_pins = expand(con[1][to_name])
|
||||
|
||||
if f_w:
|
||||
ferrule_name = from_name
|
||||
wire_name = to_name
|
||||
wire_pins = to_pins
|
||||
else:
|
||||
ferrule_name = to_name
|
||||
wire_name = from_name
|
||||
wire_pins = from_pins
|
||||
|
||||
ferrule_params = input['ferrules'][ferrule_name]
|
||||
for wire_pin in wire_pins:
|
||||
ferrule_counter = ferrule_counter + 1
|
||||
ferrule_id = 'F{}'.format(ferrule_counter)
|
||||
h.add_node(ferrule_id, **ferrule_params)
|
||||
|
||||
if f_w:
|
||||
h.connect(ferrule_id, 1, wire_name, wire_pin, None, None)
|
||||
else:
|
||||
h.connect(None, None, wire_name, wire_pin, ferrule_id, 1)
|
||||
|
||||
|
||||
else:
|
||||
raise Exception('Wrong number of connection parameters')
|
||||
|
||||
h.output(filename=file_out, format=('png','svg'), view=False)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import argparse
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument('file_input', nargs='?', default='_test/test.yml')
|
||||
ap.add_argument('file_output', nargs='?', default=None)
|
||||
args = ap.parse_args()
|
||||
|
||||
parse(args.file_input, args.file_output)
|
||||
|
||||
@ -1,180 +0,0 @@
|
||||
import yaml
|
||||
import wireviz
|
||||
|
||||
filename = '../examples/example1.yml'
|
||||
filename = '../examples/example2.yml'
|
||||
filename = '../examples/ferrules.yml'
|
||||
filename = '../examples/bundles.yml'
|
||||
|
||||
def check_designators(what, where):
|
||||
for i, x in enumerate(what):
|
||||
# print('Looking for {} in {}'.format(x,where[i]))
|
||||
if x not in input[where[i]]:
|
||||
return False
|
||||
return True
|
||||
|
||||
def expand(input):
|
||||
# input can be:
|
||||
# - a singleton (normally str or int)
|
||||
# - a list of str or int
|
||||
# if str is of the format '#-#', it is treated as a range (inclusive) and expanded
|
||||
output = []
|
||||
if not isinstance(input, list):
|
||||
input = [input,]
|
||||
for e in input:
|
||||
e = str(e)
|
||||
if '-' in e: # list of pins
|
||||
a, b = tuple(map(int, e.split('-')))
|
||||
if a < b:
|
||||
for x in range(a,b+1):
|
||||
output.append(x)
|
||||
elif a > b:
|
||||
for x in range(a,b-1,-1):
|
||||
output.append(x)
|
||||
elif a == b:
|
||||
output.append(a)
|
||||
else:
|
||||
try:
|
||||
x = int(e)
|
||||
except:
|
||||
x = e
|
||||
output.append(x)
|
||||
return output
|
||||
|
||||
with open(filename, 'r') as stream:
|
||||
try:
|
||||
input = yaml.safe_load(stream)
|
||||
except yaml.YAMLError as exc:
|
||||
print(exc)
|
||||
|
||||
h = wireviz.Harness()
|
||||
|
||||
# add items
|
||||
sections = ['nodes','wires','ferrules','connections']
|
||||
types = [dict, dict, dict, list]
|
||||
for sec, ty in zip(sections, types):
|
||||
if sec in input and type(input[sec]) == ty:
|
||||
if len(input[sec]) > 0:
|
||||
if ty == dict:
|
||||
for k, o in input[sec].items():
|
||||
if sec == 'nodes':
|
||||
h.add_node(name=k, **o)
|
||||
elif sec == 'wires':
|
||||
h.add_cable(name=k, **o)
|
||||
elif sec == 'ferrules':
|
||||
pass
|
||||
else:
|
||||
print('{} section empty'.format(sec))
|
||||
else:
|
||||
print('No {} section found'.format(sec))
|
||||
if ty == dict:
|
||||
input[sec] = {}
|
||||
elif ty == list:
|
||||
input[sec] = []
|
||||
|
||||
# add connections
|
||||
ferrule_counter = 0
|
||||
for con in input['connections']:
|
||||
if len(con) == 3: # format: connector -- wire -- conector
|
||||
|
||||
for c in con:
|
||||
if len(list(c.keys())) != 1: # check that each entry in con has only one key, which is the designator
|
||||
raise Exception('Too many keys')
|
||||
|
||||
from_name = list(con[0].keys())[0]
|
||||
via_name = list(con[1].keys())[0]
|
||||
to_name = list(con[2].keys())[0]
|
||||
|
||||
if not check_designators([from_name,via_name,to_name],('nodes','wires','nodes')):
|
||||
raise Exception('Bad connection definition (3)')
|
||||
|
||||
from_pins = expand(con[0][from_name])
|
||||
via_pins = expand(con[1][via_name])
|
||||
to_pins = expand(con[2][to_name])
|
||||
|
||||
if len(from_pins) != len(via_pins) or len(via_pins) != len(to_pins):
|
||||
raise Exception('List length mismatch')
|
||||
|
||||
for (from_pin, via_pin, to_pin) in zip(from_pins, via_pins, to_pins):
|
||||
h.connect(from_name, from_pin, via_name, via_pin, to_name, to_pin)
|
||||
|
||||
elif len(con) == 2:
|
||||
|
||||
for c in con:
|
||||
if type(c) is dict:
|
||||
if len(list(c.keys())) != 1: # check that each entry in con has only one key, which is the designator
|
||||
raise Exception('Too many keys')
|
||||
|
||||
# hack to make the format for ferrules compatible with the formats for connectors and wires
|
||||
if type(con[0]) == str:
|
||||
name = con[0]
|
||||
con[0] = {}
|
||||
con[0][name] = name
|
||||
if type(con[1]) == str:
|
||||
name = con[1]
|
||||
con[1] = {}
|
||||
con[1][name] = name
|
||||
|
||||
from_name = list(con[0].keys())[0]
|
||||
to_name = list(con[1].keys())[0]
|
||||
|
||||
n_w = check_designators([from_name, to_name],('nodes','wires'))
|
||||
w_n = check_designators([from_name, to_name],('wires','nodes'))
|
||||
n_n = check_designators([from_name, to_name],('nodes','nodes'))
|
||||
|
||||
|
||||
f_w = check_designators([from_name, to_name],('ferrules','wires'))
|
||||
w_f = check_designators([from_name, to_name],('wires','ferrules'))
|
||||
|
||||
if not n_w and not w_n and not n_n and not f_w and not w_f:
|
||||
raise Exception('Wrong designators')
|
||||
|
||||
from_pins = expand(con[0][from_name])
|
||||
to_pins = expand(con[1][to_name])
|
||||
|
||||
if n_w or w_n or n_n:
|
||||
if len(from_pins) != len(to_pins):
|
||||
raise Exception('List length mismatch')
|
||||
|
||||
if n_w or w_n:
|
||||
for (from_pin, to_pin) in zip(from_pins, to_pins):
|
||||
if n_w:
|
||||
h.connect(from_name, from_pin, to_name, to_pin, None, None)
|
||||
else: # w_n
|
||||
h.connect(None, None, from_name, from_pin, to_name, to_pin)
|
||||
elif n_n:
|
||||
con_name = list(con[0].keys())[0]
|
||||
from_pins = expand(con[0][from_name])
|
||||
to_pins = expand(con[1][to_name])
|
||||
|
||||
for (from_pin, to_pin) in zip(from_pins, to_pins):
|
||||
h.loop(con_name, from_pin, to_pin)
|
||||
if f_w or w_f:
|
||||
from_pins = expand(con[0][from_name])
|
||||
to_pins = expand(con[1][to_name])
|
||||
|
||||
if f_w:
|
||||
ferrule_name = from_name
|
||||
wire_name = to_name
|
||||
wire_pins = to_pins
|
||||
else:
|
||||
ferrule_name = to_name
|
||||
wire_name = from_name
|
||||
wire_pins = from_pins
|
||||
|
||||
ferrule_params = input['ferrules'][ferrule_name]
|
||||
for wire_pin in wire_pins:
|
||||
ferrule_counter = ferrule_counter + 1
|
||||
ferrule_id = 'F{}'.format(ferrule_counter)
|
||||
h.add_node(ferrule_id, **ferrule_params)
|
||||
|
||||
if f_w:
|
||||
h.connect(ferrule_id, 1, wire_name, wire_pin, None, None)
|
||||
else:
|
||||
h.connect(None, None, wire_name, wire_pin, ferrule_id, 1)
|
||||
|
||||
|
||||
else:
|
||||
raise Exception('Wrong number of connection parameters')
|
||||
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||