Merge branch 'dev'
This commit is contained in:
commit
5b0134f84f
20
examples/example1.gv
Normal file
20
examples/example1.gv
Normal file
@ -0,0 +1,20 @@
|
||||
graph {
|
||||
graph [bgcolor=transparent fontname=arial rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style="rounded,filled"]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{D-Sub|female|9-pin}|{{DCD|RX|TX|DTR|GND|DSR|RTS|CTS|RI}|{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9}}"]
|
||||
X2 [label="X2|{Molex KK 254|female|6-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6}|{GND|RX|TX|NC|OUT|IN}}"]
|
||||
X2:p5:w -- X2:p6:w
|
||||
W1 [label="W1|{3x|0.25 mm²|+ S|0.2 m}|{{<w1i>1|<w2i>2|<w3i>3|<wsi>}|{WH|BN|GN|Shield}|{<w1o>1|<w2o>2|<w3o>3|<wso>}}"]
|
||||
edge [color="#000000:#ffffff:#000000"]
|
||||
X1:p5 -- W1:w1i
|
||||
W1:w1o -- X2:p1
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
X1:p2 -- W1:w2i
|
||||
W1:w2o -- X2:p3
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X1:p3 -- W1:w3i
|
||||
W1:w3o -- X2:p2
|
||||
edge [color="#000000"]
|
||||
X1:p5 -- W1:wsi
|
||||
}
|
||||
BIN
examples/example1.png
Normal file
BIN
examples/example1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
185
examples/example1.svg
Normal file
185
examples/example1.svg
Normal file
@ -0,0 +1,185 @@
|
||||
<?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>
|
||||
<path fill="white" stroke="black" d="M12,-0.5C12,-0.5 148,-0.5 148,-0.5 154,-0.5 160,-6.5 160,-12.5 160,-12.5 160,-241.5 160,-241.5 160,-247.5 154,-253.5 148,-253.5 148,-253.5 12,-253.5 12,-253.5 6,-253.5 0,-247.5 0,-241.5 0,-241.5 0,-12.5 0,-12.5 0,-6.5 6,-0.5 12,-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>
|
||||
<path fill="white" stroke="black" d="M316,-104C316,-104 487,-104 487,-104 493,-104 499,-110 499,-116 499,-116 499,-230 499,-230 499,-236 493,-242 487,-242 487,-242 316,-242 316,-242 310,-242 304,-236 304,-230 304,-230 304,-116 304,-116 304,-110 310,-104 316,-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="331.5" y="-180.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="304,-173 359,-173 "/>
|
||||
<text text-anchor="middle" x="331.5" y="-157.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="304,-150 359,-150 "/>
|
||||
<text text-anchor="middle" x="331.5" y="-134.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="304,-127 359,-127 "/>
|
||||
<text text-anchor="middle" x="331.5" y="-111.8" font-family="arial" font-size="14.00"> </text>
|
||||
<polyline fill="none" stroke="black" points="359,-104 359,-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="359,-173 444,-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="359,-150 444,-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="359,-127 444,-127 "/>
|
||||
<text text-anchor="middle" x="401.5" y="-111.8" font-family="arial" font-size="14.00">Shield</text>
|
||||
<polyline fill="none" stroke="black" points="444,-104 444,-196 "/>
|
||||
<text text-anchor="middle" x="471.5" y="-180.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="444,-173 499,-173 "/>
|
||||
<text text-anchor="middle" x="471.5" y="-157.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="444,-150 499,-150 "/>
|
||||
<text text-anchor="middle" x="471.5" y="-134.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="444,-127 499,-127 "/>
|
||||
<text text-anchor="middle" x="471.5" y="-111.8" font-family="arial" font-size="14.00"> </text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>X1:p5--W1:w1i</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:p2--W1:w2i</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:p3--W1:w3i</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-148C223,-148.42 238.56,-136.42 304,-136"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M160,-150C224.22,-150 239.78,-138 304,-138"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M160,-152C225.44,-151.58 241,-139.58 304,-140"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>X1:p5--W1:wsi</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>
|
||||
<path fill="white" stroke="black" d="M655,-58C655,-58 837,-58 837,-58 843,-58 849,-64 849,-70 849,-70 849,-230 849,-230 849,-236 843,-242 837,-242 837,-242 655,-242 655,-242 649,-242 643,-236 643,-230 643,-230 643,-70 643,-70 643,-64 649,-58 655,-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">NC</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="black" stroke-width="2" d="M643,-92C585.67,-101 471,-101 471,-80.5 471,-60 585.67,-60 643,-69"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>W1:w1o--X2:p1</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:w2o--X2:p3</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:w3o--X2:p2</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: 13 KiB |
56
examples/example2.gv
Normal file
56
examples/example2.gv
Normal file
@ -0,0 +1,56 @@
|
||||
graph {
|
||||
graph [bgcolor=transparent fontname=arial rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style="rounded,filled"]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{Molex KK 254|female|8-pin}|{{GND|+5V|SCL|SDA|MISO|MOSI|SCK|N/C}|{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8}}"]
|
||||
X2 [label="X2|{Molex KK 254|female|4-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4}|{GND|+5V|SCL|SDA}}"]
|
||||
X3 [label="X3|{Molex KK 254|female|4-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4}|{GND|+5V|SCL|SDA}}"]
|
||||
X4 [label="X4|{Molex KK 254|female|5-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5}|{GND|+12V|MISO|MOSI|SCK}}"]
|
||||
X5 [label="X5|{Molex Micro-Fit|male|2-pin}|{{GND|+12V}|{<p1>1|<p2>2}}"]
|
||||
W1 [label="{4x|0.14 mm² (26 AWG)|0.2 m}|{{<w1>BK|<w2>RD|<w3>YE|<w4>GN}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p1 -- W1:w1
|
||||
W1:w1 -- X2:p1
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2 -- W1:w2
|
||||
W1:w2 -- X2:p2
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X1:p3 -- W1:w3
|
||||
W1:w3 -- X2:p3
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X1:p4 -- W1:w4
|
||||
W1:w4 -- X2:p4
|
||||
W2 [label="{4x|0.14 mm² (26 AWG)|0.2 m}|{{<w1>BK|<w2>RD|<w3>YE|<w4>GN}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p1 -- W2:w1
|
||||
W2:w1 -- X3:p1
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2 -- W2:w2
|
||||
W2:w2 -- X3:p2
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X1:p3 -- W2:w3
|
||||
W2:w3 -- X3:p3
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X1:p4 -- W2:w4
|
||||
W2:w4 -- X3:p4
|
||||
W3 [label="{4x|0.14 mm² (26 AWG)|0.2 m}|{{<w1>BK|<w2>BU|<w3>OG|<w4>VT}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p1 -- W3:w1
|
||||
W3:w1 -- X4:p1
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X1:p5 -- W3:w2
|
||||
W3:w2 -- X4:p3
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
X1:p6 -- W3:w3
|
||||
W3:w3 -- X4:p4
|
||||
edge [color="#000000:#8000ff:#000000"]
|
||||
X1:p7 -- W3:w4
|
||||
W3:w4 -- X4:p5
|
||||
W4 [label="{2x|0.5 mm² (21 AWG)|0.35 m}|{{<w1>BK|<w2>RD}}"]
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X5:p1 -- W4:w1
|
||||
W4:w1 -- X4:p1
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p2 -- W4:w2
|
||||
W4:w2 -- X4:p2
|
||||
}
|
||||
BIN
examples/example2.png
Normal file
BIN
examples/example2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 146 KiB |
427
examples/example2.svg
Normal file
427
examples/example2.svg
Normal file
@ -0,0 +1,427 @@
|
||||
<?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="930pt" height="526pt"
|
||||
viewBox="0.00 0.00 930.00 525.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 521.5)">
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<path fill="white" stroke="black" d="M12,-130C12,-130 194,-130 194,-130 200,-130 206,-136 206,-142 206,-142 206,-348 206,-348 206,-354 200,-360 194,-360 194,-360 12,-360 12,-360 6,-360 0,-354 0,-348 0,-348 0,-142 0,-142 0,-136 6,-130 12,-130"/>
|
||||
<text text-anchor="middle" x="103" y="-344.8" font-family="arial" font-size="14.00">X1</text>
|
||||
<polyline fill="none" stroke="black" points="0,-337 206,-337 "/>
|
||||
<text text-anchor="middle" x="50.5" y="-321.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="101,-314 101,-337 "/>
|
||||
<text text-anchor="middle" x="130" y="-321.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="159,-314 159,-337 "/>
|
||||
<text text-anchor="middle" x="182.5" y="-321.8" font-family="arial" font-size="14.00">8-pin</text>
|
||||
<polyline fill="none" stroke="black" points="0,-314 206,-314 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-298.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="0,-291 117,-291 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-275.8" font-family="arial" font-size="14.00">+5V</text>
|
||||
<polyline fill="none" stroke="black" points="0,-268 117,-268 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-252.8" font-family="arial" font-size="14.00">SCL</text>
|
||||
<polyline fill="none" stroke="black" points="0,-245 117,-245 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-229.8" font-family="arial" font-size="14.00">SDA</text>
|
||||
<polyline fill="none" stroke="black" points="0,-222 117,-222 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-206.8" font-family="arial" font-size="14.00">MISO</text>
|
||||
<polyline fill="none" stroke="black" points="0,-199 117,-199 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-183.8" font-family="arial" font-size="14.00">MOSI</text>
|
||||
<polyline fill="none" stroke="black" points="0,-176 117,-176 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-160.8" font-family="arial" font-size="14.00">SCK</text>
|
||||
<polyline fill="none" stroke="black" points="0,-153 117,-153 "/>
|
||||
<text text-anchor="middle" x="58.5" y="-137.8" font-family="arial" font-size="14.00">N/C</text>
|
||||
<polyline fill="none" stroke="black" points="117,-130 117,-314 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-298.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="117,-291 206,-291 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-275.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="117,-268 206,-268 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-252.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="117,-245 206,-245 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-229.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="117,-222 206,-222 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-206.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polyline fill="none" stroke="black" points="117,-199 206,-199 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-183.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polyline fill="none" stroke="black" points="117,-176 206,-176 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-160.8" font-family="arial" font-size="14.00">7</text>
|
||||
<polyline fill="none" stroke="black" points="117,-153 206,-153 "/>
|
||||
<text text-anchor="middle" x="161.5" y="-137.8" font-family="arial" font-size="14.00">8</text>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node6" class="node">
|
||||
<title>W1</title>
|
||||
<path fill="white" stroke="black" d="M362,-367.5C362,-367.5 560,-367.5 560,-367.5 566,-367.5 572,-373.5 572,-379.5 572,-379.5 572,-470.5 572,-470.5 572,-476.5 566,-482.5 560,-482.5 560,-482.5 362,-482.5 362,-482.5 356,-482.5 350,-476.5 350,-470.5 350,-470.5 350,-379.5 350,-379.5 350,-373.5 356,-367.5 362,-367.5"/>
|
||||
<text text-anchor="middle" x="365.5" y="-467.3" font-family="arial" font-size="14.00">4x</text>
|
||||
<polyline fill="none" stroke="black" points="381,-459.5 381,-482.5 "/>
|
||||
<text text-anchor="middle" x="451" y="-467.3" font-family="arial" font-size="14.00">0.14 mm² (26 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="521,-459.5 521,-482.5 "/>
|
||||
<text text-anchor="middle" x="546.5" y="-467.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="350,-459.5 572,-459.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-444.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="350,-436.5 572,-436.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-421.3" font-family="arial" font-size="14.00">RD</text>
|
||||
<polyline fill="none" stroke="black" points="350,-413.5 572,-413.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-398.3" font-family="arial" font-size="14.00">YE</text>
|
||||
<polyline fill="none" stroke="black" points="350,-390.5 572,-390.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-375.3" font-family="arial" font-size="14.00">GN</text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:p1--W1:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-301C298.76,-303.5 261.11,-448.5 350,-446"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-303C296.82,-303 259.18,-448 350,-448"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-305C294.89,-302.5 257.24,-447.5 350,-450"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:p2--W1:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-278C298.76,-280.5 261.11,-425.5 350,-423"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-280C296.82,-280 259.18,-425 350,-425"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-282C294.89,-279.5 257.24,-424.5 350,-427"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:p3--W1:w3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-255C298.76,-257.5 261.11,-402.5 350,-400"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M206,-257C296.82,-257 259.18,-402 350,-402"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-259C294.89,-256.5 257.24,-401.5 350,-404"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:p4--W1:w4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-231C299.07,-233.51 260.79,-379.51 350,-377"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M206,-233C297.14,-233 258.86,-379 350,-379"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-235C295.21,-232.49 256.93,-378.49 350,-381"/>
|
||||
</g>
|
||||
<!-- W2 -->
|
||||
<g id="node7" class="node">
|
||||
<title>W2</title>
|
||||
<path fill="white" stroke="black" d="M362,-222.5C362,-222.5 560,-222.5 560,-222.5 566,-222.5 572,-228.5 572,-234.5 572,-234.5 572,-325.5 572,-325.5 572,-331.5 566,-337.5 560,-337.5 560,-337.5 362,-337.5 362,-337.5 356,-337.5 350,-331.5 350,-325.5 350,-325.5 350,-234.5 350,-234.5 350,-228.5 356,-222.5 362,-222.5"/>
|
||||
<text text-anchor="middle" x="365.5" y="-322.3" font-family="arial" font-size="14.00">4x</text>
|
||||
<polyline fill="none" stroke="black" points="381,-314.5 381,-337.5 "/>
|
||||
<text text-anchor="middle" x="451" y="-322.3" font-family="arial" font-size="14.00">0.14 mm² (26 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="521,-314.5 521,-337.5 "/>
|
||||
<text text-anchor="middle" x="546.5" y="-322.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="350,-314.5 572,-314.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-299.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="350,-291.5 572,-291.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-276.3" font-family="arial" font-size="14.00">RD</text>
|
||||
<polyline fill="none" stroke="black" points="350,-268.5 572,-268.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-253.3" font-family="arial" font-size="14.00">YE</text>
|
||||
<polyline fill="none" stroke="black" points="350,-245.5 572,-245.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-230.3" font-family="arial" font-size="14.00">GN</text>
|
||||
</g>
|
||||
<!-- X1--W2 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>X1:p1--W2:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-301C270,-301 286,-301 350,-301"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-303C270,-303 286,-303 350,-303"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-305C270,-305 286,-305 350,-305"/>
|
||||
</g>
|
||||
<!-- X1--W2 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>X1:p2--W2:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-278C270,-278 286,-278 350,-278"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-280C270,-280 286,-280 350,-280"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-282C270,-282 286,-282 350,-282"/>
|
||||
</g>
|
||||
<!-- X1--W2 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>X1:p3--W2:w3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-255C270,-255 286,-255 350,-255"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M206,-257C270,-257 286,-257 350,-257"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-259C270,-259 286,-259 350,-259"/>
|
||||
</g>
|
||||
<!-- X1--W2 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>X1:p4--W2:w4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-231C270.13,-231 286.12,-232 350,-232"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M206,-233C270,-233 286,-234 350,-234"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-235C269.88,-235 285.87,-236 350,-236"/>
|
||||
</g>
|
||||
<!-- W3 -->
|
||||
<g id="node8" class="node">
|
||||
<title>W3</title>
|
||||
<path fill="white" stroke="black" d="M362,-88.5C362,-88.5 560,-88.5 560,-88.5 566,-88.5 572,-94.5 572,-100.5 572,-100.5 572,-191.5 572,-191.5 572,-197.5 566,-203.5 560,-203.5 560,-203.5 362,-203.5 362,-203.5 356,-203.5 350,-197.5 350,-191.5 350,-191.5 350,-100.5 350,-100.5 350,-94.5 356,-88.5 362,-88.5"/>
|
||||
<text text-anchor="middle" x="365.5" y="-188.3" font-family="arial" font-size="14.00">4x</text>
|
||||
<polyline fill="none" stroke="black" points="381,-180.5 381,-203.5 "/>
|
||||
<text text-anchor="middle" x="451" y="-188.3" font-family="arial" font-size="14.00">0.14 mm² (26 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="521,-180.5 521,-203.5 "/>
|
||||
<text text-anchor="middle" x="546.5" y="-188.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||||
<polyline fill="none" stroke="black" points="350,-180.5 572,-180.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-165.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="350,-157.5 572,-157.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-142.3" font-family="arial" font-size="14.00">BU</text>
|
||||
<polyline fill="none" stroke="black" points="350,-134.5 572,-134.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-119.3" font-family="arial" font-size="14.00">OG</text>
|
||||
<polyline fill="none" stroke="black" points="350,-111.5 572,-111.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-96.3" font-family="arial" font-size="14.00">VT</text>
|
||||
</g>
|
||||
<!-- X1--W3 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>X1:p1--W3:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-301C291.47,-303.45 260.63,-169.45 350,-167"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-303C293.42,-303 262.58,-169 350,-169"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-305C295.37,-302.55 264.53,-168.55 350,-171"/>
|
||||
</g>
|
||||
<!-- X1--W3 -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>X1:p5--W3:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-208C274.04,-209.88 277.97,-145.88 350,-144"/>
|
||||
<path fill="none" stroke="#0000ff" stroke-width="2" d="M206,-210C276.04,-210 279.96,-146 350,-146"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-212C278.03,-210.12 281.96,-146.12 350,-148"/>
|
||||
</g>
|
||||
<!-- X1--W3 -->
|
||||
<g id="edge21" class="edge">
|
||||
<title>X1:p6--W3:w3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-185C274.04,-186.88 277.97,-122.88 350,-121"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M206,-187C276.04,-187 279.96,-123 350,-123"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-189C278.03,-187.12 281.96,-123.12 350,-125"/>
|
||||
</g>
|
||||
<!-- X1--W3 -->
|
||||
<g id="edge23" class="edge">
|
||||
<title>X1:p7--W3:w4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-162C274.04,-163.88 277.97,-99.88 350,-98"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M206,-164C276.04,-164 279.96,-100 350,-100"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-166C278.03,-164.12 281.96,-100.12 350,-102"/>
|
||||
</g>
|
||||
<!-- X2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>X2</title>
|
||||
<path fill="white" stroke="black" d="M728,-379C728,-379 910,-379 910,-379 916,-379 922,-385 922,-391 922,-391 922,-505 922,-505 922,-511 916,-517 910,-517 910,-517 728,-517 728,-517 722,-517 716,-511 716,-505 716,-505 716,-391 716,-391 716,-385 722,-379 728,-379"/>
|
||||
<text text-anchor="middle" x="819" y="-501.8" font-family="arial" font-size="14.00">X2</text>
|
||||
<polyline fill="none" stroke="black" points="716,-494 922,-494 "/>
|
||||
<text text-anchor="middle" x="766.5" y="-478.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="817,-471 817,-494 "/>
|
||||
<text text-anchor="middle" x="846" y="-478.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="875,-471 875,-494 "/>
|
||||
<text text-anchor="middle" x="898.5" y="-478.8" font-family="arial" font-size="14.00">4-pin</text>
|
||||
<polyline fill="none" stroke="black" points="716,-471 922,-471 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-455.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="716,-448 807,-448 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-432.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="716,-425 807,-425 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-409.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="716,-402 807,-402 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-386.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="807,-379 807,-471 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-455.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="807,-448 922,-448 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-432.8" font-family="arial" font-size="14.00">+5V</text>
|
||||
<polyline fill="none" stroke="black" points="807,-425 922,-425 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-409.8" font-family="arial" font-size="14.00">SCL</text>
|
||||
<polyline fill="none" stroke="black" points="807,-402 922,-402 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-386.8" font-family="arial" font-size="14.00">SDA</text>
|
||||
</g>
|
||||
<!-- X3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>X3</title>
|
||||
<path fill="white" stroke="black" d="M728,-222C728,-222 910,-222 910,-222 916,-222 922,-228 922,-234 922,-234 922,-348 922,-348 922,-354 916,-360 910,-360 910,-360 728,-360 728,-360 722,-360 716,-354 716,-348 716,-348 716,-234 716,-234 716,-228 722,-222 728,-222"/>
|
||||
<text text-anchor="middle" x="819" y="-344.8" font-family="arial" font-size="14.00">X3</text>
|
||||
<polyline fill="none" stroke="black" points="716,-337 922,-337 "/>
|
||||
<text text-anchor="middle" x="766.5" y="-321.8" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="817,-314 817,-337 "/>
|
||||
<text text-anchor="middle" x="846" y="-321.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="875,-314 875,-337 "/>
|
||||
<text text-anchor="middle" x="898.5" y="-321.8" font-family="arial" font-size="14.00">4-pin</text>
|
||||
<polyline fill="none" stroke="black" points="716,-314 922,-314 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-298.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="716,-291 807,-291 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-275.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="716,-268 807,-268 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-252.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="716,-245 807,-245 "/>
|
||||
<text text-anchor="middle" x="761.5" y="-229.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="807,-222 807,-314 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-298.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="807,-291 922,-291 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-275.8" font-family="arial" font-size="14.00">+5V</text>
|
||||
<polyline fill="none" stroke="black" points="807,-268 922,-268 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-252.8" font-family="arial" font-size="14.00">SCL</text>
|
||||
<polyline fill="none" stroke="black" points="807,-245 922,-245 "/>
|
||||
<text text-anchor="middle" x="864.5" y="-229.8" font-family="arial" font-size="14.00">SDA</text>
|
||||
</g>
|
||||
<!-- X4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>X4</title>
|
||||
<path fill="white" stroke="black" d="M728,-41.5C728,-41.5 910,-41.5 910,-41.5 916,-41.5 922,-47.5 922,-53.5 922,-53.5 922,-190.5 922,-190.5 922,-196.5 916,-202.5 910,-202.5 910,-202.5 728,-202.5 728,-202.5 722,-202.5 716,-196.5 716,-190.5 716,-190.5 716,-53.5 716,-53.5 716,-47.5 722,-41.5 728,-41.5"/>
|
||||
<text text-anchor="middle" x="819" y="-187.3" font-family="arial" font-size="14.00">X4</text>
|
||||
<polyline fill="none" stroke="black" points="716,-179.5 922,-179.5 "/>
|
||||
<text text-anchor="middle" x="766.5" y="-164.3" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||||
<polyline fill="none" stroke="black" points="817,-156.5 817,-179.5 "/>
|
||||
<text text-anchor="middle" x="846" y="-164.3" font-family="arial" font-size="14.00">female</text>
|
||||
<polyline fill="none" stroke="black" points="875,-156.5 875,-179.5 "/>
|
||||
<text text-anchor="middle" x="898.5" y="-164.3" font-family="arial" font-size="14.00">5-pin</text>
|
||||
<polyline fill="none" stroke="black" points="716,-156.5 922,-156.5 "/>
|
||||
<text text-anchor="middle" x="760" y="-141.3" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="716,-133.5 804,-133.5 "/>
|
||||
<text text-anchor="middle" x="760" y="-118.3" font-family="arial" font-size="14.00">2</text>
|
||||
<polyline fill="none" stroke="black" points="716,-110.5 804,-110.5 "/>
|
||||
<text text-anchor="middle" x="760" y="-95.3" font-family="arial" font-size="14.00">3</text>
|
||||
<polyline fill="none" stroke="black" points="716,-87.5 804,-87.5 "/>
|
||||
<text text-anchor="middle" x="760" y="-72.3" font-family="arial" font-size="14.00">4</text>
|
||||
<polyline fill="none" stroke="black" points="716,-64.5 804,-64.5 "/>
|
||||
<text text-anchor="middle" x="760" y="-49.3" font-family="arial" font-size="14.00">5</text>
|
||||
<polyline fill="none" stroke="black" points="804,-41.5 804,-156.5 "/>
|
||||
<text text-anchor="middle" x="863" y="-141.3" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="804,-133.5 922,-133.5 "/>
|
||||
<text text-anchor="middle" x="863" y="-118.3" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polyline fill="none" stroke="black" points="804,-110.5 922,-110.5 "/>
|
||||
<text text-anchor="middle" x="863" y="-95.3" font-family="arial" font-size="14.00">MISO</text>
|
||||
<polyline fill="none" stroke="black" points="804,-87.5 922,-87.5 "/>
|
||||
<text text-anchor="middle" x="863" y="-72.3" font-family="arial" font-size="14.00">MOSI</text>
|
||||
<polyline fill="none" stroke="black" points="804,-64.5 922,-64.5 "/>
|
||||
<text text-anchor="middle" x="863" y="-49.3" font-family="arial" font-size="14.00">SCK</text>
|
||||
</g>
|
||||
<!-- X5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>X5</title>
|
||||
<path fill="white" stroke="black" d="M13,-1C13,-1 193,-1 193,-1 199,-1 205,-7 205,-13 205,-13 205,-81 205,-81 205,-87 199,-93 193,-93 193,-93 13,-93 13,-93 7,-93 1,-87 1,-81 1,-81 1,-13 1,-13 1,-7 7,-1 13,-1"/>
|
||||
<text text-anchor="middle" x="103" y="-77.8" font-family="arial" font-size="14.00">X5</text>
|
||||
<polyline fill="none" stroke="black" points="1,-70 205,-70 "/>
|
||||
<text text-anchor="middle" x="56" y="-54.8" font-family="arial" font-size="14.00">Molex Micro-Fit</text>
|
||||
<polyline fill="none" stroke="black" points="111,-47 111,-70 "/>
|
||||
<text text-anchor="middle" x="134.5" y="-54.8" font-family="arial" font-size="14.00">male</text>
|
||||
<polyline fill="none" stroke="black" points="158,-47 158,-70 "/>
|
||||
<text text-anchor="middle" x="181.5" y="-54.8" font-family="arial" font-size="14.00">2-pin</text>
|
||||
<polyline fill="none" stroke="black" points="1,-47 205,-47 "/>
|
||||
<text text-anchor="middle" x="58" y="-31.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polyline fill="none" stroke="black" points="1,-24 115,-24 "/>
|
||||
<text text-anchor="middle" x="58" y="-8.8" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polyline fill="none" stroke="black" points="115,-1 115,-47 "/>
|
||||
<text text-anchor="middle" x="160" y="-31.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polyline fill="none" stroke="black" points="115,-24 205,-24 "/>
|
||||
<text text-anchor="middle" x="160" y="-8.8" font-family="arial" font-size="14.00">2</text>
|
||||
</g>
|
||||
<!-- W4 -->
|
||||
<g id="node9" class="node">
|
||||
<title>W4</title>
|
||||
<path fill="white" stroke="black" d="M362,-0.5C362,-0.5 560,-0.5 560,-0.5 566,-0.5 572,-6.5 572,-12.5 572,-12.5 572,-57.5 572,-57.5 572,-63.5 566,-69.5 560,-69.5 560,-69.5 362,-69.5 362,-69.5 356,-69.5 350,-63.5 350,-57.5 350,-57.5 350,-12.5 350,-12.5 350,-6.5 356,-0.5 362,-0.5"/>
|
||||
<text text-anchor="middle" x="365.5" y="-54.3" font-family="arial" font-size="14.00">2x</text>
|
||||
<polyline fill="none" stroke="black" points="381,-46.5 381,-69.5 "/>
|
||||
<text text-anchor="middle" x="447" y="-54.3" font-family="arial" font-size="14.00">0.5 mm² (21 AWG)</text>
|
||||
<polyline fill="none" stroke="black" points="513,-46.5 513,-69.5 "/>
|
||||
<text text-anchor="middle" x="542.5" y="-54.3" font-family="arial" font-size="14.00">0.35 m</text>
|
||||
<polyline fill="none" stroke="black" points="350,-46.5 572,-46.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-31.3" font-family="arial" font-size="14.00">BK</text>
|
||||
<polyline fill="none" stroke="black" points="350,-23.5 572,-23.5 "/>
|
||||
<text text-anchor="middle" x="461" y="-8.3" font-family="arial" font-size="14.00">RD</text>
|
||||
</g>
|
||||
<!-- X5--W4 -->
|
||||
<g id="edge25" class="edge">
|
||||
<title>X5:p1--W4:w1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-33C270,-33 286,-33 350,-33"/>
|
||||
<path fill="none" stroke="#000000" 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>
|
||||
<!-- X5--W4 -->
|
||||
<g id="edge27" class="edge">
|
||||
<title>X5:p2--W4:w2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-10C270,-10 286,-10 350,-10"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M206,-12C270,-12 286,-12 350,-12"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M206,-14C270,-14 286,-14 350,-14"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>W1:w1--X2:p1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-446C637.44,-446.42 653,-458.42 716,-458"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-448C636.22,-448 651.78,-460 716,-460"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-450C635,-449.58 650.56,-461.58 716,-462"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1:w2--X2:p2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-423C637.34,-423.36 652.96,-434.36 716,-434"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M572,-425C636.19,-425 651.81,-436 716,-436"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-427C635.04,-426.64 650.66,-437.64 716,-438"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W1:w3--X2:p3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-400C637.34,-400.36 652.96,-411.36 716,-411"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M572,-402C636.19,-402 651.81,-413 716,-413"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-404C635.04,-403.64 650.66,-414.64 716,-415"/>
|
||||
</g>
|
||||
<!-- W1--X2 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>W1:w4--X2:p4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-377C637.34,-377.36 652.96,-388.36 716,-388"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M572,-379C636.19,-379 651.81,-390 716,-390"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-381C635.04,-380.64 650.66,-391.64 716,-392"/>
|
||||
</g>
|
||||
<!-- W2--X3 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W2:w1--X3:p1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-301C636,-301 652,-301 716,-301"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-303C636,-303 652,-303 716,-303"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-305C636,-305 652,-305 716,-305"/>
|
||||
</g>
|
||||
<!-- W2--X3 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W2:w2--X3:p2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-278C635.88,-278 651.87,-277 716,-277"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M572,-280C636,-280 652,-279 716,-279"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-282C636.13,-282 652.12,-281 716,-281"/>
|
||||
</g>
|
||||
<!-- W2--X3 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>W2:w3--X3:p3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-255C635.88,-255 651.87,-254 716,-254"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M572,-257C636,-257 652,-256 716,-256"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-259C636.13,-259 652.12,-258 716,-258"/>
|
||||
</g>
|
||||
<!-- W2--X3 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>W2:w4--X3:p4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-232C635.88,-232 651.87,-231 716,-231"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M572,-234C636,-234 652,-233 716,-233"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-236C636.13,-236 652.12,-235 716,-235"/>
|
||||
</g>
|
||||
<!-- W3--X4 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>W3:w1--X4:p1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-167C635.16,-167.98 649.4,-143.98 716,-143"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-169C636.88,-169 651.12,-145 716,-145"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-171C638.6,-170.02 652.84,-146.02 716,-147"/>
|
||||
</g>
|
||||
<!-- W3--X4 -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>W3:w2--X4:p3</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-144C637.36,-145.61 646.72,-98.61 716,-97"/>
|
||||
<path fill="none" stroke="#0000ff" stroke-width="2" d="M572,-146C639.32,-146 648.68,-99 716,-99"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-148C641.28,-146.39 650.64,-99.39 716,-101"/>
|
||||
</g>
|
||||
<!-- W3--X4 -->
|
||||
<g id="edge22" class="edge">
|
||||
<title>W3:w3--X4:p4</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-121C637.36,-122.61 646.72,-75.61 716,-74"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M572,-123C639.32,-123 648.68,-76 716,-76"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-125C641.28,-123.39 650.64,-76.39 716,-78"/>
|
||||
</g>
|
||||
<!-- W3--X4 -->
|
||||
<g id="edge24" class="edge">
|
||||
<title>W3:w4--X4:p5</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-98C637.36,-99.61 646.72,-52.61 716,-51"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M572,-100C639.32,-100 648.68,-53 716,-53"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-102C641.28,-100.39 650.64,-53.39 716,-55"/>
|
||||
</g>
|
||||
<!-- W4--X4 -->
|
||||
<g id="edge26" class="edge">
|
||||
<title>W4:w1--X4:p1</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-33C654.51,-35.31 637.44,-145.31 716,-143"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-35C652.54,-35 635.46,-145 716,-145"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-37C650.56,-34.69 633.49,-144.69 716,-147"/>
|
||||
</g>
|
||||
<!-- W4--X4 -->
|
||||
<g id="edge28" class="edge">
|
||||
<title>W4:w2--X4:p2</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-10C654.51,-12.31 637.44,-122.31 716,-120"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M572,-12C652.54,-12 635.46,-122 716,-122"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M572,-14C650.56,-11.69 633.49,-121.69 716,-124"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 28 KiB |
185
examples/example3.gv
Normal file
185
examples/example3.gv
Normal file
@ -0,0 +1,185 @@
|
||||
graph {
|
||||
graph [bgcolor=transparent fontname=arial rankdir=LR ranksep=2]
|
||||
node [fillcolor=white fontname=arial shape=record style="rounded,filled"]
|
||||
edge [fontname=arial style=bold]
|
||||
X1 [label="X1|{10-pin}|{{}|{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10}}"]
|
||||
X2 [label="X2|{10-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10}|{}}"]
|
||||
X3 [label="X3|{20-pin}|{{}|{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10|<p11>11|<p12>12|<p13>13|<p14>14|<p15>15|<p16>16|<p17>17|<p18>18|<p19>19|<p20>20}}"]
|
||||
X4 [label="X4|{20-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10|<p11>11|<p12>12|<p13>13|<p14>14|<p15>15|<p16>16|<p17>17|<p18>18|<p19>19|<p20>20}|{}}"]
|
||||
X5 [label="X5|{20-pin}|{{}|{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10|<p11>11|<p12>12|<p13>13|<p14>14|<p15>15|<p16>16|<p17>17|<p18>18|<p19>19|<p20>20}}"]
|
||||
X6 [label="X6|{20-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10|<p11>11|<p12>12|<p13>13|<p14>14|<p15>15|<p16>16|<p17>17|<p18>18|<p19>19|<p20>20}|{}}"]
|
||||
X7 [label="X7|{6-pin}|{{}|{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6}}"]
|
||||
X8 [label="X8|{6-pin}|{{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6}|{}}"]
|
||||
W1 [label="{10x|None mm²|0 m}|{{<w1>brown|<w2>red|<w3>orange|<w4>yellow|<w5>green|<w6>blue|<w7>violet|<w8>grey|<w9>white|<w10>black}}"]
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
X1:p1 -- W1:w1
|
||||
W1:w1 -- X2:p1
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X1:p2 -- W1:w2
|
||||
W1:w2 -- X2:p2
|
||||
edge [color="#000000:#ff8000:#000000"]
|
||||
X1:p3 -- W1:w3
|
||||
W1:w3 -- X2:p3
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X1:p4 -- W1:w4
|
||||
W1:w4 -- X2:p4
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X1:p5 -- W1:w5
|
||||
W1:w5 -- X2:p5
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X1:p6 -- W1:w6
|
||||
W1:w6 -- X2:p6
|
||||
edge [color="#000000:#8000ff:#000000"]
|
||||
X1:p7 -- W1:w7
|
||||
W1:w7 -- X2:p7
|
||||
edge [color="#000000:#808080:#000000"]
|
||||
X1:p8 -- W1:w8
|
||||
W1:w8 -- X2:p8
|
||||
edge [color="#000000:#ffffff:#000000"]
|
||||
X1:p9 -- W1:w9
|
||||
W1:w9 -- X2:p9
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X1:p10 -- W1:w10
|
||||
W1:w10 -- X2:p10
|
||||
W2 [label="{20x|None mm²|0 m}|{{<w1>white|<w2>brown|<w3>green|<w4>yellow|<w5>grey|<w6>pink|<w7>blue|<w8>red|<w9>black|<w10>violet|<w11>white|<w12>brown|<w13>green|<w14>yellow|<w15>grey|<w16>pink|<w17>blue|<w18>red|<w19>black|<w20>violet}}"]
|
||||
edge [color="#000000:#ffffff:#000000"]
|
||||
X3:p1 -- W2:w1
|
||||
W2:w1 -- X4:p1
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
X3:p2 -- W2:w2
|
||||
W2:w2 -- X4:p2
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X3:p3 -- W2:w3
|
||||
W2:w3 -- X4:p3
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X3:p4 -- W2:w4
|
||||
W2:w4 -- X4:p4
|
||||
edge [color="#000000:#808080:#000000"]
|
||||
X3:p5 -- W2:w5
|
||||
W2:w5 -- X4:p5
|
||||
edge [color="#000000:#ff80c0:#000000"]
|
||||
X3:p6 -- W2:w6
|
||||
W2:w6 -- X4:p6
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X3:p7 -- W2:w7
|
||||
W2:w7 -- X4:p7
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X3:p8 -- W2:w8
|
||||
W2:w8 -- X4:p8
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X3:p9 -- W2:w9
|
||||
W2:w9 -- X4:p9
|
||||
edge [color="#000000:#8000ff:#000000"]
|
||||
X3:p10 -- W2:w10
|
||||
W2:w10 -- X4:p10
|
||||
edge [color="#000000:#ffffff:#000000"]
|
||||
X3:p11 -- W2:w11
|
||||
W2:w11 -- X4:p11
|
||||
edge [color="#000000:#666600:#000000"]
|
||||
X3:p12 -- W2:w12
|
||||
W2:w12 -- X4:p12
|
||||
edge [color="#000000:#00ff00:#000000"]
|
||||
X3:p13 -- W2:w13
|
||||
W2:w13 -- X4:p13
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X3:p14 -- W2:w14
|
||||
W2:w14 -- X4:p14
|
||||
edge [color="#000000:#808080:#000000"]
|
||||
X3:p15 -- W2:w15
|
||||
W2:w15 -- X4:p15
|
||||
edge [color="#000000:#ff80c0:#000000"]
|
||||
X3:p16 -- W2:w16
|
||||
W2:w16 -- X4:p16
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X3:p17 -- W2:w17
|
||||
W2:w17 -- X4:p17
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X3:p18 -- W2:w18
|
||||
W2:w18 -- X4:p18
|
||||
edge [color="#000000:#000000:#000000"]
|
||||
X3:p19 -- W2:w19
|
||||
W2:w19 -- X4:p19
|
||||
edge [color="#000000:#8000ff:#000000"]
|
||||
X3:p20 -- W2:w20
|
||||
W2:w20 -- X4:p20
|
||||
W3 [label="{20x|None mm²|0 m}|{{<w1>red|<w2>yellow|<w3>blue|<w4>red|<w5>yellow|<w6>blue|<w7>red|<w8>yellow|<w9>blue|<w10>red|<w11>yellow|<w12>blue|<w13>red|<w14>yellow|<w15>blue|<w16>red|<w17>yellow|<w18>blue|<w19>red|<w20>yellow}}"]
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p1 -- W3:w1
|
||||
W3:w1 -- X6:p1
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p2 -- W3:w2
|
||||
W3:w2 -- X6:p2
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X5:p3 -- W3:w3
|
||||
W3:w3 -- X6:p3
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p4 -- W3:w4
|
||||
W3:w4 -- X6:p4
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p5 -- W3:w5
|
||||
W3:w5 -- X6:p5
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X5:p6 -- W3:w6
|
||||
W3:w6 -- X6:p6
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p7 -- W3:w7
|
||||
W3:w7 -- X6:p7
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p8 -- W3:w8
|
||||
W3:w8 -- X6:p8
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X5:p9 -- W3:w9
|
||||
W3:w9 -- X6:p9
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p10 -- W3:w10
|
||||
W3:w10 -- X6:p10
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p11 -- W3:w11
|
||||
W3:w11 -- X6:p11
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X5:p12 -- W3:w12
|
||||
W3:w12 -- X6:p12
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p13 -- W3:w13
|
||||
W3:w13 -- X6:p13
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p14 -- W3:w14
|
||||
W3:w14 -- X6:p14
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X5:p15 -- W3:w15
|
||||
W3:w15 -- X6:p15
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p16 -- W3:w16
|
||||
W3:w16 -- X6:p16
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p17 -- W3:w17
|
||||
W3:w17 -- X6:p17
|
||||
edge [color="#000000:#0000ff:#000000"]
|
||||
X5:p18 -- W3:w18
|
||||
W3:w18 -- X6:p18
|
||||
edge [color="#000000:#ff0000:#000000"]
|
||||
X5:p19 -- W3:w19
|
||||
W3:w19 -- X6:p19
|
||||
edge [color="#000000:#ffff00:#000000"]
|
||||
X5:p20 -- W3:w20
|
||||
W3:w20 -- X6:p20
|
||||
W4 [label="{6x|1 mm²|1 m}|{{<w1>|<w2>|<w3>|<w4>|<w5>|<w6>}}"]
|
||||
edge [color="#000000"]
|
||||
X7:p1 -- W4:w1
|
||||
W4:w1 -- X8:p1
|
||||
edge [color="#000000"]
|
||||
X7:p2 -- W4:w2
|
||||
W4:w2 -- X8:p2
|
||||
edge [color="#000000"]
|
||||
X7:p3 -- W4:w3
|
||||
W4:w3 -- X8:p3
|
||||
edge [color="#000000"]
|
||||
X7:p4 -- W4:w4
|
||||
W4:w4 -- X8:p4
|
||||
edge [color="#000000"]
|
||||
X7:p5 -- W4:w5
|
||||
W4:w5 -- X8:p5
|
||||
edge [color="#000000"]
|
||||
X7:p6 -- W4:w6
|
||||
W4:w6 -- X8:p6
|
||||
}
|
||||
BIN
examples/example3.png
Normal file
BIN
examples/example3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
1227
examples/example3.svg
Normal file
1227
examples/example3.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 76 KiB |
1
src/.gitignore
vendored
1
src/.gitignore
vendored
@ -1 +1,2 @@
|
||||
__pycache__/
|
||||
_output/
|
||||
|
||||
@ -12,4 +12,4 @@ h.loop('X2', 5, 6)
|
||||
# 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('output/output', format='png', view=False)
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
|
||||
@ -28,4 +28,4 @@ h.connect('W2','X1',(1,2,3,4),'auto','X3','auto')
|
||||
h.connect('W3','X1',(1,5,6,7),'auto','X4',(1,3,4,5))
|
||||
h.connect_all_straight('W4','X5','X4')
|
||||
|
||||
h.output('output/output', format='png', view=False)
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
|
||||
@ -23,4 +23,4 @@ h.add_node('X8', num_pins=6, ports_left=True)
|
||||
h.add_cable('W4', num_wires=6, length=1, mm2=1)
|
||||
h.connect_all_straight('W4','X7','X8')
|
||||
|
||||
h.output('output/output', format='png', view=False)
|
||||
h.output(filename='output', format=('png','svg'), view=False)
|
||||
|
||||
@ -1 +0,0 @@
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
// Daniel Rojas - 2020
|
||||
|
||||
graph G {
|
||||
graph [rankdir = "LR", ranksep=2, fontname = "arial", bgcolor="transparent"]
|
||||
edge [fontname = "arial"]
|
||||
node [shape="record", style="rounded,filled", fontname = "arial", fillcolor="white"]
|
||||
4
src/output/.gitignore
vendored
4
src/output/.gitignore
vendored
@ -1,4 +0,0 @@
|
||||
output
|
||||
output.dot
|
||||
output.pdf
|
||||
output.png
|
||||
@ -1,29 +0,0 @@
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
// Daniel Rojas - 2020
|
||||
|
||||
digraph G {
|
||||
graph [rankdir = LR, ranksep=2, fontname = "arial"];
|
||||
edge [arrowhead=none, fontname = "arial"];
|
||||
node [shape=record, style=rounded, fontname = "arial"];
|
||||
|
||||
|
||||
X1[label="X1 | {D-Sub DE-9|female|9-pin} | {{DCD|RX|TX|DTR|GND|DSR|RTS|CTS|RI} | {<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9}}}"]
|
||||
|
||||
X2[label="X2 | {Molex KK 254|female|6-pin} | {{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6} | {|||||}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
X2:p5:w -> X2:p6:w
|
||||
}
|
||||
|
||||
W1[label="W1 | {3x|0.25 mm²| + S|0.2 m} | {{<w1i>1|<w2i>2|<w3i>3|<wsi>} | {WH|BN|GN|Shield} | {<w1o>1|<w2o>2|<w3o>3|<wso>}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#ffffff:#000000"] X1:p5 -> W1:w1i; W1:w1o -> X2:p1}
|
||||
{edge[color="#000000:#666600:#000000"] X1:p2 -> W1:w2i; W1:w2o -> X2:p3}
|
||||
{edge[color="#000000:#00ff00:#000000"] X1:p3 -> W1:w3i; W1:w3o -> X2:p2}
|
||||
{X1:p5 -> W1:wsi; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,53 +0,0 @@
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
// Daniel Rojas - 2020
|
||||
|
||||
digraph G {
|
||||
graph [rankdir = LR, ranksep=2, fontname = "arial"];
|
||||
edge [arrowhead=none, fontname = "arial"];
|
||||
node [shape=record, style=rounded, fontname = "arial"];
|
||||
|
||||
|
||||
X1[label="X1 | {Molex KK 254|female|8-pin} | {{GND|+5V|SCL|SDA|MISO|MOSI|SCK|N/C} | {<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8}}}"]
|
||||
|
||||
X2[label="X2 | {Molex KK 254|female|4-pin} | {{<p1>1|<p2>2|<p3>3|<p4>4} | {GND|+5V|SCL|SDA}}}"]
|
||||
|
||||
X3[label="X3 | {Molex KK 254|female|4-pin} | {{<p1>1|<p2>2|<p3>3|<p4>4} | {GND|+5V|SCL|SDA}}}"]
|
||||
|
||||
X4[label="X4 | {Molex KK 254|female|5-pin} | {{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5} | {GND|+12V|MISO|MOSI|SCK}}}"]
|
||||
|
||||
X5[label="X5 | {Molex Micro-Fit|male|2-pin} | {{GND|+12V} | {<p1>1|<p2>2}}}"]
|
||||
|
||||
W1[label="{4x|0.14 mm²|0.2 m} | {{<w1>BK|<w2>RD|<w3>YE|<w4>GN}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#000000:#000000"] X1:p1 -> W1:w1; W1:w1 -> X2:p1}
|
||||
{edge[color="#000000:#ff0000:#000000"] X1:p2 -> W1:w2; W1:w2 -> X2:p2}
|
||||
{edge[color="#000000:#ffff00:#000000"] X1:p3 -> W1:w3; W1:w3 -> X2:p3}
|
||||
{edge[color="#000000:#00ff00:#000000"] X1:p4 -> W1:w4; W1:w4 -> X2:p4}
|
||||
}
|
||||
W2[label="{4x|0.14 mm²|0.2 m} | {{<w1>BK|<w2>RD|<w3>YE|<w4>GN}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#000000:#000000"] X1:p1 -> W2:w1; W2:w1 -> X3:p1}
|
||||
{edge[color="#000000:#ff0000:#000000"] X1:p2 -> W2:w2; W2:w2 -> X3:p2}
|
||||
{edge[color="#000000:#ffff00:#000000"] X1:p3 -> W2:w3; W2:w3 -> X3:p3}
|
||||
{edge[color="#000000:#00ff00:#000000"] X1:p4 -> W2:w4; W2:w4 -> X3:p4}
|
||||
}
|
||||
W3[label="{4x|0.14 mm²|0.2 m} | {{<w1>BK|<w2>BU|<w3>OG|<w4>VT}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#000000:#000000"] X1:p1 -> W3:w1; W3:w1 -> X4:p1}
|
||||
{edge[color="#000000:#0000ff:#000000"] X1:p5 -> W3:w2; W3:w2 -> X4:p3}
|
||||
{edge[color="#000000:#ff8000:#000000"] X1:p6 -> W3:w3; W3:w3 -> X4:p4}
|
||||
{edge[color="#000000:#8000ff:#000000"] X1:p7 -> W3:w4; W3:w4 -> X4:p5}
|
||||
}
|
||||
W4[label="{2x|0.5 mm²|0.35 m} | {{<w1>BK|<w2>RD}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#000000:#000000"] X5:p1 -> W4:w1; W4:w1 -> X4:p1}
|
||||
{edge[color="#000000:#ff0000:#000000"] X5:p2 -> W4:w2; W4:w2 -> X4:p2}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
// Graph generated by WireViz
|
||||
// https://github.com/formatc1702/WireViz
|
||||
// Daniel Rojas - 2020
|
||||
|
||||
digraph G {
|
||||
graph [rankdir = LR, ranksep=2, fontname = "arial"];
|
||||
edge [arrowhead=none, fontname = "arial"];
|
||||
node [shape=record, style=rounded, fontname = "arial"];
|
||||
|
||||
|
||||
X1[label="X1 | {10-pin} | {{|||||||||} | {<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10}}}"]
|
||||
|
||||
X2[label="X2 | {10-pin} | {{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10} | {|||||||||}}}"]
|
||||
|
||||
W1[label="{10x} | {{<w1>BN|<w2>RD|<w3>OG|<w4>YE|<w5>GN|<w6>BU|<w7>VT|<w8>GY|<w9>WH|<w10>BK}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#666600:#000000"] X1:p1 -> W1:w1; W1:w1 -> X2:p1}
|
||||
{edge[color="#000000:#ff0000:#000000"] X1:p2 -> W1:w2; W1:w2 -> X2:p2}
|
||||
{edge[color="#000000:#ff8000:#000000"] X1:p3 -> W1:w3; W1:w3 -> X2:p3}
|
||||
{edge[color="#000000:#ffff00:#000000"] X1:p4 -> W1:w4; W1:w4 -> X2:p4}
|
||||
{edge[color="#000000:#00ff00:#000000"] X1:p5 -> W1:w5; W1:w5 -> X2:p5}
|
||||
{edge[color="#000000:#0000ff:#000000"] X1:p6 -> W1:w6; W1:w6 -> X2:p6}
|
||||
{edge[color="#000000:#8000ff:#000000"] X1:p7 -> W1:w7; W1:w7 -> X2:p7}
|
||||
{edge[color="#000000:#808080:#000000"] X1:p8 -> W1:w8; W1:w8 -> X2:p8}
|
||||
{edge[color="#000000:#ffffff:#000000"] X1:p9 -> W1:w9; W1:w9 -> X2:p9}
|
||||
{edge[color="#000000:#000000:#000000"] X1:p10 -> W1:w10; W1:w10 -> X2:p10}
|
||||
}
|
||||
X3[label="X3 | {10-pin} | {{|||||||||} | {<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10}}}"]
|
||||
|
||||
X4[label="X4 | {10-pin} | {{<p1>1|<p2>2|<p3>3|<p4>4|<p5>5|<p6>6|<p7>7|<p8>8|<p9>9|<p10>10} | {|||||||||}}}"]
|
||||
|
||||
W2[label="{10x} | {{<w1>WH|<w2>BN|<w3>GN|<w4>YE|<w5>GY|<w6>PK|<w7>BU|<w8>RD|<w9>BK|<w10>VT}}}"]
|
||||
|
||||
{edge[style=bold]
|
||||
{edge[color="#000000:#ffffff:#000000"] X3:p1 -> W2:w1; W2:w1 -> X4:p1}
|
||||
{edge[color="#000000:#666600:#000000"] X3:p2 -> W2:w2; W2:w2 -> X4:p2}
|
||||
{edge[color="#000000:#00ff00:#000000"] X3:p3 -> W2:w3; W2:w3 -> X4:p3}
|
||||
{edge[color="#000000:#ffff00:#000000"] X3:p4 -> W2:w4; W2:w4 -> X4:p4}
|
||||
{edge[color="#000000:#808080:#000000"] X3:p5 -> W2:w5; W2:w5 -> X4:p5}
|
||||
{edge[color="#000000:#ff80c0:#000000"] X3:p6 -> W2:w6; W2:w6 -> X4:p6}
|
||||
{edge[color="#000000:#0000ff:#000000"] X3:p7 -> W2:w7; W2:w7 -> X4:p7}
|
||||
{edge[color="#000000:#ff0000:#000000"] X3:p8 -> W2:w8; W2:w8 -> X4:p8}
|
||||
{edge[color="#000000:#000000:#000000"] X3:p9 -> W2:w9; W2:w9 -> X4:p9}
|
||||
{edge[color="#000000:#8000ff:#000000"] X3:p10 -> W2:w10; W2:w10 -> X4:p10}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -74,6 +74,8 @@ class Harness:
|
||||
|
||||
def create_graph(self):
|
||||
dot = Graph()
|
||||
dot.body.append('// Graph generated by WireViz')
|
||||
dot.body.append('// https://github.com/formatc1702/WireViz')
|
||||
font = 'arial'
|
||||
dot.attr('graph', rankdir='LR', ranksep='2', bgcolor='transparent', fontname=font)
|
||||
dot.attr('node', shape='record', style='rounded,filled', fillcolor='white', fontname=font)
|
||||
@ -95,9 +97,11 @@ class Harness:
|
||||
l = [n.name if n.show_name == True else '', a, p]
|
||||
dot.node(k, label=nested(l))
|
||||
|
||||
for x in n.loops:
|
||||
dot.edge('{name}:p{port_from}:{loop_side}'.format(name=n.name, port_from=x[0], port_to=x[1], loop_side=x[2]),
|
||||
'{name}:p{port_to}:{loop_side}'.format(name=n.name, port_from=x[0], port_to=x[1], loop_side=x[2]))
|
||||
if len(n.loops) > 0:
|
||||
dot.attr('edge',color='#000000')
|
||||
for x in n.loops:
|
||||
dot.edge('{name}:p{port_from}:{loop_side}'.format(name=n.name, port_from=x[0], port_to=x[1], loop_side=x[2]),
|
||||
'{name}:p{port_to}:{loop_side}'.format(name=n.name, port_from=x[0], port_to=x[1], loop_side=x[2]))
|
||||
|
||||
for k in self.cables:
|
||||
c = self.cables[k]
|
||||
@ -146,10 +150,12 @@ class Harness:
|
||||
|
||||
return dot
|
||||
|
||||
def output(self, filename, format='pdf', view=True):
|
||||
def output(self, filename, directory='_output', view=False, cleanup=True, format='pdf'):
|
||||
d = self.create_graph()
|
||||
d.format = format
|
||||
d.render(filename, view=view)
|
||||
for f in format:
|
||||
d.format = f
|
||||
d.render(filename=filename, directory=directory, view=view, cleanup=cleanup)
|
||||
d.save(filename='{}.gv'.format(filename), directory=directory)
|
||||
|
||||
class Node:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user