diff --git a/examples/demo01.bom.tsv b/examples/demo01.bom.tsv index d753410..07948f8 100644 --- a/examples/demo01.bom.tsv +++ b/examples/demo01.bom.tsv @@ -1,4 +1,4 @@ Item Qty Unit Designators Connector, D-Sub, female, 9 pins 1 X1 Connector, Molex KK 254, female, 3 pins 1 X2 -Cable, 3 x 0.25 mm² shielded 0.2 m W1 +Cable, 3 x 0.25 mm² shielded 0.2 m W1 diff --git a/examples/demo01.gv b/examples/demo01.gv index 09194a3..dd8a602 100644 --- a/examples/demo01.gv +++ b/examples/demo01.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{1|2|3|4|5|6|7|8|9}}"] @@ -9,13 +9,13 @@ graph { edge [color="#000000:#ffffff:#000000"] X1:p5r:e -- W1:w1:w W1:w1:e -- X2:p1l:w - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] X1:p2r:e -- W1:w2:w W1:w2:e -- X2:p3l:w edge [color="#000000:#00ff00:#000000"] X1:p3r:e -- W1:w3:w W1:w3:e -- X2:p2l:w - edge [color="#000000"] + edge [color="#aaaaaa:#84878c"] X1:p5r:e -- W1:ws:w - W1 [label=<
W1
3x0.25 mm²+ S0.2 m
 
X1:5WHX2:1
X1:2BNX2:3
X1:3GNX2:2
 
X1:5Shield
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
3x0.25 mm²+ S0.2 m
X1:5WHX2:1
X1:2BNX2:3
X1:3GNX2:2
X1:5Shield
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/demo01.html b/examples/demo01.html index d5231e0..78b7aa6 100644 --- a/examples/demo01.html +++ b/examples/demo01.html @@ -1,171 +1,167 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -D-Sub - -female - -9-pin - -DCD - -RX - -TX - -DTR - -GND - -DSR - -RTS - -CTS - -RI - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 - -9 +X1 + +X1 + +D-Sub + +female + +9-pin + +DCD + +RX + +TX + +DTR + +GND + +DSR + +RTS + +CTS + +RI + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + +9 - -W1 - - -W1 - -3x - -0.25 mm² - -+ S - -0.2 m -  -X1:5 -WH -X2:1 - - - -X1:2 -BN -X2:3 - - - -X1:3 -GN -X2:2 - - - -  -X1:5 -Shield - -  +W1 + + +W1 + +3x + +0.25 mm² + ++ S + +0.2 m +X1:5 +WH +X2:1 + + + +X1:2 +BN +X2:3 + + + +X1:3 +GN +X2:2 + + + +X1:5 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p5r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - +X1:p5r:e--W1:ws:w + + - -X2 - -X2 - -Molex KK 254 - -female - -3-pin - -1 - -2 - -3 - -GND - -RX - -TX +X2 + +X2 + +Molex KK 254 + +female + +3-pin + +1 + +2 + +3 + +GND + +RX + +TX - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p2l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, D-Sub, female, 9 pins1X1
Connector, Molex KK 254, female, 3 pins1X2
Cable, 3 x 0.25 mm² shielded0.2mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, D-Sub, female, 9 pins1X1
Connector, Molex KK 254, female, 3 pins1X2
Cable, 3 x 0.25 mm² shielded0.2mW1
\ No newline at end of file diff --git a/examples/demo01.png b/examples/demo01.png index 77efff4..e280fd6 100644 Binary files a/examples/demo01.png and b/examples/demo01.png differ diff --git a/examples/demo01.svg b/examples/demo01.svg index 517d58e..2c1fbb5 100644 --- a/examples/demo01.svg +++ b/examples/demo01.svg @@ -1,170 +1,166 @@ - - - - - + + + +%3 + - -X1 - -X1 - -D-Sub - -female - -9-pin - -DCD - -RX - -TX - -DTR - -GND - -DSR - -RTS - -CTS - -RI - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 - -9 +X1 + +X1 + +D-Sub + +female + +9-pin + +DCD + +RX + +TX + +DTR + +GND + +DSR + +RTS + +CTS + +RI + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + +9 - -W1 - - -W1 - -3x - -0.25 mm² - -+ S - -0.2 m -  -X1:5 -WH -X2:1 - - - -X1:2 -BN -X2:3 - - - -X1:3 -GN -X2:2 - - - -  -X1:5 -Shield - -  +W1 + + +W1 + +3x + +0.25 mm² + ++ S + +0.2 m +X1:5 +WH +X2:1 + + + +X1:2 +BN +X2:3 + + + +X1:3 +GN +X2:2 + + + +X1:5 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p5r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - +X1:p5r:e--W1:ws:w + + - -X2 - -X2 - -Molex KK 254 - -female - -3-pin - -1 - -2 - -3 - -GND - -RX - -TX +X2 + +X2 + +Molex KK 254 + +female + +3-pin + +1 + +2 + +3 + +GND + +RX + +TX - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p2l:w + + + diff --git a/examples/demo02.bom.tsv b/examples/demo02.bom.tsv index bbaf4a1..c9522fc 100644 --- a/examples/demo02.bom.tsv +++ b/examples/demo02.bom.tsv @@ -3,11 +3,11 @@ Connector, Crimp ferrule, 0.25 mm² 2 Connector, Molex KK 254, female, 4 pins 2 X2, X3 Connector, Molex KK 254, female, 5 pins 1 X4 Connector, Molex KK 254, female, 8 pins 1 X1 -Cable, 2 x 0.25 mm² 0.3 m W4 -Wire, 0.14 mm², BK 0.9 m W1, W2, W3 -Wire, 0.14 mm², BU 0.3 m W3 -Wire, 0.14 mm², GN 0.6 m W1, W2 -Wire, 0.14 mm², OG 0.3 m W3 -Wire, 0.14 mm², RD 0.6 m W1, W2 -Wire, 0.14 mm², VT 0.3 m W3 -Wire, 0.14 mm², YE 0.6 m W1, W2 +Cable, 2 x 0.25 mm² 0.3 m W4 +Wire, 0.14 mm², BK 0.9 m W1, W2, W3 +Wire, 0.14 mm², BU 0.3 m W3 +Wire, 0.14 mm², GN 0.6 m W1, W2 +Wire, 0.14 mm², OG 0.3 m W3 +Wire, 0.14 mm², RD 0.6 m W1, W2 +Wire, 0.14 mm², VT 0.3 m W3 +Wire, 0.14 mm², YE 0.6 m W1, W2 diff --git a/examples/demo02.gv b/examples/demo02.gv index 3e8f42d..c0dc1fe 100644 --- a/examples/demo02.gv +++ b/examples/demo02.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{1|2|3|4|5|6|7|8}}"] @@ -11,7 +11,7 @@ graph { _F1 [label=< - +
Crimp ferrule, 0.25 mm² Crimp ferrule, 0.25 mm²
@@ -21,7 +21,7 @@ graph { _F2 [label=< - +
Crimp ferrule, 0.25 mm² Crimp ferrule, 0.25 mm²
@@ -40,7 +40,7 @@ graph { edge [color="#000000:#00ff00:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p4l:w - W1 [label=<
W1
4x0.14 mm² (26 AWG)0.2 m
 
X1:1BKX2:1
X1:2RDX2:2
X1:3YEX2:3
X1:4GNX2:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
4x0.14 mm² (26 AWG)0.2 m
X1:1BKX2:1
X1:2RDX2:2
X1:3YEX2:3
X1:4GNX2:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#000000:#000000"] X1:p1r:e -- W2:w1:w W2:w1:e -- X3:p1l:w @@ -53,7 +53,7 @@ graph { edge [color="#000000:#00ff00:#000000"] X1:p4r:e -- W2:w4:w W2:w4:e -- X3:p4l:w - W2 [label=<
W2
4x0.14 mm² (26 AWG)0.4 m
 
X1:1BKX3:1
X1:2RDX3:2
X1:3YEX3:3
X1:4GNX3:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W2 [label=<
W2
4x0.14 mm² (26 AWG)0.4 m
X1:1BKX3:1
X1:2RDX3:2
X1:3YEX3:3
X1:4GNX3:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#000000:#000000"] X1:p1r:e -- W3:w1:w W3:w1:e -- X4:p1l:w @@ -66,7 +66,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X1:p7r:e -- W3:w4:w W3:w4:e -- X4:p5l:w - W3 [label=<
W3
4x0.14 mm² (26 AWG)0.3 m
 
X1:1BKX4:1
X1:5BUX4:3
X1:6OGX4:4
X1:7VTX4:5
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W3 [label=<
W3
4x0.14 mm² (26 AWG)0.3 m
X1:1BKX4:1
X1:5BUX4:3
X1:6OGX4:4
X1:7VTX4:5
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#000000:#000000"] _F1:e -- W4:w1:w edge [color="#000000:#ff0000:#000000"] @@ -75,5 +75,5 @@ graph { W4:w1:e -- X4:p1l:w edge [color="#000000:#ff0000:#000000"] W4:w2:e -- X4:p2l:w - W4 [label=<
W4
2x0.25 mm² (24 AWG)0.3 m
 
BKX4:1
RDX4:2
 
> fillcolor=white margin=0 shape=box style=""] + W4 [label=<
W4
2x0.25 mm² (24 AWG)0.3 m
BKX4:1
RDX4:2
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/demo02.html b/examples/demo02.html index a63a0c6..e50b18d 100644 --- a/examples/demo02.html +++ b/examples/demo02.html @@ -1,499 +1,454 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -8-pin - -GND - -+5V - -SCL - -SDA - -MISO - -MOSI - -SCK - -N/C - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 +X1 + +X1 + +Molex KK 254 + +female + +8-pin + +GND + ++5V + +SCL + +SDA + +MISO + +MOSI + +SCK + +N/C + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 - -W1 - - -W1 - -4x - -0.14 mm² (26 AWG) - -0.2 m -  -X1:1 -BK -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -GN -X2:4 - - - -  +W1 + + +W1 + +4x + +0.14 mm² (26 AWG) + +0.2 m +X1:1 +BK +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +GN +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -W2 - - -W2 - -4x - -0.14 mm² (26 AWG) - -0.4 m -  -X1:1 -BK -X3:1 - - - -X1:2 -RD -X3:2 - - - -X1:3 -YE -X3:3 - - - -X1:4 -GN -X3:4 - - - -  +W2 + + +W2 + +4x + +0.14 mm² (26 AWG) + +0.4 m +X1:1 +BK +X3:1 + + + +X1:2 +RD +X3:2 + + + +X1:3 +YE +X3:3 + + + +X1:4 +GN +X3:4 + + + - -X1:e--W2:w - - - +X1:p1r:e--W2:w1:w + + + - -X1:e--W2:w - - - +X1:p2r:e--W2:w2:w + + + - -X1:e--W2:w - - - +X1:p3r:e--W2:w3:w + + + - -X1:e--W2:w - - - +X1:p4r:e--W2:w4:w + + + - -W3 - - -W3 - -4x - -0.14 mm² (26 AWG) - -0.3 m -  -X1:1 -BK -X4:1 - - - -X1:5 -BU -X4:3 - - - -X1:6 -OG -X4:4 - - - -X1:7 -VT -X4:5 - - - -  +W3 + + +W3 + +4x + +0.14 mm² (26 AWG) + +0.3 m +X1:1 +BK +X4:1 + + + +X1:5 +BU +X4:3 + + + +X1:6 +OG +X4:4 + + + +X1:7 +VT +X4:5 + + + - -X1:e--W3:w - - - +X1:p1r:e--W3:w1:w + + + - -X1:e--W3:w - - - +X1:p5r:e--W3:w2:w + + + - -X1:e--W3:w - - - +X1:p6r:e--W3:w3:w + + + - -X1:e--W3:w - - - +X1:p7r:e--W3:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -+5V - -SCL - -SDA +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + ++5V + +SCL + +SDA - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -+5V - -SCL - -SDA +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + ++5V + +SCL + +SDA - -X4 - -X4 - -Molex KK 254 - -female - -5-pin - -1 - -2 - -3 - -4 - -5 - -GND - -+12V - -MISO - -MOSI - -SCK +X4 + +X4 + +Molex KK 254 + +female + +5-pin + +1 + +2 + +3 + +4 + +5 + +GND + ++12V + +MISO + +MOSI + +SCK - -_F1 - - Crimp ferrule, 0.25 mm²   -   - +_F1 + + Crimp ferrule, 0.25 mm²   +   + - -W4 - - -W4 - -2x - -0.25 mm² (24 AWG) - -0.3 m -  -BK -X4:1 - - - -RD -X4:2 - - - -  +W4 + + +W4 + +2x + +0.25 mm² (24 AWG) + +0.3 m +BK +X4:1 + + + +RD +X4:2 + + + - -_F1:e--W4:w - - - +_F1:e--W4:w1:w + + + - -_F2 - - Crimp ferrule, 0.25 mm²   -   - +_F2 + + Crimp ferrule, 0.25 mm²   +   + - -_F2:e--W4:w - - - +_F2:e--W4:w2:w + + + - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W2:e--X3:w - - - +W2:w3:e--X3:p3l:w + + + - -W2:e--X3:w - - - +W2:w4:e--X3:p4l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p3l:w + + + - -W3:e--X4:w - - - +W3:w3:e--X4:p4l:w + + + - -W3:e--X4:w - - - +W3:w4:e--X4:p5l:w + + + - -W4:e--X4:w - - - +W4:w1:e--X4:p1l:w + + + - -W4:e--X4:w - - - +W4:w2:e--X4:p2l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Crimp ferrule, 0.25 mm²2
Connector, Molex KK 254, female, 4 pins2X2, X3
Connector, Molex KK 254, female, 5 pins1X4
Connector, Molex KK 254, female, 8 pins1X1
Cable, 2 x 0.25 mm²0.3mW4
Wire, 0.14 mm², BK0.9mW1, W2, W3
Wire, 0.14 mm², BU0.3mW3
Wire, 0.14 mm², GN0.6mW1, W2
Wire, 0.14 mm², OG0.3mW3
Wire, 0.14 mm², RD0.6mW1, W2
Wire, 0.14 mm², VT0.3mW3
Wire, 0.14 mm², YE0.6mW1, W2
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Crimp ferrule, 0.25 mm²2
Connector, Molex KK 254, female, 4 pins2X2, X3
Connector, Molex KK 254, female, 5 pins1X4
Connector, Molex KK 254, female, 8 pins1X1
Cable, 2 x 0.25 mm²0.3mW4
Wire, 0.14 mm², BK0.9mW1, W2, W3
Wire, 0.14 mm², BU0.3mW3
Wire, 0.14 mm², GN0.6mW1, W2
Wire, 0.14 mm², OG0.3mW3
Wire, 0.14 mm², RD0.6mW1, W2
Wire, 0.14 mm², VT0.3mW3
Wire, 0.14 mm², YE0.6mW1, W2
\ No newline at end of file diff --git a/examples/demo02.png b/examples/demo02.png index 3517f29..8be43cc 100644 Binary files a/examples/demo02.png and b/examples/demo02.png differ diff --git a/examples/demo02.svg b/examples/demo02.svg index 3b8a93e..1237834 100644 --- a/examples/demo02.svg +++ b/examples/demo02.svg @@ -1,498 +1,453 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -8-pin - -GND - -+5V - -SCL - -SDA - -MISO - -MOSI - -SCK - -N/C - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 +X1 + +X1 + +Molex KK 254 + +female + +8-pin + +GND + ++5V + +SCL + +SDA + +MISO + +MOSI + +SCK + +N/C + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 - -W1 - - -W1 - -4x - -0.14 mm² (26 AWG) - -0.2 m -  -X1:1 -BK -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -GN -X2:4 - - - -  +W1 + + +W1 + +4x + +0.14 mm² (26 AWG) + +0.2 m +X1:1 +BK +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +GN +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -W2 - - -W2 - -4x - -0.14 mm² (26 AWG) - -0.4 m -  -X1:1 -BK -X3:1 - - - -X1:2 -RD -X3:2 - - - -X1:3 -YE -X3:3 - - - -X1:4 -GN -X3:4 - - - -  +W2 + + +W2 + +4x + +0.14 mm² (26 AWG) + +0.4 m +X1:1 +BK +X3:1 + + + +X1:2 +RD +X3:2 + + + +X1:3 +YE +X3:3 + + + +X1:4 +GN +X3:4 + + + - -X1:e--W2:w - - - +X1:p1r:e--W2:w1:w + + + - -X1:e--W2:w - - - +X1:p2r:e--W2:w2:w + + + - -X1:e--W2:w - - - +X1:p3r:e--W2:w3:w + + + - -X1:e--W2:w - - - +X1:p4r:e--W2:w4:w + + + - -W3 - - -W3 - -4x - -0.14 mm² (26 AWG) - -0.3 m -  -X1:1 -BK -X4:1 - - - -X1:5 -BU -X4:3 - - - -X1:6 -OG -X4:4 - - - -X1:7 -VT -X4:5 - - - -  +W3 + + +W3 + +4x + +0.14 mm² (26 AWG) + +0.3 m +X1:1 +BK +X4:1 + + + +X1:5 +BU +X4:3 + + + +X1:6 +OG +X4:4 + + + +X1:7 +VT +X4:5 + + + - -X1:e--W3:w - - - +X1:p1r:e--W3:w1:w + + + - -X1:e--W3:w - - - +X1:p5r:e--W3:w2:w + + + - -X1:e--W3:w - - - +X1:p6r:e--W3:w3:w + + + - -X1:e--W3:w - - - +X1:p7r:e--W3:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -+5V - -SCL - -SDA +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + ++5V + +SCL + +SDA - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -+5V - -SCL - -SDA +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + ++5V + +SCL + +SDA - -X4 - -X4 - -Molex KK 254 - -female - -5-pin - -1 - -2 - -3 - -4 - -5 - -GND - -+12V - -MISO - -MOSI - -SCK +X4 + +X4 + +Molex KK 254 + +female + +5-pin + +1 + +2 + +3 + +4 + +5 + +GND + ++12V + +MISO + +MOSI + +SCK - -_F1 - - Crimp ferrule, 0.25 mm²   -   - +_F1 + + Crimp ferrule, 0.25 mm²   +   + - -W4 - - -W4 - -2x - -0.25 mm² (24 AWG) - -0.3 m -  -BK -X4:1 - - - -RD -X4:2 - - - -  +W4 + + +W4 + +2x + +0.25 mm² (24 AWG) + +0.3 m +BK +X4:1 + + + +RD +X4:2 + + + - -_F1:e--W4:w - - - +_F1:e--W4:w1:w + + + - -_F2 - - Crimp ferrule, 0.25 mm²   -   - +_F2 + + Crimp ferrule, 0.25 mm²   +   + - -_F2:e--W4:w - - - +_F2:e--W4:w2:w + + + - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W2:e--X3:w - - - +W2:w3:e--X3:p3l:w + + + - -W2:e--X3:w - - - +W2:w4:e--X3:p4l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p3l:w + + + - -W3:e--X4:w - - - +W3:w3:e--X4:p4l:w + + + - -W3:e--X4:w - - - +W3:w4:e--X4:p5l:w + + + - -W4:e--X4:w - - - +W4:w1:e--X4:p1l:w + + + - -W4:e--X4:w - - - +W4:w2:e--X4:p2l:w + + + diff --git a/examples/ex01.bom.tsv b/examples/ex01.bom.tsv index 6eeb436..2beb9f6 100644 --- a/examples/ex01.bom.tsv +++ b/examples/ex01.bom.tsv @@ -1,3 +1,3 @@ Item Qty Unit Designators Connector, Molex KK 254, female, 4 pins 2 X1, X2 -Cable, 4 x 0.25 mm² shielded 0.2 m W1 +Cable, 4 x 0.25 mm² shielded 0.2 m W1 diff --git a/examples/ex01.gv b/examples/ex01.gv index eda6ecc..8e156b0 100644 --- a/examples/ex01.gv +++ b/examples/ex01.gv @@ -1,12 +1,12 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{1|2|3|4}}"] X2 [label="X2|{Molex KK 254|female|4-pin}|{{1|2|3|4}|{GND|VCC|RX|TX}}"] - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] X1:p1r:e -- W1:w1:w W1:w1:e -- X2:p1l:w edge [color="#000000:#ff0000:#000000"] @@ -18,7 +18,7 @@ graph { edge [color="#000000:#ffff00:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p3l:w - edge [color="#000000"] + edge [color="#aaaaaa:#84878c"] X1:p1r:e -- W1:ws:w - W1 [label=<
W1
4x0.25 mm² (24 AWG)+ S0.2 m
 
X1:1BNX2:1
X1:2RDX2:2
X1:3OGX2:4
X1:4YEX2:3
 
X1:1Shield
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
4x0.25 mm² (24 AWG)+ S0.2 m
X1:1BNX2:1
X1:2RDX2:2
X1:3OGX2:4
X1:4YEX2:3
X1:1Shield
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/ex01.html b/examples/ex01.html index 5c03d91..d69a2eb 100644 --- a/examples/ex01.html +++ b/examples/ex01.html @@ -1,175 +1,169 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -RX - -TX - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +RX + +TX + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² (24 AWG) - -+ S - -0.2 m -  -X1:1 -BN -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:3 -OG -X2:4 - - - -X1:4 -YE -X2:3 - - - -  -X1:1 -Shield - -  +W1 + + +W1 + +4x + +0.25 mm² (24 AWG) + ++ S + +0.2 m +X1:1 +BN +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:3 +OG +X2:4 + + + +X1:4 +YE +X2:3 + + + +X1:1 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X1:e--W1:w - +X1:p1r:e--W1:ws:w + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -RX - -TX +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +RX + +TX - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p4l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p3l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins2X1, X2
Cable, 4 x 0.25 mm² shielded0.2mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins2X1, X2
Cable, 4 x 0.25 mm² shielded0.2mW1
\ No newline at end of file diff --git a/examples/ex01.png b/examples/ex01.png index 935b484..7854b2d 100644 Binary files a/examples/ex01.png and b/examples/ex01.png differ diff --git a/examples/ex01.svg b/examples/ex01.svg index a22e320..d6247ed 100644 --- a/examples/ex01.svg +++ b/examples/ex01.svg @@ -1,174 +1,168 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -RX - -TX - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +RX + +TX + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² (24 AWG) - -+ S - -0.2 m -  -X1:1 -BN -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:3 -OG -X2:4 - - - -X1:4 -YE -X2:3 - - - -  -X1:1 -Shield - -  +W1 + + +W1 + +4x + +0.25 mm² (24 AWG) + ++ S + +0.2 m +X1:1 +BN +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:3 +OG +X2:4 + + + +X1:4 +YE +X2:3 + + + +X1:1 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X1:e--W1:w - +X1:p1r:e--W1:ws:w + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -RX - -TX +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +RX + +TX - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p4l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p3l:w + + + diff --git a/examples/ex02.bom.tsv b/examples/ex02.bom.tsv index 67cb7f0..4d557d6 100644 --- a/examples/ex02.bom.tsv +++ b/examples/ex02.bom.tsv @@ -1,5 +1,5 @@ Item Qty Unit Designators Connector, Molex Micro-Fit, female, 2 pins 3 X2, X3, X4 Connector, Molex Micro-Fit, male, 2 pins 1 X1 -Cable, 2 x 0.25 mm² 0.4 m W1, W2 +Cable, 2 x 0.25 mm² 0.4 m W1, W2 Cable, 2 x 20 AWG 0.2 m W3 diff --git a/examples/ex02.gv b/examples/ex02.gv index 8f29aaf..02eddd9 100644 --- a/examples/ex02.gv +++ b/examples/ex02.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{1|2}}"] @@ -14,19 +14,19 @@ graph { edge [color="#000000:#ff0000:#000000"] X1:p2r:e -- W1:w2:w W1:w2:e -- X2:p2l:w - W1 [label=<
W1
2x0.25 mm² (24 AWG)0.2 m
 
X1:1BKX2:1
X1:2RDX2:2
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
2x0.25 mm² (24 AWG)0.2 m
X1:1BKX2:1
X1:2RDX2:2
> fillcolor=white margin=0 shape=box style=""] edge [color="#000000:#000000:#000000"] X1:p1r:e -- W2:w1:w W2:w1:e -- X3:p1l:w edge [color="#000000:#ff0000:#000000"] X1:p2r:e -- W2:w2:w W2:w2:e -- X3:p2l:w - W2 [label=<
W2
2x0.25 mm² (24 AWG)0.2 m
 
X1:1BKX3:1
X1:2RDX3:2
 
> fillcolor=white margin=0 shape=box style=""] + W2 [label=<
W2
2x0.25 mm² (24 AWG)0.2 m
X1:1BKX3:1
X1:2RDX3:2
> fillcolor=white margin=0 shape=box style=""] edge [color="#000000:#000000:#000000"] X1:p1r:e -- W3:w1:w W3:w1:e -- X4:p1l:w edge [color="#000000:#ff0000:#000000"] X1:p2r:e -- W3:w2:w W3:w2:e -- X4:p2l:w - W3 [label=<
W3
2x20 AWG (0.75 mm²)0.2 m
 
X1:1BKX4:1
X1:2RDX4:2
 
> fillcolor=white margin=0 shape=box style=""] + W3 [label=<
W3
2x20 AWG (0.75 mm²)0.2 m
X1:1BKX4:1
X1:2RDX4:2
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/ex02.html b/examples/ex02.html index be3f0ab..fd2b137 100644 --- a/examples/ex02.html +++ b/examples/ex02.html @@ -1,258 +1,234 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex Micro-Fit - -male - -2-pin - -GND - -VCC - -1 - -2 +X1 + +X1 + +Molex Micro-Fit + +male + +2-pin + +GND + +VCC + +1 + +2 - -W1 - - -W1 - -2x - -0.25 mm² (24 AWG) - -0.2 m -  -X1:1 -BK -X2:1 - - - -X1:2 -RD -X2:2 - - - -  +W1 + + +W1 + +2x + +0.25 mm² (24 AWG) + +0.2 m +X1:1 +BK +X2:1 + + + +X1:2 +RD +X2:2 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -W2 - - -W2 - -2x - -0.25 mm² (24 AWG) - -0.2 m -  -X1:1 -BK -X3:1 - - - -X1:2 -RD -X3:2 - - - -  +W2 + + +W2 + +2x + +0.25 mm² (24 AWG) + +0.2 m +X1:1 +BK +X3:1 + + + +X1:2 +RD +X3:2 + + + - -X1:e--W2:w - - - +X1:p1r:e--W2:w1:w + + + - -X1:e--W2:w - - - +X1:p2r:e--W2:w2:w + + + - -W3 - - -W3 - -2x - -20 AWG (0.75 mm²) - -0.2 m -  -X1:1 -BK -X4:1 - - - -X1:2 -RD -X4:2 - - - -  +W3 + + +W3 + +2x + +20 AWG (0.75 mm²) + +0.2 m +X1:1 +BK +X4:1 + + + +X1:2 +RD +X4:2 + + + - -X1:e--W3:w - - - +X1:p1r:e--W3:w1:w + + + - -X1:e--W3:w - - - +X1:p2r:e--W3:w2:w + + + - -X2 - -X2 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X2 + +X2 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X3 - -X3 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X3 + +X3 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X4 - -X4 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X4 + +X4 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p2l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex Micro-Fit, female, 2 pins3X2, X3, X4
Connector, Molex Micro-Fit, male, 2 pins1X1
Cable, 2 x 0.25 mm²0.4mW1, W2
Cable, 2 x 20 AWG0.2mW3
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex Micro-Fit, female, 2 pins3X2, X3, X4
Connector, Molex Micro-Fit, male, 2 pins1X1
Cable, 2 x 0.25 mm²0.4mW1, W2
Cable, 2 x 20 AWG0.2mW3
\ No newline at end of file diff --git a/examples/ex02.png b/examples/ex02.png index 28d54eb..4b62257 100644 Binary files a/examples/ex02.png and b/examples/ex02.png differ diff --git a/examples/ex02.svg b/examples/ex02.svg index 5de828e..cdc5938 100644 --- a/examples/ex02.svg +++ b/examples/ex02.svg @@ -1,257 +1,233 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex Micro-Fit - -male - -2-pin - -GND - -VCC - -1 - -2 +X1 + +X1 + +Molex Micro-Fit + +male + +2-pin + +GND + +VCC + +1 + +2 - -W1 - - -W1 - -2x - -0.25 mm² (24 AWG) - -0.2 m -  -X1:1 -BK -X2:1 - - - -X1:2 -RD -X2:2 - - - -  +W1 + + +W1 + +2x + +0.25 mm² (24 AWG) + +0.2 m +X1:1 +BK +X2:1 + + + +X1:2 +RD +X2:2 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -W2 - - -W2 - -2x - -0.25 mm² (24 AWG) - -0.2 m -  -X1:1 -BK -X3:1 - - - -X1:2 -RD -X3:2 - - - -  +W2 + + +W2 + +2x + +0.25 mm² (24 AWG) + +0.2 m +X1:1 +BK +X3:1 + + + +X1:2 +RD +X3:2 + + + - -X1:e--W2:w - - - +X1:p1r:e--W2:w1:w + + + - -X1:e--W2:w - - - +X1:p2r:e--W2:w2:w + + + - -W3 - - -W3 - -2x - -20 AWG (0.75 mm²) - -0.2 m -  -X1:1 -BK -X4:1 - - - -X1:2 -RD -X4:2 - - - -  +W3 + + +W3 + +2x + +20 AWG (0.75 mm²) + +0.2 m +X1:1 +BK +X4:1 + + + +X1:2 +RD +X4:2 + + + - -X1:e--W3:w - - - +X1:p1r:e--W3:w1:w + + + - -X1:e--W3:w - - - +X1:p2r:e--W3:w2:w + + + - -X2 - -X2 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X2 + +X2 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X3 - -X3 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X3 + +X3 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X4 - -X4 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X4 + +X4 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p2l:w + + + diff --git a/examples/ex03.bom.tsv b/examples/ex03.bom.tsv index 98d3491..a9c9c31 100644 --- a/examples/ex03.bom.tsv +++ b/examples/ex03.bom.tsv @@ -1,5 +1,5 @@ Item Qty Unit Designators Connector, Molex Micro-Fit, female, 2 pins 3 X2, X3, X4 Connector, Molex Micro-Fit, male, 2 pins 1 X1 -Wire, 0.25 mm², BK 0.6 m W1 -Wire, 0.25 mm², RD 0.6 m W1 +Wire, 0.25 mm², BK 0.6 m W1 +Wire, 0.25 mm², RD 0.6 m W1 diff --git a/examples/ex03.gv b/examples/ex03.gv index c5a55e9..ca260ef 100644 --- a/examples/ex03.gv +++ b/examples/ex03.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{1|2}}"] @@ -26,5 +26,5 @@ graph { edge [color="#000000:#ff0000:#000000"] X1:p2r:e -- W1:w6:w W1:w6:e -- X4:p2l:w - W1 [label=<
W1
6x0.25 mm² (24 AWG)0.2 m
 
X1:1BKX2:1
X1:2RDX2:2
X1:1BKX3:1
X1:2RDX3:2
X1:1BKX4:1
X1:2RDX4:2
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
6x0.25 mm² (24 AWG)0.2 m
X1:1BKX2:1
X1:2RDX2:2
X1:1BKX3:1
X1:2RDX3:2
X1:1BKX4:1
X1:2RDX4:2
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/examples/ex03.html b/examples/ex03.html index 9490593..c1a77a0 100644 --- a/examples/ex03.html +++ b/examples/ex03.html @@ -1,228 +1,210 @@

Diagram

- - - + + - +%3 + - -X1 - -X1 - -Molex Micro-Fit - -male - -2-pin - -GND - -VCC - -1 - -2 +X1 + +X1 + +Molex Micro-Fit + +male + +2-pin + +GND + +VCC + +1 + +2 - -W1 - - -W1 - -6x - -0.25 mm² (24 AWG) - -0.2 m -  -X1:1 -BK -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:1 -BK -X3:1 - - - -X1:2 -RD -X3:2 - - - -X1:1 -BK -X4:1 - - - -X1:2 -RD -X4:2 - - - -  +W1 + + +W1 + +6x + +0.25 mm² (24 AWG) + +0.2 m +X1:1 +BK +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:1 +BK +X3:1 + + + +X1:2 +RD +X3:2 + + + +X1:1 +BK +X4:1 + + + +X1:2 +RD +X4:2 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w4:w + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w5:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w6:w + + + - -X2 - -X2 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X2 + +X2 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X3 - -X3 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X3 + +X3 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X4 - -X4 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X4 + +X4 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X3:w - - - +W1:w3:e--X3:p1l:w + + + - -W1:e--X3:w - - - +W1:w4:e--X3:p2l:w + + + - -W1:e--X4:w - - - +W1:w5:e--X4:p1l:w + + + - -W1:e--X4:w - - - +W1:w6:e--X4:p2l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex Micro-Fit, female, 2 pins3X2, X3, X4
Connector, Molex Micro-Fit, male, 2 pins1X1
Wire, 0.25 mm², BK0.6mW1
Wire, 0.25 mm², RD0.6mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex Micro-Fit, female, 2 pins3X2, X3, X4
Connector, Molex Micro-Fit, male, 2 pins1X1
Wire, 0.25 mm², BK0.6mW1
Wire, 0.25 mm², RD0.6mW1
\ No newline at end of file diff --git a/examples/ex03.png b/examples/ex03.png index 1a66384..9447bc7 100644 Binary files a/examples/ex03.png and b/examples/ex03.png differ diff --git a/examples/ex03.svg b/examples/ex03.svg index af664bd..3c5b8bd 100644 --- a/examples/ex03.svg +++ b/examples/ex03.svg @@ -1,227 +1,209 @@ - - - + + - +%3 + - -X1 - -X1 - -Molex Micro-Fit - -male - -2-pin - -GND - -VCC - -1 - -2 +X1 + +X1 + +Molex Micro-Fit + +male + +2-pin + +GND + +VCC + +1 + +2 - -W1 - - -W1 - -6x - -0.25 mm² (24 AWG) - -0.2 m -  -X1:1 -BK -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:1 -BK -X3:1 - - - -X1:2 -RD -X3:2 - - - -X1:1 -BK -X4:1 - - - -X1:2 -RD -X4:2 - - - -  +W1 + + +W1 + +6x + +0.25 mm² (24 AWG) + +0.2 m +X1:1 +BK +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:1 +BK +X3:1 + + + +X1:2 +RD +X3:2 + + + +X1:1 +BK +X4:1 + + + +X1:2 +RD +X4:2 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w4:w + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w5:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w6:w + + + - -X2 - -X2 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X2 + +X2 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X3 - -X3 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X3 + +X3 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -X4 - -X4 - -Molex Micro-Fit - -female - -2-pin - -1 - -2 - -GND - -VCC +X4 + +X4 + +Molex Micro-Fit + +female + +2-pin + +1 + +2 + +GND + +VCC - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X3:w - - - +W1:w3:e--X3:p1l:w + + + - -W1:e--X3:w - - - +W1:w4:e--X3:p2l:w + + + - -W1:e--X4:w - - - +W1:w5:e--X4:p1l:w + + + - -W1:e--X4:w - - - +W1:w6:e--X4:p2l:w + + + diff --git a/examples/ex04.bom.tsv b/examples/ex04.bom.tsv index edee58d..8ca5973 100644 --- a/examples/ex04.bom.tsv +++ b/examples/ex04.bom.tsv @@ -1,8 +1,8 @@ Item Qty Unit Designators Connector, Crimp ferrule 12 -Wire, 0.25 mm², BN 0.2 m W1 -Wire, 0.25 mm², BU 0.2 m W1 -Wire, 0.25 mm², GN 0.2 m W1 -Wire, 0.25 mm², OG 0.2 m W1 -Wire, 0.25 mm², RD 0.2 m W1 -Wire, 0.25 mm², YE 0.2 m W1 +Wire, 0.25 mm², BN 0.2 m W1 +Wire, 0.25 mm², BU 0.2 m W1 +Wire, 0.25 mm², GN 0.2 m W1 +Wire, 0.25 mm², OG 0.2 m W1 +Wire, 0.25 mm², RD 0.2 m W1 +Wire, 0.25 mm², YE 0.2 m W1 diff --git a/examples/ex04.gv b/examples/ex04.gv index 7d4428b..ae86fd4 100644 --- a/examples/ex04.gv +++ b/examples/ex04.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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=< @@ -124,7 +124,7 @@ graph { > margin=0 orientation=0 shape=none style=filled] - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] _F1:e -- W1:w1:w edge [color="#000000:#ff0000:#000000"] _F2:e -- W1:w2:w @@ -146,7 +146,7 @@ graph { W1:w3:e -- _F10:w edge [color="#000000:#ff0000:#000000"] W1:w2:e -- _F11:w - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] W1:w1:e -- _F12:w - W1 [label=<
W1
6x0.25 mm² (24 AWG)0.2 m
 
BN
RD
OG
YE
GN
BU
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
6x0.25 mm² (24 AWG)0.2 m
BN
RD
OG
YE
GN
BU
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/examples/ex04.html b/examples/ex04.html index 4c44171..4887082 100644 --- a/examples/ex04.html +++ b/examples/ex04.html @@ -1,232 +1,206 @@

Diagram

- - - + + - +%3 + - -_F1 - - Crimp ferrule   -   - +_F1 + + Crimp ferrule   +   + - -W1 - - -W1 - -6x - -0.25 mm² (24 AWG) - -0.2 m -  -BN - - - -RD - - - -OG - - - -YE - - - -GN - - - -BU - - - -  +W1 + + +W1 + +6x + +0.25 mm² (24 AWG) + +0.2 m +BN + + + +RD + + + +OG + + + +YE + + + +GN + + + +BU + + + - -_F1:e--W1:w - - - +_F1:e--W1:w1:w + + + - -_F2 - - Crimp ferrule   -   - +_F2 + + Crimp ferrule   +   + - -_F2:e--W1:w - - - +_F2:e--W1:w2:w + + + - -_F3 - - Crimp ferrule   -   - +_F3 + + Crimp ferrule   +   + - -_F3:e--W1:w - - - +_F3:e--W1:w3:w + + + - -_F4 - - Crimp ferrule   -   - +_F4 + + Crimp ferrule   +   + - -_F4:e--W1:w - - - +_F4:e--W1:w4:w + + + - -_F5 - - Crimp ferrule   -   - +_F5 + + Crimp ferrule   +   + - -_F5:e--W1:w - - - +_F5:e--W1:w5:w + + + - -_F6 - - Crimp ferrule   -   - +_F6 + + Crimp ferrule   +   + - -_F6:e--W1:w - - - +_F6:e--W1:w6:w + + + - -_F7 - -   - Crimp ferrule   - +_F7 + +   + Crimp ferrule   + - -_F8 - -   - Crimp ferrule   - +_F8 + +   + Crimp ferrule   + - -_F9 - -   - Crimp ferrule   - +_F9 + +   + Crimp ferrule   + - -_F10 - -   - Crimp ferrule   - +_F10 + +   + Crimp ferrule   + - -_F11 - -   - Crimp ferrule   - +_F11 + +   + Crimp ferrule   + - -_F12 - -   - Crimp ferrule   - +_F12 + +   + Crimp ferrule   + - -W1:e--_F7:w - - - +W1:w6:e--_F7:w + + + - -W1:e--_F8:w - - - +W1:w5:e--_F8:w + + + - -W1:e--_F9:w - - - +W1:w4:e--_F9:w + + + - -W1:e--_F10:w - - - +W1:w3:e--_F10:w + + + - -W1:e--_F11:w - - - +W1:w2:e--_F11:w + + + - -W1:e--_F12:w - - - +W1:w1:e--_F12:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Crimp ferrule12
Wire, 0.25 mm², BN0.2mW1
Wire, 0.25 mm², BU0.2mW1
Wire, 0.25 mm², GN0.2mW1
Wire, 0.25 mm², OG0.2mW1
Wire, 0.25 mm², RD0.2mW1
Wire, 0.25 mm², YE0.2mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Crimp ferrule12
Wire, 0.25 mm², BN0.2mW1
Wire, 0.25 mm², BU0.2mW1
Wire, 0.25 mm², GN0.2mW1
Wire, 0.25 mm², OG0.2mW1
Wire, 0.25 mm², RD0.2mW1
Wire, 0.25 mm², YE0.2mW1
\ No newline at end of file diff --git a/examples/ex04.png b/examples/ex04.png index d076724..f4ec609 100644 Binary files a/examples/ex04.png and b/examples/ex04.png differ diff --git a/examples/ex04.svg b/examples/ex04.svg index ecf2e71..45ca168 100644 --- a/examples/ex04.svg +++ b/examples/ex04.svg @@ -1,231 +1,205 @@ - - - + + - +%3 + - -_F1 - - Crimp ferrule   -   - +_F1 + + Crimp ferrule   +   + - -W1 - - -W1 - -6x - -0.25 mm² (24 AWG) - -0.2 m -  -BN - - - -RD - - - -OG - - - -YE - - - -GN - - - -BU - - - -  +W1 + + +W1 + +6x + +0.25 mm² (24 AWG) + +0.2 m +BN + + + +RD + + + +OG + + + +YE + + + +GN + + + +BU + + + - -_F1:e--W1:w - - - +_F1:e--W1:w1:w + + + - -_F2 - - Crimp ferrule   -   - +_F2 + + Crimp ferrule   +   + - -_F2:e--W1:w - - - +_F2:e--W1:w2:w + + + - -_F3 - - Crimp ferrule   -   - +_F3 + + Crimp ferrule   +   + - -_F3:e--W1:w - - - +_F3:e--W1:w3:w + + + - -_F4 - - Crimp ferrule   -   - +_F4 + + Crimp ferrule   +   + - -_F4:e--W1:w - - - +_F4:e--W1:w4:w + + + - -_F5 - - Crimp ferrule   -   - +_F5 + + Crimp ferrule   +   + - -_F5:e--W1:w - - - +_F5:e--W1:w5:w + + + - -_F6 - - Crimp ferrule   -   - +_F6 + + Crimp ferrule   +   + - -_F6:e--W1:w - - - +_F6:e--W1:w6:w + + + - -_F7 - -   - Crimp ferrule   - +_F7 + +   + Crimp ferrule   + - -_F8 - -   - Crimp ferrule   - +_F8 + +   + Crimp ferrule   + - -_F9 - -   - Crimp ferrule   - +_F9 + +   + Crimp ferrule   + - -_F10 - -   - Crimp ferrule   - +_F10 + +   + Crimp ferrule   + - -_F11 - -   - Crimp ferrule   - +_F11 + +   + Crimp ferrule   + - -_F12 - -   - Crimp ferrule   - +_F12 + +   + Crimp ferrule   + - -W1:e--_F7:w - - - +W1:w6:e--_F7:w + + + - -W1:e--_F8:w - - - +W1:w5:e--_F8:w + + + - -W1:e--_F9:w - - - +W1:w4:e--_F9:w + + + - -W1:e--_F10:w - - - +W1:w3:e--_F10:w + + + - -W1:e--_F11:w - - - +W1:w2:e--_F11:w + + + - -W1:e--_F12:w - - - +W1:w1:e--_F12:w + + + diff --git a/examples/ex05.bom.tsv b/examples/ex05.bom.tsv index d80fedd..5ffcaed 100644 --- a/examples/ex05.bom.tsv +++ b/examples/ex05.bom.tsv @@ -1,6 +1,6 @@ Item Qty Unit Designators Connector, Molex KK 254, female, 4 pins 3 X1, X2, X3 -Wire, 0.25 mm², PK 0.4 m W1, W2 -Wire, 0.25 mm², TQ 0.4 m W1, W2 -Wire, 0.25 mm², VT 0.4 m W1, W2 -Wire, 0.25 mm², YE 0.4 m W1, W2 +Wire, 0.25 mm², PK 0.4 m W1, W2 +Wire, 0.25 mm², TQ 0.4 m W1, W2 +Wire, 0.25 mm², VT 0.4 m W1, W2 +Wire, 0.25 mm², YE 0.4 m W1, W2 diff --git a/examples/ex05.gv b/examples/ex05.gv index b44ced5..014df61 100644 --- a/examples/ex05.gv +++ b/examples/ex05.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|SCL|SDA}|{1|2|3|4}}"] @@ -19,7 +19,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p4l:w - W1 [label=<
W1
4x0.25 mm²0.2 m
 
X1:1PKX2:1
X1:2TQX2:2
X1:3YEX2:3
X1:4VTX2:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
4x0.25 mm²0.2 m
X1:1PKX2:1
X1:2TQX2:2
X1:3YEX2:3
X1:4VTX2:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#ff66cc:#000000"] X2:p1r:e -- W2:w1:w W2:w1:e -- X3:p1l:w @@ -32,5 +32,5 @@ graph { edge [color="#000000:#8000ff:#000000"] X2:p4r:e -- W2:w4:w W2:w4:e -- X3:p4l:w - W2 [label=<
W2
4x0.25 mm²0.2 m
 
X2:1PKX3:1
X2:2TQX3:2
X2:3YEX3:3
X2:4VTX3:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W2 [label=<
W2
4x0.25 mm²0.2 m
X2:1PKX3:1
X2:2TQX3:2
X2:3YEX3:3
X2:4VTX3:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/examples/ex05.html b/examples/ex05.html index f8fc416..bf49d39 100644 --- a/examples/ex05.html +++ b/examples/ex05.html @@ -1,295 +1,271 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² - -0.2 m -  -X1:1 -PK -X2:1 - - - -X1:2 -TQ -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -VT -X2:4 - - - -  +W1 + + +W1 + +4x + +0.25 mm² + +0.2 m +X1:1 +PK +X2:1 + + + +X1:2 +TQ +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +VT +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W2 - - -W2 - -4x - -0.25 mm² - -0.2 m -  -X2:1 -PK -X3:1 - - - -X2:2 -TQ -X3:2 - - - -X2:3 -YE -X3:3 - - - -X2:4 -VT -X3:4 - - - -  +W2 + + +W2 + +4x + +0.25 mm² + +0.2 m +X2:1 +PK +X3:1 + + + +X2:2 +TQ +X3:2 + + + +X2:3 +YE +X3:3 + + + +X2:4 +VT +X3:4 + + + - -X2:e--W2:w - - - +X2:p1r:e--W2:w1:w + + + - -X2:e--W2:w - - - +X2:p2r:e--W2:w2:w + + + - -X2:e--W2:w - - - +X2:p3r:e--W2:w3:w + + + - -X2:e--W2:w - - - +X2:p4r:e--W2:w4:w + + + - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W2:e--X3:w - - - +W2:w3:e--X3:p3l:w + + + - -W2:e--X3:w - - - +W2:w4:e--X3:p4l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins3X1, X2, X3
Wire, 0.25 mm², PK0.4mW1, W2
Wire, 0.25 mm², TQ0.4mW1, W2
Wire, 0.25 mm², VT0.4mW1, W2
Wire, 0.25 mm², YE0.4mW1, W2
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins3X1, X2, X3
Wire, 0.25 mm², PK0.4mW1, W2
Wire, 0.25 mm², TQ0.4mW1, W2
Wire, 0.25 mm², VT0.4mW1, W2
Wire, 0.25 mm², YE0.4mW1, W2
\ No newline at end of file diff --git a/examples/ex05.png b/examples/ex05.png index 4470666..f5c7b3d 100644 Binary files a/examples/ex05.png and b/examples/ex05.png differ diff --git a/examples/ex05.svg b/examples/ex05.svg index acc8178..a147307 100644 --- a/examples/ex05.svg +++ b/examples/ex05.svg @@ -1,294 +1,270 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² - -0.2 m -  -X1:1 -PK -X2:1 - - - -X1:2 -TQ -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -VT -X2:4 - - - -  +W1 + + +W1 + +4x + +0.25 mm² + +0.2 m +X1:1 +PK +X2:1 + + + +X1:2 +TQ +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +VT +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W2 - - -W2 - -4x - -0.25 mm² - -0.2 m -  -X2:1 -PK -X3:1 - - - -X2:2 -TQ -X3:2 - - - -X2:3 -YE -X3:3 - - - -X2:4 -VT -X3:4 - - - -  +W2 + + +W2 + +4x + +0.25 mm² + +0.2 m +X2:1 +PK +X3:1 + + + +X2:2 +TQ +X3:2 + + + +X2:3 +YE +X3:3 + + + +X2:4 +VT +X3:4 + + + - -X2:e--W2:w - - - +X2:p1r:e--W2:w1:w + + + - -X2:e--W2:w - - - +X2:p2r:e--W2:w2:w + + + - -X2:e--W2:w - - - +X2:p3r:e--W2:w3:w + + + - -X2:e--W2:w - - - +X2:p4r:e--W2:w4:w + + + - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W2:e--X3:w - - - +W2:w3:e--X3:p3l:w + + + - -W2:e--X3:w - - - +W2:w4:e--X3:p4l:w + + + diff --git a/examples/ex06.bom.tsv b/examples/ex06.bom.tsv index 7885f32..7af5446 100644 --- a/examples/ex06.bom.tsv +++ b/examples/ex06.bom.tsv @@ -1,6 +1,6 @@ Item Qty Unit Designators Connector, Molex KK 254, female, 4 pins 6 X1, X2, X3, X4, X5, X6 -Wire, 0.25 mm², PK 1.0 m W1, W2, W3, W4, W5 -Wire, 0.25 mm², TQ 1.0 m W1, W2, W3, W4, W5 -Wire, 0.25 mm², VT 1.0 m W1, W2, W3, W4, W5 -Wire, 0.25 mm², YE 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², PK 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², TQ 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², VT 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², YE 1.0 m W1, W2, W3, W4, W5 diff --git a/examples/ex06.gv b/examples/ex06.gv index 2779de2..eea72da 100644 --- a/examples/ex06.gv +++ b/examples/ex06.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|SCL|SDA}|{1|2|3|4}}"] @@ -22,7 +22,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p4l:w - W1 [label=<
W1
4x0.25 mm²0.2 m
 
X1:1PKX2:1
X1:2TQX2:2
X1:3YEX2:3
X1:4VTX2:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
4x0.25 mm²0.2 m
X1:1PKX2:1
X1:2TQX2:2
X1:3YEX2:3
X1:4VTX2:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#ff66cc:#000000"] X3:p1r:e -- W2:w1:w W2:w1:e -- X2:p1l:w @@ -35,7 +35,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X3:p4r:e -- W2:w4:w W2:w4:e -- X2:p4l:w - W2 [label=<
W2
4x0.25 mm²0.2 m
 
X3:1PKX2:1
X3:2TQX2:2
X3:3YEX2:3
X3:4VTX2:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W2 [label=<
W2
4x0.25 mm²0.2 m
X3:1PKX2:1
X3:2TQX2:2
X3:3YEX2:3
X3:4VTX2:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#ff66cc:#000000"] X3:p1r:e -- W3:w1:w W3:w1:e -- X4:p1l:w @@ -48,7 +48,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X3:p4r:e -- W3:w4:w W3:w4:e -- X4:p4l:w - W3 [label=<
W3
4x0.25 mm²0.2 m
 
X3:1PKX4:1
X3:2TQX4:2
X3:3YEX4:3
X3:4VTX4:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W3 [label=<
W3
4x0.25 mm²0.2 m
X3:1PKX4:1
X3:2TQX4:2
X3:3YEX4:3
X3:4VTX4:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#ff66cc:#000000"] X5:p1r:e -- W4:w1:w W4:w1:e -- X4:p1l:w @@ -61,7 +61,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X5:p4r:e -- W4:w4:w W4:w4:e -- X4:p4l:w - W4 [label=<
W4
4x0.25 mm²0.2 m
 
X5:1PKX4:1
X5:2TQX4:2
X5:3YEX4:3
X5:4VTX4:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W4 [label=<
W4
4x0.25 mm²0.2 m
X5:1PKX4:1
X5:2TQX4:2
X5:3YEX4:3
X5:4VTX4:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#ff66cc:#000000"] X5:p1r:e -- W5:w1:w W5:w1:e -- X6:p1l:w @@ -74,5 +74,5 @@ graph { edge [color="#000000:#8000ff:#000000"] X5:p4r:e -- W5:w4:w W5:w4:e -- X6:p4l:w - W5 [label=<
W5
4x0.25 mm²0.2 m
 
X5:1PKX6:1
X5:2TQX6:2
X5:3YEX6:3
X5:4VTX6:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W5 [label=<
W5
4x0.25 mm²0.2 m
X5:1PKX6:1
X5:2TQX6:2
X5:3YEX6:3
X5:4VTX6:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/examples/ex06.html b/examples/ex06.html index ea542d0..0bc996c 100644 --- a/examples/ex06.html +++ b/examples/ex06.html @@ -1,656 +1,596 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² - -0.2 m -  -X1:1 -PK -X2:1 - - - -X1:2 -TQ -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -VT -X2:4 - - - -  +W1 + + +W1 + +4x + +0.25 mm² + +0.2 m +X1:1 +PK +X2:1 + + + +X1:2 +TQ +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +VT +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W2 - - -W2 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -PK -X2:1 - - - -X3:2 -TQ -X2:2 - - - -X3:3 -YE -X2:3 - - - -X3:4 -VT -X2:4 - - - -  +W2 + + +W2 + +4x + +0.25 mm² + +0.2 m +X3:1 +PK +X2:1 + + + +X3:2 +TQ +X2:2 + + + +X3:3 +YE +X2:3 + + + +X3:4 +VT +X2:4 + + + - -X3:e--W2:w - - - +X3:p1r:e--W2:w1:w + + + - -X3:e--W2:w - - - +X3:p2r:e--W2:w2:w + + + - -X3:e--W2:w - - - +X3:p3r:e--W2:w3:w + + + - -X3:e--W2:w - - - +X3:p4r:e--W2:w4:w + + + - -W3 - - -W3 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -PK -X4:1 - - - -X3:2 -TQ -X4:2 - - - -X3:3 -YE -X4:3 - - - -X3:4 -VT -X4:4 - - - -  +W3 + + +W3 + +4x + +0.25 mm² + +0.2 m +X3:1 +PK +X4:1 + + + +X3:2 +TQ +X4:2 + + + +X3:3 +YE +X4:3 + + + +X3:4 +VT +X4:4 + + + - -X3:e--W3:w - - - +X3:p1r:e--W3:w1:w + + + - -X3:e--W3:w - - - +X3:p2r:e--W3:w2:w + + + - -X3:e--W3:w - - - +X3:p3r:e--W3:w3:w + + + - -X3:e--W3:w - - - +X3:p4r:e--W3:w4:w + + + - -X4 - -X4 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X4 + +X4 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X5 - -X5 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X5 + +X5 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W4 - - -W4 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -PK -X4:1 - - - -X5:2 -TQ -X4:2 - - - -X5:3 -YE -X4:3 - - - -X5:4 -VT -X4:4 - - - -  +W4 + + +W4 + +4x + +0.25 mm² + +0.2 m +X5:1 +PK +X4:1 + + + +X5:2 +TQ +X4:2 + + + +X5:3 +YE +X4:3 + + + +X5:4 +VT +X4:4 + + + - -X5:e--W4:w - - - +X5:p1r:e--W4:w1:w + + + - -X5:e--W4:w - - - +X5:p2r:e--W4:w2:w + + + - -X5:e--W4:w - - - +X5:p3r:e--W4:w3:w + + + - -X5:e--W4:w - - - +X5:p4r:e--W4:w4:w + + + - -W5 - - -W5 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -PK -X6:1 - - - -X5:2 -TQ -X6:2 - - - -X5:3 -YE -X6:3 - - - -X5:4 -VT -X6:4 - - - -  +W5 + + +W5 + +4x + +0.25 mm² + +0.2 m +X5:1 +PK +X6:1 + + + +X5:2 +TQ +X6:2 + + + +X5:3 +YE +X6:3 + + + +X5:4 +VT +X6:4 + + + - -X5:e--W5:w - - - +X5:p1r:e--W5:w1:w + + + - -X5:e--W5:w - - - +X5:p2r:e--W5:w2:w + + + - -X5:e--W5:w - - - +X5:p3r:e--W5:w3:w + + + - -X5:e--W5:w - - - +X5:p4r:e--W5:w4:w + + + - -X6 - -X6 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X6 + +X6 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X2:w - - - +W2:w1:e--X2:p1l:w + + + - -W2:e--X2:w - - - +W2:w2:e--X2:p2l:w + + + - -W2:e--X2:w - - - +W2:w3:e--X2:p3l:w + + + - -W2:e--X2:w - - - +W2:w4:e--X2:p4l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p2l:w + + + - -W3:e--X4:w - - - +W3:w3:e--X4:p3l:w + + + - -W3:e--X4:w - - - +W3:w4:e--X4:p4l:w + + + - -W4:e--X4:w - - - +W4:w1:e--X4:p1l:w + + + - -W4:e--X4:w - - - +W4:w2:e--X4:p2l:w + + + - -W4:e--X4:w - - - +W4:w3:e--X4:p3l:w + + + - -W4:e--X4:w - - - +W4:w4:e--X4:p4l:w + + + - -W5:e--X6:w - - - +W5:w1:e--X6:p1l:w + + + - -W5:e--X6:w - - - +W5:w2:e--X6:p2l:w + + + - -W5:e--X6:w - - - +W5:w3:e--X6:p3l:w + + + - -W5:e--X6:w - - - +W5:w4:e--X6:p4l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins6X1, X2, X3, X4, X5, X6
Wire, 0.25 mm², PK1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², TQ1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², VT1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², YE1.0mW1, W2, W3, W4, W5
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins6X1, X2, X3, X4, X5, X6
Wire, 0.25 mm², PK1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², TQ1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², VT1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², YE1.0mW1, W2, W3, W4, W5
\ No newline at end of file diff --git a/examples/ex06.png b/examples/ex06.png index ba0a2bf..b831ff9 100644 Binary files a/examples/ex06.png and b/examples/ex06.png differ diff --git a/examples/ex06.svg b/examples/ex06.svg index a0d0387..daf6fd3 100644 --- a/examples/ex06.svg +++ b/examples/ex06.svg @@ -1,655 +1,595 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² - -0.2 m -  -X1:1 -PK -X2:1 - - - -X1:2 -TQ -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -VT -X2:4 - - - -  +W1 + + +W1 + +4x + +0.25 mm² + +0.2 m +X1:1 +PK +X2:1 + + + +X1:2 +TQ +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +VT +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W2 - - -W2 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -PK -X2:1 - - - -X3:2 -TQ -X2:2 - - - -X3:3 -YE -X2:3 - - - -X3:4 -VT -X2:4 - - - -  +W2 + + +W2 + +4x + +0.25 mm² + +0.2 m +X3:1 +PK +X2:1 + + + +X3:2 +TQ +X2:2 + + + +X3:3 +YE +X2:3 + + + +X3:4 +VT +X2:4 + + + - -X3:e--W2:w - - - +X3:p1r:e--W2:w1:w + + + - -X3:e--W2:w - - - +X3:p2r:e--W2:w2:w + + + - -X3:e--W2:w - - - +X3:p3r:e--W2:w3:w + + + - -X3:e--W2:w - - - +X3:p4r:e--W2:w4:w + + + - -W3 - - -W3 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -PK -X4:1 - - - -X3:2 -TQ -X4:2 - - - -X3:3 -YE -X4:3 - - - -X3:4 -VT -X4:4 - - - -  +W3 + + +W3 + +4x + +0.25 mm² + +0.2 m +X3:1 +PK +X4:1 + + + +X3:2 +TQ +X4:2 + + + +X3:3 +YE +X4:3 + + + +X3:4 +VT +X4:4 + + + - -X3:e--W3:w - - - +X3:p1r:e--W3:w1:w + + + - -X3:e--W3:w - - - +X3:p2r:e--W3:w2:w + + + - -X3:e--W3:w - - - +X3:p3r:e--W3:w3:w + + + - -X3:e--W3:w - - - +X3:p4r:e--W3:w4:w + + + - -X4 - -X4 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X4 + +X4 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X5 - -X5 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X5 + +X5 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W4 - - -W4 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -PK -X4:1 - - - -X5:2 -TQ -X4:2 - - - -X5:3 -YE -X4:3 - - - -X5:4 -VT -X4:4 - - - -  +W4 + + +W4 + +4x + +0.25 mm² + +0.2 m +X5:1 +PK +X4:1 + + + +X5:2 +TQ +X4:2 + + + +X5:3 +YE +X4:3 + + + +X5:4 +VT +X4:4 + + + - -X5:e--W4:w - - - +X5:p1r:e--W4:w1:w + + + - -X5:e--W4:w - - - +X5:p2r:e--W4:w2:w + + + - -X5:e--W4:w - - - +X5:p3r:e--W4:w3:w + + + - -X5:e--W4:w - - - +X5:p4r:e--W4:w4:w + + + - -W5 - - -W5 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -PK -X6:1 - - - -X5:2 -TQ -X6:2 - - - -X5:3 -YE -X6:3 - - - -X5:4 -VT -X6:4 - - - -  +W5 + + +W5 + +4x + +0.25 mm² + +0.2 m +X5:1 +PK +X6:1 + + + +X5:2 +TQ +X6:2 + + + +X5:3 +YE +X6:3 + + + +X5:4 +VT +X6:4 + + + - -X5:e--W5:w - - - +X5:p1r:e--W5:w1:w + + + - -X5:e--W5:w - - - +X5:p2r:e--W5:w2:w + + + - -X5:e--W5:w - - - +X5:p3r:e--W5:w3:w + + + - -X5:e--W5:w - - - +X5:p4r:e--W5:w4:w + + + - -X6 - -X6 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X6 + +X6 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X2:w - - - +W2:w1:e--X2:p1l:w + + + - -W2:e--X2:w - - - +W2:w2:e--X2:p2l:w + + + - -W2:e--X2:w - - - +W2:w3:e--X2:p3l:w + + + - -W2:e--X2:w - - - +W2:w4:e--X2:p4l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p2l:w + + + - -W3:e--X4:w - - - +W3:w3:e--X4:p3l:w + + + - -W3:e--X4:w - - - +W3:w4:e--X4:p4l:w + + + - -W4:e--X4:w - - - +W4:w1:e--X4:p1l:w + + + - -W4:e--X4:w - - - +W4:w2:e--X4:p2l:w + + + - -W4:e--X4:w - - - +W4:w3:e--X4:p3l:w + + + - -W4:e--X4:w - - - +W4:w4:e--X4:p4l:w + + + - -W5:e--X6:w - - - +W5:w1:e--X6:p1l:w + + + - -W5:e--X6:w - - - +W5:w2:e--X6:p2l:w + + + - -W5:e--X6:w - - - +W5:w3:e--X6:p3l:w + + + - -W5:e--X6:w - - - +W5:w4:e--X6:p4l:w + + + diff --git a/examples/ex07.gv b/examples/ex07.gv index 2a10a84..cb5c01c 100644 --- a/examples/ex07.gv +++ b/examples/ex07.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|{TE 776164-1|female|35-pin}|{{5|6}}|Unconnected pins are not shown"] @@ -12,5 +12,5 @@ graph { edge [color="#000000:#00ff00:#000000"] X1:p6r:e -- C1:w2:w C1:w2:e -- X2:p2l:w - C1 [label=<
C1
2x20 AWG1 m
 
X1:5YEX2:7
X1:6GNX2:2
 
> fillcolor=white margin=0 shape=box style=""] + C1 [label=<
C1
2x20 AWG1 m
X1:5YEX2:7
X1:6GNX2:2
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/ex07.html b/examples/ex07.html index c206174..c6d4b7a 100644 --- a/examples/ex07.html +++ b/examples/ex07.html @@ -1,103 +1,95 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -TE 776164-1 - -female - -35-pin - -5 - -6 - -Unconnected pins are not shown +X1 + +X1 + +TE 776164-1 + +female + +35-pin + +5 + +6 + +Unconnected pins are not shown - -C1 - - -C1 - -2x - -20 AWG - -1 m -  -X1:5 -YE -X2:7 - - - -X1:6 -GN -X2:2 - - - -  +C1 + + +C1 + +2x + +20 AWG + +1 m +X1:5 +YE +X2:7 + + + +X1:6 +GN +X2:2 + + + - -X1:e--C1:w - - - +X1:p5r:e--C1:w1:w + + + - -X1:e--C1:w - - - +X1:p6r:e--C1:w2:w + + + - -X2 - -X2 - -D-Sub - -female - -9-pin - -2 - -7 - -Unconnected pins are not shown +X2 + +X2 + +D-Sub + +female + +9-pin + +2 + +7 + +Unconnected pins are not shown - -C1:e--X2:w - - - +C1:w1:e--X2:p7l:w + + + - -C1:e--X2:w - - - +C1:w2:e--X2:p2l:w + + + diff --git a/examples/ex07.png b/examples/ex07.png index 2fc2ce6..db1282c 100644 Binary files a/examples/ex07.png and b/examples/ex07.png differ diff --git a/examples/ex07.svg b/examples/ex07.svg index a89b0a4..48ccf23 100644 --- a/examples/ex07.svg +++ b/examples/ex07.svg @@ -1,103 +1,95 @@ - - - - - + + + +%3 + - -X1 - -X1 - -TE 776164-1 - -female - -35-pin - -5 - -6 - -Unconnected pins are not shown +X1 + +X1 + +TE 776164-1 + +female + +35-pin + +5 + +6 + +Unconnected pins are not shown - -C1 - - -C1 - -2x - -20 AWG - -1 m -  -X1:5 -YE -X2:7 - - - -X1:6 -GN -X2:2 - - - -  +C1 + + +C1 + +2x + +20 AWG + +1 m +X1:5 +YE +X2:7 + + + +X1:6 +GN +X2:2 + + + - -X1:e--C1:w - - - +X1:p5r:e--C1:w1:w + + + - -X1:e--C1:w - - - +X1:p6r:e--C1:w2:w + + + - -X2 - -X2 - -D-Sub - -female - -9-pin - -2 - -7 - -Unconnected pins are not shown +X2 + +X2 + +D-Sub + +female + +9-pin + +2 + +7 + +Unconnected pins are not shown - -C1:e--X2:w - - - +C1:w1:e--X2:p7l:w + + + - -C1:e--X2:w - - - +C1:w2:e--X2:p2l:w + + + diff --git a/examples/ex08.gv b/examples/ex08.gv index 2e189bb..badf318 100644 --- a/examples/ex08.gv +++ b/examples/ex08.gv @@ -1,17 +1,17 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" fontname=arial nodesep=0.33 rankdir=LR ranksep=2] node [fillcolor=white fontname=arial shape=record style=filled] edge [fontname=arial style=bold] Key [label="Key|{Phone Connector|male 3.5}|{{Dot|Dash|Ground}|{T|R|S}}"] edge [color="#000000:#ffffff:#000000"] Key:pSr:e -- W1:w1:w - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] Key:pRr:e -- W1:w2:w edge [color="#000000:#00ff00:#000000"] Key:pTr:e -- W1:w3:w - edge [color="#000000"] + edge [color="#aaaaaa:#84878c"] Key:pSr:e -- W1:ws:w - W1 [label=<
W1
3x24 AWG+ S0.2 m
 
Key:SWH
Key:RBN
Key:TGN
 
Key:SShield
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
3x24 AWG+ S0.2 m
Key:SWH
Key:RBN
Key:TGN
Key:SShield
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/ex08.html b/examples/ex08.html index 854d239..24c9210 100644 --- a/examples/ex08.html +++ b/examples/ex08.html @@ -1,96 +1,96 @@

Diagram

- - - - - + + + +%3 + - -Key - -Key - -Phone Connector - -male 3.5 - -Dot - -Dash - -Ground - -T - -R - -S +Key + +Key + +Phone Connector + +male 3.5 + +Dot + +Dash + +Ground + +T + +R + +S - -W1 - - -W1 - -3x - -24 AWG - -+ S - -0.2 m -  -Key:S -WH - - - -Key:R -BN - - - -Key:T -GN - - - -  -Key:S -Shield - -  +W1 + + +W1 + +3x + +24 AWG + ++ S + +0.2 m +Key:S +WH + + + +Key:R +BN + + + +Key:T +GN + + + +Key:S +Shield + + + + + + + + - -Key:e--W1:w - - - +Key:pSr:e--W1:w1:w + + + - -Key:e--W1:w - - - +Key:pRr:e--W1:w2:w + + + - -Key:e--W1:w - - - +Key:pTr:e--W1:w3:w + + + - -Key:e--W1:w - +Key:pSr:e--W1:ws:w + + diff --git a/examples/ex08.png b/examples/ex08.png index 7767320..0b8b192 100644 Binary files a/examples/ex08.png and b/examples/ex08.png differ diff --git a/examples/ex08.svg b/examples/ex08.svg index 630f541..a30faae 100644 --- a/examples/ex08.svg +++ b/examples/ex08.svg @@ -1,96 +1,96 @@ - - - - - + + + +%3 + - -Key - -Key - -Phone Connector - -male 3.5 - -Dot - -Dash - -Ground - -T - -R - -S +Key + +Key + +Phone Connector + +male 3.5 + +Dot + +Dash + +Ground + +T + +R + +S - -W1 - - -W1 - -3x - -24 AWG - -+ S - -0.2 m -  -Key:S -WH - - - -Key:R -BN - - - -Key:T -GN - - - -  -Key:S -Shield - -  +W1 + + +W1 + +3x + +24 AWG + ++ S + +0.2 m +Key:S +WH + + + +Key:R +BN + + + +Key:T +GN + + + +Key:S +Shield + + + + + + + + - -Key:e--W1:w - - - +Key:pSr:e--W1:w1:w + + + - -Key:e--W1:w - - - +Key:pRr:e--W1:w2:w + + + - -Key:e--W1:w - - - +Key:pTr:e--W1:w3:w + + + - -Key:e--W1:w - +Key:pSr:e--W1:ws:w + + diff --git a/examples/ex09.bom.tsv b/examples/ex09.bom.tsv index b07a154..7be2562 100644 --- a/examples/ex09.bom.tsv +++ b/examples/ex09.bom.tsv @@ -1,4 +1,4 @@ Item Qty Unit Designators Connector, D-Sub, male, 25 pins 1 X1 Connector, F48, female, 48 pins 1 X2 -Cable, 12 x 0.25 mm² shielded 0.2 m W1 +Cable, 12 x 0.25 mm² shielded 0.2 m W1 diff --git a/examples/ex09.gv b/examples/ex09.gv index 52df78a..fbc5793 100644 --- a/examples/ex09.gv +++ b/examples/ex09.gv @@ -1,12 +1,12 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|male|25-pin}|{{SENSE_P_1|SENSE_N_1|SENSE_P_2|SENSE_N_2|SENSE_P_3|SENSE_N_3|SENSE_P_4|SENSE_N_4|SENSE_P_5|SENSE_N_5|SENSE_P_6|SENSE_N_6|GND}|{1|14|3|16|5|18|7|20|9|22|11|24|13}}"] X2 [label="X2|{F48|female|48-pin}|{{z2|b2|d2|z4|b4|d4|z6|b6|d6|z8|b8|d8|z10|b10|d10|z12|b12|d12|z14|b14|d14|z16|b16|d16|z18|b18|d18|z20|b20|d20|z22|b22|d22|z24|b24|d24|z26|b26|d26|z28|b28|d28|z30|b30|d30|z32|b32|d32}}"] - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] X1:p1r:e -- W1:w2:w W1:w2:e -- X2:pd4l:w edge [color="#000000:#ffffff:#000000"] @@ -36,13 +36,13 @@ graph { edge [color="#000000:#000000:#000000"] X1:p22r:e -- W1:w9:w W1:w9:e -- X2:pz24l:w - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#ff0000:#0066ff:#ff0000:#000000"] X1:p11r:e -- W1:w12:w W1:w12:e -- X2:pd32l:w - edge [color="#000000:#ffffff:#000000"] + edge [color="#000000:#999999:#ff66cc:#999999:#000000"] X1:p24r:e -- W1:w11:w W1:w11:e -- X2:pz30l:w - edge [color="#000000"] + edge [color="#aaaaaa:#84878c"] X1:p13r:e -- W1:ws:w - W1 [label=<
W1
12x0.25 mm²+ S0.2 m
 
X1:14WHX2:z2
X1:1BNX2:d4
X1:16GNX2:z8
X1:3YEX2:d10
X1:18GYX2:z14
X1:5PKX2:d16
X1:20BUX2:z18
X1:7RDX2:d20
X1:22BKX2:z24
X1:9VTX2:d26
X1:24WHX2:z30
X1:11BNX2:d32
 
X1:13Shield
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
12x0.25 mm²+ S0.2 m
X1:14WHX2:z2
X1:1BNX2:d4
X1:16GNX2:z8
X1:3YEX2:d10
X1:18GYX2:z14
X1:5PKX2:d16
X1:20BUX2:z18
X1:7RDX2:d20
X1:22BKX2:z24
X1:9VTX2:d26
X1:24GYPKX2:z30
X1:11RDBUX2:d32
X1:13Shield
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/ex09.html b/examples/ex09.html index ccce9d5..78e8369 100644 --- a/examples/ex09.html +++ b/examples/ex09.html @@ -1,451 +1,441 @@

Diagram

- - - + + - +%3 + - -X1 - -X1 - -D-Sub - -male - -25-pin - -SENSE_P_1 - -SENSE_N_1 - -SENSE_P_2 - -SENSE_N_2 - -SENSE_P_3 - -SENSE_N_3 - -SENSE_P_4 - -SENSE_N_4 - -SENSE_P_5 - -SENSE_N_5 - -SENSE_P_6 - -SENSE_N_6 - -GND - -1 - -14 - -3 - -16 - -5 - -18 - -7 - -20 - -9 - -22 - -11 - -24 - -13 +X1 + +X1 + +D-Sub + +male + +25-pin + +SENSE_P_1 + +SENSE_N_1 + +SENSE_P_2 + +SENSE_N_2 + +SENSE_P_3 + +SENSE_N_3 + +SENSE_P_4 + +SENSE_N_4 + +SENSE_P_5 + +SENSE_N_5 + +SENSE_P_6 + +SENSE_N_6 + +GND + +1 + +14 + +3 + +16 + +5 + +18 + +7 + +20 + +9 + +22 + +11 + +24 + +13 - -W1 - - -W1 - -12x - -0.25 mm² - -+ S - -0.2 m -  -X1:14 -WH -X2:z2 - - - -X1:1 -BN -X2:d4 - - - -X1:16 -GN -X2:z8 - - - -X1:3 -YE -X2:d10 - - - -X1:18 -GY -X2:z14 - - - -X1:5 -PK -X2:d16 - - - -X1:20 -BU -X2:z18 - - - -X1:7 -RD -X2:d20 - - - -X1:22 -BK -X2:z24 - - - -X1:9 -VT -X2:d26 - - - -X1:24 -WH -X2:z30 - - - -X1:11 -BN -X2:d32 - - - -  -X1:13 -Shield - -  +W1 + + +W1 + +12x + +0.25 mm² + ++ S + +0.2 m +X1:14 +WH +X2:z2 + + + +X1:1 +BN +X2:d4 + + + +X1:16 +GN +X2:z8 + + + +X1:3 +YE +X2:d10 + + + +X1:18 +GY +X2:z14 + + + +X1:5 +PK +X2:d16 + + + +X1:20 +BU +X2:z18 + + + +X1:7 +RD +X2:d20 + + + +X1:22 +BK +X2:z24 + + + +X1:9 +VT +X2:d26 + + + +X1:24 +GYPK +X2:z30 + + + + + +X1:11 +RDBU +X2:d32 + + + + + +X1:13 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p14r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w4:w + + + - -X1:e--W1:w - - - +X1:p16r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p5r:e--W1:w6:w + + + - -X1:e--W1:w - - - +X1:p18r:e--W1:w5:w + + + - -X1:e--W1:w - - - +X1:p7r:e--W1:w8:w + + + - -X1:e--W1:w - - - +X1:p20r:e--W1:w7:w + + + - -X1:e--W1:w - - - +X1:p9r:e--W1:w10:w + + + - -X1:e--W1:w - - - +X1:p22r:e--W1:w9:w + + + - -X1:e--W1:w - - - +X1:p11r:e--W1:w12:w + + + + + - -X1:e--W1:w - - - +X1:p24r:e--W1:w11:w + + + + + - -X1:e--W1:w - +X1:p13r:e--W1:ws:w + + - -X2 - -X2 - -F48 - -female - -48-pin - -z2 - -b2 - -d2 - -z4 - -b4 - -d4 - -z6 - -b6 - -d6 - -z8 - -b8 - -d8 - -z10 - -b10 - -d10 - -z12 - -b12 - -d12 - -z14 - -b14 - -d14 - -z16 - -b16 - -d16 - -z18 - -b18 - -d18 - -z20 - -b20 - -d20 - -z22 - -b22 - -d22 - -z24 - -b24 - -d24 - -z26 - -b26 - -d26 - -z28 - -b28 - -d28 - -z30 - -b30 - -d30 - -z32 - -b32 - -d32 +X2 + +X2 + +F48 + +female + +48-pin + +z2 + +b2 + +d2 + +z4 + +b4 + +d4 + +z6 + +b6 + +d6 + +z8 + +b8 + +d8 + +z10 + +b10 + +d10 + +z12 + +b12 + +d12 + +z14 + +b14 + +d14 + +z16 + +b16 + +d16 + +z18 + +b18 + +d18 + +z20 + +b20 + +d20 + +z22 + +b22 + +d22 + +z24 + +b24 + +d24 + +z26 + +b26 + +d26 + +z28 + +b28 + +d28 + +z30 + +b30 + +d30 + +z32 + +b32 + +d32 - -W1:e--X2:w - - - +W1:w2:e--X2:pd4l:w + + + - -W1:e--X2:w - - - +W1:w1:e--X2:pz2l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:pd10l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:pz8l:w + + + - -W1:e--X2:w - - - +W1:w6:e--X2:pd16l:w + + + - -W1:e--X2:w - - - +W1:w5:e--X2:pz14l:w + + + - -W1:e--X2:w - - - +W1:w8:e--X2:pd20l:w + + + - -W1:e--X2:w - - - +W1:w7:e--X2:pz18l:w + + + - -W1:e--X2:w - - - +W1:w10:e--X2:pd26l:w + + + - -W1:e--X2:w - - - +W1:w9:e--X2:pz24l:w + + + - -W1:e--X2:w - - - +W1:w12:e--X2:pd32l:w + + + + + - -W1:e--X2:w - - - +W1:w11:e--X2:pz30l:w + + + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, D-Sub, male, 25 pins1X1
Connector, F48, female, 48 pins1X2
Cable, 12 x 0.25 mm² shielded0.2mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, D-Sub, male, 25 pins1X1
Connector, F48, female, 48 pins1X2
Cable, 12 x 0.25 mm² shielded0.2mW1
\ No newline at end of file diff --git a/examples/ex09.png b/examples/ex09.png index 80c7662..11b98ee 100644 Binary files a/examples/ex09.png and b/examples/ex09.png differ diff --git a/examples/ex09.svg b/examples/ex09.svg index 29ba2bb..bf0a7c8 100644 --- a/examples/ex09.svg +++ b/examples/ex09.svg @@ -1,450 +1,440 @@ - - - + + - +%3 + - -X1 - -X1 - -D-Sub - -male - -25-pin - -SENSE_P_1 - -SENSE_N_1 - -SENSE_P_2 - -SENSE_N_2 - -SENSE_P_3 - -SENSE_N_3 - -SENSE_P_4 - -SENSE_N_4 - -SENSE_P_5 - -SENSE_N_5 - -SENSE_P_6 - -SENSE_N_6 - -GND - -1 - -14 - -3 - -16 - -5 - -18 - -7 - -20 - -9 - -22 - -11 - -24 - -13 +X1 + +X1 + +D-Sub + +male + +25-pin + +SENSE_P_1 + +SENSE_N_1 + +SENSE_P_2 + +SENSE_N_2 + +SENSE_P_3 + +SENSE_N_3 + +SENSE_P_4 + +SENSE_N_4 + +SENSE_P_5 + +SENSE_N_5 + +SENSE_P_6 + +SENSE_N_6 + +GND + +1 + +14 + +3 + +16 + +5 + +18 + +7 + +20 + +9 + +22 + +11 + +24 + +13 - -W1 - - -W1 - -12x - -0.25 mm² - -+ S - -0.2 m -  -X1:14 -WH -X2:z2 - - - -X1:1 -BN -X2:d4 - - - -X1:16 -GN -X2:z8 - - - -X1:3 -YE -X2:d10 - - - -X1:18 -GY -X2:z14 - - - -X1:5 -PK -X2:d16 - - - -X1:20 -BU -X2:z18 - - - -X1:7 -RD -X2:d20 - - - -X1:22 -BK -X2:z24 - - - -X1:9 -VT -X2:d26 - - - -X1:24 -WH -X2:z30 - - - -X1:11 -BN -X2:d32 - - - -  -X1:13 -Shield - -  +W1 + + +W1 + +12x + +0.25 mm² + ++ S + +0.2 m +X1:14 +WH +X2:z2 + + + +X1:1 +BN +X2:d4 + + + +X1:16 +GN +X2:z8 + + + +X1:3 +YE +X2:d10 + + + +X1:18 +GY +X2:z14 + + + +X1:5 +PK +X2:d16 + + + +X1:20 +BU +X2:z18 + + + +X1:7 +RD +X2:d20 + + + +X1:22 +BK +X2:z24 + + + +X1:9 +VT +X2:d26 + + + +X1:24 +GYPK +X2:z30 + + + + + +X1:11 +RDBU +X2:d32 + + + + + +X1:13 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p14r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w4:w + + + - -X1:e--W1:w - - - +X1:p16r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p5r:e--W1:w6:w + + + - -X1:e--W1:w - - - +X1:p18r:e--W1:w5:w + + + - -X1:e--W1:w - - - +X1:p7r:e--W1:w8:w + + + - -X1:e--W1:w - - - +X1:p20r:e--W1:w7:w + + + - -X1:e--W1:w - - - +X1:p9r:e--W1:w10:w + + + - -X1:e--W1:w - - - +X1:p22r:e--W1:w9:w + + + - -X1:e--W1:w - - - +X1:p11r:e--W1:w12:w + + + + + - -X1:e--W1:w - - - +X1:p24r:e--W1:w11:w + + + + + - -X1:e--W1:w - +X1:p13r:e--W1:ws:w + + - -X2 - -X2 - -F48 - -female - -48-pin - -z2 - -b2 - -d2 - -z4 - -b4 - -d4 - -z6 - -b6 - -d6 - -z8 - -b8 - -d8 - -z10 - -b10 - -d10 - -z12 - -b12 - -d12 - -z14 - -b14 - -d14 - -z16 - -b16 - -d16 - -z18 - -b18 - -d18 - -z20 - -b20 - -d20 - -z22 - -b22 - -d22 - -z24 - -b24 - -d24 - -z26 - -b26 - -d26 - -z28 - -b28 - -d28 - -z30 - -b30 - -d30 - -z32 - -b32 - -d32 +X2 + +X2 + +F48 + +female + +48-pin + +z2 + +b2 + +d2 + +z4 + +b4 + +d4 + +z6 + +b6 + +d6 + +z8 + +b8 + +d8 + +z10 + +b10 + +d10 + +z12 + +b12 + +d12 + +z14 + +b14 + +d14 + +z16 + +b16 + +d16 + +z18 + +b18 + +d18 + +z20 + +b20 + +d20 + +z22 + +b22 + +d22 + +z24 + +b24 + +d24 + +z26 + +b26 + +d26 + +z28 + +b28 + +d28 + +z30 + +b30 + +d30 + +z32 + +b32 + +d32 - -W1:e--X2:w - - - +W1:w2:e--X2:pd4l:w + + + - -W1:e--X2:w - - - +W1:w1:e--X2:pz2l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:pd10l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:pz8l:w + + + - -W1:e--X2:w - - - +W1:w6:e--X2:pd16l:w + + + - -W1:e--X2:w - - - +W1:w5:e--X2:pz14l:w + + + - -W1:e--X2:w - - - +W1:w8:e--X2:pd20l:w + + + - -W1:e--X2:w - - - +W1:w7:e--X2:pz18l:w + + + - -W1:e--X2:w - - - +W1:w10:e--X2:pd26l:w + + + - -W1:e--X2:w - - - +W1:w9:e--X2:pz24l:w + + + - -W1:e--X2:w - - - +W1:w12:e--X2:pd32l:w + + + + + - -W1:e--X2:w - - - +W1:w11:e--X2:pz30l:w + + + + + diff --git a/examples/ex10.gv b/examples/ex10.gv index 5dafeea..97e578f 100644 --- a/examples/ex10.gv +++ b/examples/ex10.gv @@ -30,5 +30,5 @@ graph { edge [color="#000000:#a52a2a:#000000"] X1:p8r:e -- W1:w8:w W1:w8:e -- X2:p5l:w - W1 [label=<
W1
8x24 AWG1 m
X1:1WHGNX2:3
X1:2GNX2:6
X1:3WHOGX2:1
X1:4BUX2:7
X1:5WHBUX2:8
X1:6OGX2:2
X1:7WHBNX2:4
X1:8BNX2:5
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
8x24 AWG1 m
X1:1WHGNX2:3
X1:2GNX2:6
X1:3WHOGX2:1
X1:4BUX2:7
X1:5WHBUX2:8
X1:6OGX2:2
X1:7WHBNX2:4
X1:8BNX2:5
> fillcolor=white margin=0 shape=box style=""] } diff --git a/examples/ex10.html b/examples/ex10.html index 78ba408..acf9fd4 100644 --- a/examples/ex10.html +++ b/examples/ex10.html @@ -4,276 +4,276 @@ - - + + %3 - + X1 - -X1 - -Stewart Connector SS-37000-002 - -male - -8-pin - -DA+ - -DA- - -DB+ - -DC+ - -DC- - -DB- - -DD+ - -DD- - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 + +X1 + +Stewart Connector SS-37000-002 + +male + +8-pin + +DA+ + +DA- + +DB+ + +DC+ + +DC- + +DB- + +DD+ + +DD- + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 W1 - - -W1 - -8x - -24 AWG - -1 m -X1:1 -WHGN -X2:3 - - - - - -X1:2 -GN -X2:6 - - - -X1:3 -WHOG -X2:1 - - - - - -X1:4 -BU -X2:7 - - - -X1:5 -WHBU -X2:8 - - - - - -X1:6 -OG -X2:2 - - - -X1:7 -WHBN -X2:4 - - - - - -X1:8 -BN -X2:5 - - - + + +W1 + +8x + +24 AWG + +1 m +X1:1 +WHGN +X2:3 + + + + + +X1:2 +GN +X2:6 + + + +X1:3 +WHOG +X2:1 + + + + + +X1:4 +BU +X2:7 + + + +X1:5 +WHBU +X2:8 + + + + + +X1:6 +OG +X2:2 + + + +X1:7 +WHBN +X2:4 + + + + + +X1:8 +BN +X2:5 + + + X1:p1r:e--W1:w1:w - - - - - + + + + + X1:p2r:e--W1:w2:w - - - + + + X1:p3r:e--W1:w3:w - - - - - + + + + + X1:p4r:e--W1:w4:w - - - + + + X1:p5r:e--W1:w5:w - - - - - + + + + + X1:p6r:e--W1:w6:w - - - + + + X1:p7r:e--W1:w7:w - - - - - + + + + + X1:p8r:e--W1:w8:w - - - + + + X2 - -X2 - -Stewart Connector SS-37000-002 - -male - -8-pin - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 - -DB+ - -DB- - -DA+ - -DD+ - -DD- - -DA- - -DC+ - -DC- + +X2 + +Stewart Connector SS-37000-002 + +male + +8-pin + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + +DB+ + +DB- + +DA+ + +DD+ + +DD- + +DA- + +DC+ + +DC- W1:w1:e--X2:p3l:w - - - - - + + + + + W1:w2:e--X2:p6l:w - - - + + + W1:w3:e--X2:p1l:w - - - - - + + + + + W1:w4:e--X2:p7l:w - - - + + + W1:w5:e--X2:p8l:w - - - - - + + + + + W1:w6:e--X2:p2l:w - - - + + + W1:w7:e--X2:p4l:w - - - - - + + + + + W1:w8:e--X2:p5l:w - - - + + + diff --git a/examples/ex10.png b/examples/ex10.png index 4d6b2b3..35b76ac 100644 Binary files a/examples/ex10.png and b/examples/ex10.png differ diff --git a/examples/ex10.svg b/examples/ex10.svg index c7afe09..c4c5d85 100644 --- a/examples/ex10.svg +++ b/examples/ex10.svg @@ -4,276 +4,276 @@ - - + + %3 - + X1 - -X1 - -Stewart Connector SS-37000-002 - -male - -8-pin - -DA+ - -DA- - -DB+ - -DC+ - -DC- - -DB- - -DD+ - -DD- - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 + +X1 + +Stewart Connector SS-37000-002 + +male + +8-pin + +DA+ + +DA- + +DB+ + +DC+ + +DC- + +DB- + +DD+ + +DD- + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 W1 - - -W1 - -8x - -24 AWG - -1 m -X1:1 -WHGN -X2:3 - - - - - -X1:2 -GN -X2:6 - - - -X1:3 -WHOG -X2:1 - - - - - -X1:4 -BU -X2:7 - - - -X1:5 -WHBU -X2:8 - - - - - -X1:6 -OG -X2:2 - - - -X1:7 -WHBN -X2:4 - - - - - -X1:8 -BN -X2:5 - - - + + +W1 + +8x + +24 AWG + +1 m +X1:1 +WHGN +X2:3 + + + + + +X1:2 +GN +X2:6 + + + +X1:3 +WHOG +X2:1 + + + + + +X1:4 +BU +X2:7 + + + +X1:5 +WHBU +X2:8 + + + + + +X1:6 +OG +X2:2 + + + +X1:7 +WHBN +X2:4 + + + + + +X1:8 +BN +X2:5 + + + X1:p1r:e--W1:w1:w - - - - - + + + + + X1:p2r:e--W1:w2:w - - - + + + X1:p3r:e--W1:w3:w - - - - - + + + + + X1:p4r:e--W1:w4:w - - - + + + X1:p5r:e--W1:w5:w - - - - - + + + + + X1:p6r:e--W1:w6:w - - - + + + X1:p7r:e--W1:w7:w - - - - - + + + + + X1:p8r:e--W1:w8:w - - - + + + X2 - -X2 - -Stewart Connector SS-37000-002 - -male - -8-pin - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 - -DB+ - -DB- - -DA+ - -DD+ - -DD- - -DA- - -DC+ - -DC- + +X2 + +Stewart Connector SS-37000-002 + +male + +8-pin + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + +DB+ + +DB- + +DA+ + +DD+ + +DD- + +DA- + +DC+ + +DC- W1:w1:e--X2:p3l:w - - - - - + + + + + W1:w2:e--X2:p6l:w - - - + + + W1:w3:e--X2:p1l:w - - - - - + + + + + W1:w4:e--X2:p7l:w - - - + + + W1:w5:e--X2:p8l:w - - - - - + + + + + W1:w6:e--X2:p2l:w - - - + + + W1:w7:e--X2:p4l:w - - - - - + + + + + W1:w8:e--X2:p5l:w - - - + + + diff --git a/examples/readme.md b/examples/readme.md index 3aad0e9..425ee22 100644 --- a/examples/readme.md +++ b/examples/readme.md @@ -34,10 +34,6 @@ [Source](ex06.yml) - [Bill of Materials](ex06.bom.tsv) -## Example 07 -![](ex07.png) - -[Source](ex07.yml) - [Bill of Materials](ex07.bom.tsv) ## Example 07 ![](ex07.png) @@ -57,3 +53,9 @@ [Source](ex09.yml) - [Bill of Materials](ex09.bom.tsv) +## Example 10 +![](ex10.png) + +[Source](ex10.yml) - [Bill of Materials](ex10.bom.tsv) + + diff --git a/src/wireviz.old b/src/wireviz.old deleted file mode 100644 index 5557ddd..0000000 --- a/src/wireviz.old +++ /dev/null @@ -1,612 +0,0 @@ -#!/usr/bin/env python3 -import os -from dataclasses import dataclass, field -from typing import Any, List -from collections import Counter -import yaml -from graphviz import Graph - -import wv_colors -from wv_helper import nested, int2tuple, awg_equiv, flatten2d, tuplelist2tsv - -class Harness: - - def __init__(self): - self.color_mode = 'SHORT' - self.connectors = {} - self.cables = {} - - def add_connector(self, name, *args, **kwargs): - self.connectors[name] = Connector(name, *args, **kwargs) - - def add_cable(self, name, *args, **kwargs): - self.cables[name] = Cable(name, *args, **kwargs) - - def loop(self, connector_name, from_pin, to_pin): - self.connectors[connector_name].loop(from_pin, to_pin) - - def connect(self, from_name, from_pin, via_name, via_pin, to_name, to_pin): - self.cables[via_name].connect(from_name, from_pin, via_pin, to_name, to_pin) - - def create_graph(self): - dot = Graph() - dot.body.append('// Graph generated by WireViz') - dot.body.append('// https://github.com/formatc1702/WireViz') - font = 'arial' - bgcolor = wv_colors.default_bknd_color - dot.attr('graph', rankdir='LR', - ranksep='2', - bgcolor=bgcolor, - nodesep='0.33', - fontname=font) - dot.attr('node', shape='record', - style='filled', - fillcolor='white', - fontname=font) - dot.attr('edge', style='bold', - fontname=font) - - # prepare ports on connectors depending on which side they will connect - for k, c in self.cables.items(): - for x in c.connections: - if x.from_port is not None: # connect to left - self.connectors[x.from_name].ports_right = True - if x.to_port is not None: # connect to right - self.connectors[x.to_name].ports_left = True - - for k, n in self.connectors.items(): - if n.category == 'ferrule': - infostring = '{type}{subtype} {color}'.format(type=n.type, - subtype=', {}'.format(n.subtype) if n.subtype else '', - color=wv_colors.translate_color(n.color, self.color_mode) if n.color else '') - infostring_l = infostring if n.ports_right else '' - infostring_r = infostring if n.ports_left else '' - - dot.node(k, shape='none', - style='filled', - margin='0', - orientation = '0' if n.ports_left else '180', - label='''< - - - - {colorbar} - -
{infostring_l} {infostring_r}
- - - >'''.format(infostring_l=infostring_l, - infostring_r=infostring_r, - colorbar=''.format(wv_colors.translate_color(n.color, 'HEX')) if n.color else '')) - - else: # not a ferrule - # a = attributes - a = [n.type, - n.subtype, - '{}-pin'.format(len(n.pinout)) if n.show_pincount else ''] - # p = pinout - p = [[],[],[]] - p[1] = list(n.pinout) - for i, x in enumerate(n.pinout, 1): - if n.ports_left: - p[0].append('{portno}'.format(portno=i)) - if n.ports_right: - p[2].append('{portno}'.format(portno=i)) - # l = label - l = [n.name if n.show_name else '', a, p, n.notes] - dot.node(k, label=nested(l)) - - if len(n.loops) > 0: - dot.attr('edge',color='#000000:#ffffff:#000000') - if n.ports_left: - loop_side = 'l' - loop_dir = 'w' - elif n.ports_right: - loop_side = 'r' - loop_dir = 'e' - else: - raise Exception('No side for loops') - for loop in n.loops: - dot.edge('{name}:p{port_from}{loop_side}:{loop_dir}'.format(name=n.name, port_from=loop[0], port_to=loop[1], loop_side=loop_side, loop_dir=loop_dir), - '{name}:p{port_to}{loop_side}:{loop_dir}'.format(name=n.name, port_from=loop[0], port_to=loop[1], loop_side=loop_side, loop_dir=loop_dir)) - - for k, c in self.cables.items(): - # a = attributes - a = ['{}x'.format(len(c.colors)) if c.show_wirecount else '', - '{} {}{}'.format(c.gauge, c.gauge_unit, ' ({} AWG)'.format(awg_equiv(c.gauge)) if c.gauge_unit == 'mm\u00B2' and c.show_equiv else '') if c.gauge else '', # TODO: show equiv - '+ S' if c.shield else '', - '{} m'.format(c.length) if c.length > 0 else ''] - a = list(filter(None, a)) - - html = '' # name+attributes table - - html = html + '' # spacer between attributes and wires - - html = html + '' # main table - if c.notes: - html = html + ''.format(c.notes) # notes table - html = html + '' # spacer at the end - - html = html + '
' # main table - - html = html + '' # name+attributes table - if c.show_name: - html = html + ''.format(colspan=len(a), name=c.name) - html = html + '' # attribute row - for attrib in a: - html = html + ''.format(attrib=attrib) - html = html + '' # attribute row - html = html + '
{name}
{attrib}
' # conductor table - - for i, x in enumerate(c.colors,1): - p = [] - p.append(''.format(i)) - p.append(wv_colors.translate_color(x, self.color_mode)) - p.append(''.format(i)) - html = html + '' - for bla in p: - html = html + ''.format(bla) - html = html + '' - bgcolors = ('#000000:' + wv_colors.translate_color(x, 'hex') +':#000000').split(':') - html = html + '' - - if c.shield: - p = ['', 'Shield', ''] - html = html + '' # spacer - html = html + '' - for bla in p: - html = html + ''.format(bla) - html = html + '' - html = html + ''.format( - colspan=len(p), bgcolor=wv_colors.translate_color(wv_colors.shield_color, 'hex'), port='ws') - - html = html + '' # spacer at the end - - html = html + '
{}
'.format(colspan=len(p), port ='w{}'.format(i), height = '{}'.format(2*len(bgcolors))) - for j, bgcolor in enumerate(bgcolors[::-1]): # Reverse to match the curved wires when more than 2 colors - html = html + ''.format(colspan=len(p), bgcolor=bgcolor if bgcolor != '' else '#ffffff') - html = html + '
{}
' # conductor table - - html = html + '
{}
 
' # main table - - # connections - for x in c.connections: - if isinstance(x.via_port, int): # check if it's an actual wire and not a shield - search_color = c.colors[x.via_port-1] - # if search_color in wv_colors.color_hex: - dot.attr('edge',color='#000000:{wire_color}:#000000'.format(wire_color=wv_colors.get_color_hex(search_color))) - # else: # color name not found - # dot.attr('edge',color='#000000:#ffffff:#000000') - else: # it's a shield connection - dot.attr('edge',color='#000000') - - if x.from_port is not None: # connect to left - from_ferrule = self.connectors[x.from_name].category == 'ferrule' - code_left_1 = '{from_name}{from_port}:e'.format(from_name=x.from_name, from_port=':p{}r'.format(x.from_port) if not from_ferrule else '') - code_left_2 = '{via_name}:w{via_wire}:w'.format(via_name=c.name, via_wire=x.via_port, via_subport='i' if c.show_pinout else '') - dot.edge(code_left_1, code_left_2) - from_string = '{}:{}'.format(x.from_name, x.from_port) if not from_ferrule else '' - html = html.replace(''.format(x.via_port), from_string) - if x.to_port is not None: # connect to right - to_ferrule = self.connectors[x.to_name].category == 'ferrule' - code_right_1 = '{via_name}:w{via_wire}:e'.format(via_name=c.name, via_wire=x.via_port, via_subport='o' if c.show_pinout else '') - code_right_2 = '{to_name}{to_port}:w'.format(to_name=x.to_name, to_port=':p{}l'.format(x.to_port) if not to_ferrule else '') - dot.edge(code_right_1, code_right_2) - to_string = '{}:{}'.format(x.to_name, x.to_port) if not to_ferrule else '' - html = html.replace(''.format(x.via_port), to_string) - - dot.node(c.name, label='<{html}>'.format(html=html), shape='box', style='filled,dashed' if c.category=='bundle' else '', margin='0', fillcolor='white') - - return dot - - def output(self, filename, directory='_output', view=False, cleanup=True, format='pdf', gen_bom=False): - # graphical output - d = self.create_graph() - 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) - # bom output - bom_list = self.bom_list() - with open('{}.bom.tsv'.format(filename),'w') as file: - file.write(tuplelist2tsv(bom_list)) - # HTML output - with open('{}.html'.format(filename),'w') as file: - file.write('') - - file.write('

Diagram

') - with open('{}.svg'.format(filename),'r') as svg: - for l in svg: - file.write(l) - - file.write('

Bill of Materials

') - listy = flatten2d(bom_list) - file.write('') - file.write('') - for item in listy[0]: - file.write(''.format(item)) - file.write('') - for row in listy[1:]: - file.write('') - for i, item in enumerate(row): - file.write(''.format(content=item, align='align="right"' if listy[0][i] == 'Qty' else '')) - file.write('') - file.write('
{}
{content}
') - - file.write('') - - # TODO: add support for types of cables / Part Numbers - def bom(self): - bom = [] - bom_connectors = [] - bom_cables = [] - # connectors - types = Counter([(v.type, v.subtype, v.pincount) for v in self.connectors.values()]) - for type in types: - items = {k: v for k, v in self.connectors.items() if (v.type, v.subtype, v.pincount) == type} - shared = next(iter(items.values())) - designators = list(items.keys()) - designators.sort() - name = 'Connector{type}{subtype}{pincount}{color}'.format(type = ', {}'.format(shared.type) if shared.type else '', - subtype = ', {}'.format(shared.subtype) if shared.subtype else '', - pincount = ', {} pins'.format(shared.pincount) if shared.category != 'ferrule' else '', - color = ', {}'.format(shared.color) if shared.color else '') - item = {'item': name, 'qty': len(designators), 'unit': '', 'designators': designators if shared.category != 'ferrule' else ''} - bom_connectors.append(item) - bom_connectors = sorted(bom_connectors, key=lambda k: k['item']) # https://stackoverflow.com/a/73050 - bom.extend(bom_connectors) - # cables - types = Counter([(v.category, v.gauge, v.gauge_unit, v.wirecount, v.shield) for v in self.cables.values()]) - for type in types: - items = {k: v for k, v in self.cables.items() if (v.category, v.gauge, v.gauge_unit, v.wirecount, v.shield) == type} - shared = next(iter(items.values())) - if shared.category != 'bundle': - designators = list(items.keys()) - designators.sort() - total_length = sum(i.length for i in items.values()) - name = 'Cable, {wirecount}{gauge}{shield}'.format(wirecount = shared.wirecount, - gauge = ' x {} {}'.format(shared.gauge, shared.gauge_unit) if shared.gauge else ' wires', - shield = ' shielded' if shared.shield else '') - item = {'item': name, 'qty': round(total_length, 3), 'unit': 'm', 'designators': designators} - bom_cables.append(item) - # bundles (ignores wirecount) - wirelist = [] - # list all cables again, since bundles are represented as wires internally, with the category='bundle' set - types = Counter([(v.category, v.gauge, v.gauge_unit, v.length) for v in self.cables.values()]) - for type in types: - items = {k: v for k, v in self.cables.items() if (v.category, v.gauge, v.gauge_unit, v.length) == type} - shared = next(iter(items.values())) - # filter out cables that are not bundles - if shared.category == 'bundle': - for bundle in items.values(): - # add each wire from each bundle to the wirelist - for color in bundle.colors: - wirelist.append({'gauge': shared.gauge, 'gauge_unit': shared.gauge_unit, 'length': shared.length, 'color': color, 'designators': list(items.keys())}) - # join similar wires from all the bundles to a single BOM item - types = Counter([(v['gauge'], v['gauge_unit'], v['color']) for v in wirelist]) - for type in types: - items = [v for v in wirelist if (v['gauge'], v['gauge_unit'], v['color']) == type] - shared = items[0] - designators = [i['designators'] for i in items] - # flatten nested list - designators = [item for sublist in designators for item in sublist] # https://stackoverflow.com/a/952952 - # remove duplicates - designators = list(dict.fromkeys(designators)) - designators.sort() - total_length = sum(i['length'] for i in items) - name = 'Wire, {gauge}{color}'.format(gauge='{} {}'.format(shared['gauge'], shared['gauge_unit']) if shared['gauge'] else '', - color=', {}'.format(shared['color']) if shared['color'] != '' else '') - item = {'item': name, 'qty': round(total_length, 3), 'unit': 'm', 'designators': designators} - bom_cables.append(item) - bom_cables = sorted(bom_cables, key=lambda k: k['item']) # https://stackoverflow.com/a/73050 - bom.extend(bom_cables) - return bom - - def bom_list(self): - bom = self.bom() - keys = ['item', 'qty', 'unit', 'designators'] - bom_list = [] - bom_list.append([k.capitalize() for k in keys]) # create header row with keys - for item in bom: - item_list = [item.get(key, '') for key in keys] # fill missing values with blanks - for i, subitem in enumerate(item_list): - if isinstance(subitem, List): # convert any lists into comma separated strings - item_list[i] = ', '.join(subitem) - bom_list.append(item_list) - return bom_list - -@dataclass -class Connector: - name: str - category: str = None - type: str = None - subtype: str = None - pincount: int = None - notes: str = None - pinout: List[Any] = field(default_factory=list) - color: str = None - show_name: bool = True - show_pincount: bool = True - - def __post_init__(self): - self.ports_left = False - self.ports_right = False - self.loops = [] - - if self.pinout: - if self.pincount is not None: - raise Exception('You cannot specify both pinout and pincount') - else: - self.pincount = len(self.pinout) - else: - if not self.pincount: - self.pincount = 1 - self.pinout = ['',] * self.pincount - - def loop(self, from_pin, to_pin): - self.loops.append((from_pin, to_pin)) - -@dataclass -class Cable: - name: str - category : str = None - type: str = None - gauge: float = None - gauge_unit : str = None - show_equiv: bool = False - length: float = 0 - wirecount: int = None - shield: bool = False - notes: str = None - colors: List[Any] = field(default_factory=list) - color_code: str = None - show_name: bool = True - show_pinout: bool = False - show_wirecount: bool = True - - def __post_init__(self): - - if isinstance(self.gauge, str): # gauge and unit specified - try: - g, u = self.gauge.split(' ') - except: - raise Exception('Gauge must be a number, or number and unit separated by a space') - self.gauge = g - self.gauge_unit = u.replace('mm2','mm\u00B2') - elif self.gauge is not None: # gauge specified, assume mm2 - if self.gauge_unit is None: - self.gauge_unit = 'mm\u00B2' - else: - pass # gauge not specified - - self.connections = [] - - if self.wirecount: # number of wires explicitly defined - if self.colors: # use custom color palette (partly or looped if needed) - pass - elif self.color_code: # use standard color palette (partly or looped if needed) - if self.color_code not in wv_colors.COLOR_CODES: - raise Exception('Unknown color code') - self.colors = wv_colors.COLOR_CODES[self.color_code] - else: # no colors defined, add dummy colors - self.colors = [''] * self.wirecount - - # make color code loop around if more wires than colors - if self.wirecount > len(self.colors): - m = self.wirecount // len(self.colors) + 1 - self.colors = self.colors * int(m) - # cut off excess after looping - self.colors = self.colors[:self.wirecount] - else: # wirecount implicit in length of color list - if not self.colors: - raise Exception('Unknown number of wires. Must specify wirecount or colors (implicit length)') - self.wirecount = len(self.colors) - - # for BOM generation - self.wirecount_and_shield = (self.wirecount, self.shield) - - def connect(self, from_name, from_pin, via_pin, to_name, to_pin): - from_pin = int2tuple(from_pin) - via_pin = int2tuple(via_pin) - to_pin = int2tuple(to_pin) - if len(from_pin) != len(to_pin): - raise Exception('from_pin must have the same number of elements as to_pin') - for i, x in enumerate(from_pin): - # self.connections.append((from_name, from_pin[i], via_pin[i], to_name, to_pin[i])) - self.connections.append(Connection(from_name, from_pin[i], via_pin[i], to_name, to_pin[i])) - -@dataclass -class Connection: - from_name: Any - from_port: Any - via_port: Any - to_name: Any - to_port: Any - -def parse(file_in, file_out=None, gen_bom=False): - - 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: - input = yaml.safe_load(stream) - - 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): - if x not in input[where[i]]: - return False - return True - - h = Harness() - - # add items - sections = ['connectors','cables','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 == 'connectors': - h.add_connector(name=k, **o) - elif sec == 'cables': - h.add_cable(name=k, **o) - elif sec == 'ferrules': - pass - else: - pass # section exists but is empty - else: # section does not exist, create empty section - 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 -- cable -- 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],('connectors','cables','connectors')): - print([from_name,via_name,to_name]) - 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 cables - 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] - - con_cbl = check_designators([from_name, to_name],('connectors','cables')) - cbl_con = check_designators([from_name, to_name],('cables','connectors')) - con_con = check_designators([from_name, to_name],('connectors','connectors')) - - - fer_cbl = check_designators([from_name, to_name],('ferrules','cables')) - cbl_fer = check_designators([from_name, to_name],('cables','ferrules')) - - if not con_cbl and not cbl_con and not con_con and not fer_cbl and not cbl_fer: - raise Exception('Wrong designators') - - from_pins = expand(con[0][from_name]) - to_pins = expand(con[1][to_name]) - - if con_cbl or cbl_con or con_con: - if len(from_pins) != len(to_pins): - raise Exception('List length mismatch') - - if con_cbl or cbl_con: - for (from_pin, to_pin) in zip(from_pins, to_pins): - if con_cbl: - h.connect(from_name, from_pin, to_name, to_pin, None, None) - else: # cbl_con - h.connect(None, None, from_name, from_pin, to_name, to_pin) - elif con_con: - cocon_coname = 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(cocon_coname, from_pin, to_pin) - if fer_cbl or cbl_fer: - from_pins = expand(con[0][from_name]) - to_pins = expand(con[1][to_name]) - - if fer_cbl: - ferrule_name = from_name - cable_name = to_name - cable_pins = to_pins - else: - ferrule_name = to_name - cable_name = from_name - cable_pins = from_pins - - ferrule_params = input['ferrules'][ferrule_name] - for cable_pin in cable_pins: - ferrule_counter = ferrule_counter + 1 - ferrule_id = '_F{}'.format(ferrule_counter) - h.add_connector(ferrule_id, category='ferrule', **ferrule_params) - - if fer_cbl: - h.connect(ferrule_id, 1, cable_name, cable_pin, None, None) - else: - h.connect(None, None, cable_name, cable_pin, ferrule_id, 1) - - - else: - raise Exception('Wrong number of connection parameters') - - h.output(filename=file_out, format=('png','svg'), gen_bom=gen_bom, 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) - ap.add_argument('--bom', action='store_const', default=True, const=True) - args = ap.parse_args() - - parse(args.file_input, file_out=args.file_output, gen_bom=args.bom) diff --git a/src/wv_colors.py b/src/wv_colors.py deleted file mode 100644 index 890804a..0000000 --- a/src/wv_colors.py +++ /dev/null @@ -1,131 +0,0 @@ -COLOR_CODES = { - 'DIN': ['WH', 'BN', 'GN', 'YE', 'GY', 'PK', 'BU', 'RD', 'BK', 'VT', 'GYPK', 'RDBU', 'WHGN', 'BNGN', 'WHYE', 'YEBN', - 'WHGY', 'GYBN', 'WHPK', 'PKBN', 'WHBU', 'BNBU', 'WHRD', 'BNRD', 'WHBK', 'BNBK', 'GYGN', 'YEGY', 'PKGN', - 'YEPK', 'GNBU', 'YEBU', 'GNRD', 'YERD', 'GNBK', 'YEBK', 'GYBU', 'PKBU', 'GYRD', 'PKRD', 'GYBK', 'PKBK', - 'BUBK', 'RDBK', 'WHBNBK', 'YEGNBK', 'GYPKBK', 'RDBUBK', 'WHGNBK', 'BNGNBK', 'WHYEBK', 'YEBNBK', 'WHGYBK', - 'GYBNBK', 'WHPKBK', 'PKBNBK', 'WHBUBK', 'BNBUBK', 'WHRDBK', 'BNRDBK'], - 'IEC': ['BN', 'RD', 'OG', 'YE', 'GN', 'BU', 'VT', 'GY', 'WH', 'BK'], - 'BW': ['BK', 'WH'], - 'TEL': ['BUWH', 'WHBU', 'OGWH', 'WHOG', 'GNWH', 'WHGN', 'BNWH', 'WHBN', 'SLWH', 'WHSL', 'BURD', 'RDBU', 'OGRD', - 'RDOG', 'GNRD', 'RDGN', 'BNRD', 'RDBN', 'SLRD', 'RDSL', 'BUBK', 'BKBU', 'OGBK', 'BKOG', 'GNBK', 'BKGN', - 'BNBK', 'BKBN', 'SLBK', 'BKSL', 'BUYW', 'YWBU', 'OGYW', 'YWOG', 'GNYW', 'YWGN', 'BNYW', 'YWBN', 'SLYW', - 'YWSL', 'BUVT', 'VTBU', 'OGVT', 'VTOG', 'GNVT', 'VTGN', 'BNVT', 'VTBN', 'SLVT', 'VTSL'], - 'TELALT': ['WHBU', 'BU', 'WHOG', 'OG', 'WHGN', 'GN', 'WHBN', 'BN', 'WHSL', 'SL', 'RDBU', 'BURD', 'RDOG', 'OGRD', - 'RDGN', 'GNRD', 'RDBN', 'BNRD', 'RDSL', 'SLRD', 'BKBU', 'BUBK', 'BKOG', 'OGBK', 'BKGN', 'GNBK', 'BKBN', - 'BNBK', 'BKSL', 'SLBK', 'YWBU', 'BUYW', 'YWOG', 'OGYW', 'YWGN', 'GNYW', 'YWBN', 'BNYW', 'YWSL', 'SLYW', - 'VTBU', 'BUVT', 'VTOG', 'OGVT', 'VTGN', 'GNVT', 'VTBN', 'BNVT', 'VTSL', 'SLVT'], - 'T568A': ['WHGN', 'GN', 'WHOG', 'BU', 'WHBU', 'OG', 'WHBN', 'BN'], - 'T568B': ['WHOG', 'OG', 'WHGN', 'BU', 'WHBU', 'GN', 'WHBN', 'BN'], -} - -default_color = '#ffffff' - -# default_bkgnd_color = '#ffffff' # white -default_bknd_color = '#fffbf8' # off-white beige-ish - -# Convention: Color names should be 2 letters long, to allow for multicolored wires - -shield_color = 'TI' - -_color_hex = { - 'BK': '#000000', - 'WH': '#ffffff', - 'GY': '#999999', - 'PK': '#ff66cc', - 'RD': '#ff0000', - 'OG': '#ff8000', - 'YE': '#ffff00', - 'GN': '#00ff00', - 'TQ': '#00ffff', - 'BU': '#0066ff', - 'VT': '#8000ff', - 'BN': '#a52a2a', - 'SL': '#708090', - # Faux-copper look, for bare CU wire - 'CU': '#d6775e:#895956', - # Silvery look for tinned bare wire - 'TI': '#aaaaaa:#84878c', - # Yellow-green PE wire - 'PE': '#54aa85:#f7f854:#54aa85', -} - - -_color_full = { - 'BK': 'black', - 'WH': 'white', - 'GY': 'grey', - 'PK': 'pink', - 'RD': 'red', - 'OG': 'orange', - 'YE': 'yellow', - 'GN': 'green', - 'TQ': 'turquoise', - 'BU': 'blue', - 'VT': 'violet', - 'BN': 'brown', - 'SL': 'slate', - 'CU': 'bare copper', - 'TI': 'tinned copper', # Could be changed to SN, as that's the elemental symbol -} - -# TODO Help wanted: can someone check the german translation? -_color_ger = { - 'BK': 'sw', - 'WH': 'ws', - 'GY': 'gr', - 'PK': 'rs', - 'RD': 'rt', - 'OG': 'or', - 'YE': 'ge', - 'GN': 'gn', - 'TQ': 'tk', - 'BU': 'bl', - 'VT': 'vi', - 'BN': 'br', - # To the best of my ability, likely incorrect: - - # Slate --> Schieferfarbe --> SI ?? - 'SL': 'si', - # Copper - 'CU': 'ku', - # Tinned - 'TI': 'si' -} - - - -def get_color_hex(input): - if len(input) == 4: # give wires with EXACTLY 2 colors that striped/banded look - input = input + input[:2] - try: - output = ":".join([_color_hex[input[i:i + 2]] for i in range(0, len(input), 2)]) - except KeyError: - raise Exception('Unknown Color Name') - if output == '': - output = default_color - return output - - -def translate_color(input, color_mode): - if input == '': - return '' - upper = color_mode.isupper() - if not (color_mode.isupper() or color_mode.islower()): - raise Exception('Unknown color mode capitalization') - - color_mode = color_mode.lower() - if color_mode == 'full': - output = "/".join([_color_full[input[i:i+2]] for i in range(0,len(input),2)]) - elif color_mode == 'hex': - output = get_color_hex(input) - elif color_mode == 'ger': - output = "".join([_color_ger[input[i:i+2]] for i in range(o,len(input),2)]) - elif color_mode == 'short': - output = input - else: - raise Exception('Unknown color mode') - if upper: - return output.upper() - else: - return output.lower() - diff --git a/tutorial/tutorial01.gv b/tutorial/tutorial01.gv index a37a4ad..b8e6b41 100644 --- a/tutorial/tutorial01.gv +++ b/tutorial/tutorial01.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|{4-pin}|{{1|2|3|4}}"] @@ -18,5 +18,5 @@ graph { edge [color="#000000:#ffffff:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p4l:w - W1 [label=<
W1
4x1 m
 
X1:1X2:1
X1:2X2:2
X1:3X2:3
X1:4X2:4
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
4x1 m
X1:1X2:1
X1:2X2:2
X1:3X2:3
X1:4X2:4
> fillcolor=white margin=0 shape=box style=""] } diff --git a/tutorial/tutorial01.html b/tutorial/tutorial01.html index 5672e80..7037f99 100644 --- a/tutorial/tutorial01.html +++ b/tutorial/tutorial01.html @@ -1,133 +1,121 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -4-pin - -1 - -2 - -3 - -4 +X1 + +X1 + +4-pin + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -1 m -  -X1:1 -X2:1 - - - -X1:2 -X2:2 - - - -X1:3 -X2:3 - - - -X1:4 -X2:4 - - - -  +W1 + + +W1 + +4x + +1 m +X1:1 +X2:1 + + + +X1:2 +X2:2 + + + +X1:3 +X2:3 + + + +X1:4 +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -4-pin - -1 - -2 - -3 - -4 +X2 + +X2 + +4-pin + +1 + +2 + +3 + +4 - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + diff --git a/tutorial/tutorial01.png b/tutorial/tutorial01.png index beab89d..6af37c6 100644 Binary files a/tutorial/tutorial01.png and b/tutorial/tutorial01.png differ diff --git a/tutorial/tutorial01.svg b/tutorial/tutorial01.svg index 861658f..6bb649a 100644 --- a/tutorial/tutorial01.svg +++ b/tutorial/tutorial01.svg @@ -1,133 +1,121 @@ - - - - - + + + +%3 + - -X1 - -X1 - -4-pin - -1 - -2 - -3 - -4 +X1 + +X1 + +4-pin + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -1 m -  -X1:1 -X2:1 - - - -X1:2 -X2:2 - - - -X1:3 -X2:3 - - - -X1:4 -X2:4 - - - -  +W1 + + +W1 + +4x + +1 m +X1:1 +X2:1 + + + +X1:2 +X2:2 + + + +X1:3 +X2:3 + + + +X1:4 +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -4-pin - -1 - -2 - -3 - -4 +X2 + +X2 + +4-pin + +1 + +2 + +3 + +4 - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + diff --git a/tutorial/tutorial02.bom.tsv b/tutorial/tutorial02.bom.tsv index 726ee4d..e3370aa 100644 --- a/tutorial/tutorial02.bom.tsv +++ b/tutorial/tutorial02.bom.tsv @@ -1,3 +1,3 @@ Item Qty Unit Designators Connector, Molex KK 254, female, 4 pins 2 X1, X2 -Cable, 4 x 0.25 mm² 1 m W1 +Cable, 4 x 0.25 mm² 1 m W1 diff --git a/tutorial/tutorial02.gv b/tutorial/tutorial02.gv index deefec7..9686b21 100644 --- a/tutorial/tutorial02.gv +++ b/tutorial/tutorial02.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{{1|2|3|4}}"] @@ -9,7 +9,7 @@ graph { edge [color="#000000:#ffffff:#000000"] X1:p1r:e -- W1:w1:w W1:w1:e -- X2:p1l:w - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] X1:p2r:e -- W1:w2:w W1:w2:e -- X2:p2l:w edge [color="#000000:#00ff00:#000000"] @@ -18,5 +18,5 @@ graph { edge [color="#000000:#ffff00:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p3l:w - W1 [label=<
W1
4x0.25 mm² (24 AWG)1 m
 
X1:1WHX2:1
X1:2BNX2:2
X1:3GNX2:4
X1:4YEX2:3
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
4x0.25 mm² (24 AWG)1 m
X1:1WHX2:1
X1:2BNX2:2
X1:3GNX2:4
X1:4YEX2:3
> fillcolor=white margin=0 shape=box style=""] } diff --git a/tutorial/tutorial02.html b/tutorial/tutorial02.html index 9ff939c..b5af434 100644 --- a/tutorial/tutorial02.html +++ b/tutorial/tutorial02.html @@ -1,148 +1,136 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² (24 AWG) - -1 m -  -X1:1 -WH -X2:1 - - - -X1:2 -BN -X2:2 - - - -X1:3 -GN -X2:4 - - - -X1:4 -YE -X2:3 - - - -  +W1 + + +W1 + +4x + +0.25 mm² (24 AWG) + +1 m +X1:1 +WH +X2:1 + + + +X1:2 +BN +X2:2 + + + +X1:3 +GN +X2:4 + + + +X1:4 +YE +X2:3 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p4l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p3l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins2X1, X2
Cable, 4 x 0.25 mm²1mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins2X1, X2
Cable, 4 x 0.25 mm²1mW1
\ No newline at end of file diff --git a/tutorial/tutorial02.png b/tutorial/tutorial02.png index 3510d65..32f620d 100644 Binary files a/tutorial/tutorial02.png and b/tutorial/tutorial02.png differ diff --git a/tutorial/tutorial02.svg b/tutorial/tutorial02.svg index edeaf1f..1457a7c 100644 --- a/tutorial/tutorial02.svg +++ b/tutorial/tutorial02.svg @@ -1,147 +1,135 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² (24 AWG) - -1 m -  -X1:1 -WH -X2:1 - - - -X1:2 -BN -X2:2 - - - -X1:3 -GN -X2:4 - - - -X1:4 -YE -X2:3 - - - -  +W1 + + +W1 + +4x + +0.25 mm² (24 AWG) + +1 m +X1:1 +WH +X2:1 + + + +X1:2 +BN +X2:2 + + + +X1:3 +GN +X2:4 + + + +X1:4 +YE +X2:3 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p4l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p3l:w + + + diff --git a/tutorial/tutorial03.bom.tsv b/tutorial/tutorial03.bom.tsv index a9c25a8..ee37571 100644 --- a/tutorial/tutorial03.bom.tsv +++ b/tutorial/tutorial03.bom.tsv @@ -1,3 +1,3 @@ Item Qty Unit Designators Connector, Molex KK 254, female, 4 pins 2 X1, X2 -Cable, 4 x 0.25 mm² shielded 1 m W1 +Cable, 4 x 0.25 mm² shielded 1 m W1 diff --git a/tutorial/tutorial03.gv b/tutorial/tutorial03.gv index ce13013..2b5197e 100644 --- a/tutorial/tutorial03.gv +++ b/tutorial/tutorial03.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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}|{1|2|3|4}}"] @@ -9,7 +9,7 @@ graph { edge [color="#000000:#ffffff:#000000"] X1:p1r:e -- W1:w1:w W1:w1:e -- X2:p1l:w - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] X1:p2r:e -- W1:w2:w W1:w2:e -- X2:p2l:w edge [color="#000000:#00ff00:#000000"] @@ -18,7 +18,7 @@ graph { edge [color="#000000:#ffff00:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p3l:w - edge [color="#000000"] + edge [color="#aaaaaa:#84878c"] X1:p1r:e -- W1:ws:w - W1 [label=<
W1
4x0.25 mm² (24 AWG)+ S1 m
 
X1:1WHX2:1
X1:2BNX2:2
X1:3GNX2:4
X1:4YEX2:3
 
X1:1Shield
 
> fillcolor=white margin=0 shape=box style=""] + W1 [label=<
W1
4x0.25 mm² (24 AWG)+ S1 m
X1:1WHX2:1
X1:2BNX2:2
X1:3GNX2:4
X1:4YEX2:3
X1:1Shield
> fillcolor=white margin=0 shape=box style=""] } diff --git a/tutorial/tutorial03.html b/tutorial/tutorial03.html index 8e46c3f..e710c17 100644 --- a/tutorial/tutorial03.html +++ b/tutorial/tutorial03.html @@ -1,175 +1,169 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -RX - -TX - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +RX + +TX + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² (24 AWG) - -+ S - -1 m -  -X1:1 -WH -X2:1 - - - -X1:2 -BN -X2:2 - - - -X1:3 -GN -X2:4 - - - -X1:4 -YE -X2:3 - - - -  -X1:1 -Shield - -  +W1 + + +W1 + +4x + +0.25 mm² (24 AWG) + ++ S + +1 m +X1:1 +WH +X2:1 + + + +X1:2 +BN +X2:2 + + + +X1:3 +GN +X2:4 + + + +X1:4 +YE +X2:3 + + + +X1:1 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X1:e--W1:w - +X1:p1r:e--W1:ws:w + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -RX - -TX +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +RX + +TX - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p4l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p3l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins2X1, X2
Cable, 4 x 0.25 mm² shielded1mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins2X1, X2
Cable, 4 x 0.25 mm² shielded1mW1
\ No newline at end of file diff --git a/tutorial/tutorial03.png b/tutorial/tutorial03.png index e2f69a4..e6bd279 100644 Binary files a/tutorial/tutorial03.png and b/tutorial/tutorial03.png differ diff --git a/tutorial/tutorial03.svg b/tutorial/tutorial03.svg index 2fd3833..08fddb2 100644 --- a/tutorial/tutorial03.svg +++ b/tutorial/tutorial03.svg @@ -1,174 +1,168 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -RX - -TX - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +RX + +TX + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² (24 AWG) - -+ S - -1 m -  -X1:1 -WH -X2:1 - - - -X1:2 -BN -X2:2 - - - -X1:3 -GN -X2:4 - - - -X1:4 -YE -X2:3 - - - -  -X1:1 -Shield - -  +W1 + + +W1 + +4x + +0.25 mm² (24 AWG) + ++ S + +1 m +X1:1 +WH +X2:1 + + + +X1:2 +BN +X2:2 + + + +X1:3 +GN +X2:4 + + + +X1:4 +YE +X2:3 + + + +X1:1 +Shield + + + + + + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X1:e--W1:w - +X1:p1r:e--W1:ws:w + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -RX - -TX +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +RX + +TX - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p4l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p3l:w + + + diff --git a/tutorial/tutorial04.gv b/tutorial/tutorial04.gv index b61e32a..10898ad 100644 --- a/tutorial/tutorial04.gv +++ b/tutorial/tutorial04.gv @@ -1,13 +1,13 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|male|4-pin}|{{GND|VCC|SCL|SDA}|{1|2|3|4}}|to microcontroller"] X2 [label="X2|{Molex KK 254|female|4-pin}|{{1|2|3|4}|{GND|VCC|SCL|SDA}|{1|2|3|4}}|to accelerometer"] X3 [label="X3|{Molex KK 254|female|4-pin}|{{1|2|3|4}|{GND|VCC|SCL|SDA}}|to temperature sensor"] - edge [color="#000000:#666600:#000000"] + edge [color="#000000:#a52a2a:#000000"] X1:p1r:e -- W1:w1:w W1:w1:e -- X2:p1l:w edge [color="#000000:#ff0000:#000000"] @@ -19,8 +19,8 @@ graph { edge [color="#000000:#ffff00:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p4l:w - W1 [label=<
W1
4x24 AWG0.3 m
 
X1:1BNX2:1
X1:2RDX2:2
X1:3OGX2:3
X1:4YEX2:4
 
This cable is a bit longer
 
> fillcolor=white margin=0 shape=box style=""] - edge [color="#000000:#666600:#000000"] + W1 [label=<
W1
4x24 AWG0.3 m
X1:1BNX2:1
X1:2RDX2:2
X1:3OGX2:3
X1:4YEX2:4
This cable is a bit longer
> fillcolor=white margin=0 shape=box style=""] + edge [color="#000000:#a52a2a:#000000"] X2:p1r:e -- W2:w1:w W2:w1:e -- X3:p1l:w edge [color="#000000:#ff0000:#000000"] @@ -32,5 +32,5 @@ graph { edge [color="#000000:#ffff00:#000000"] X2:p4r:e -- W2:w4:w W2:w4:e -- X3:p4l:w - W2 [label=<
W2
4x24 AWG0.1 m
 
X2:1BNX3:1
X2:2RDX3:2
X2:3OGX3:3
X2:4YEX3:4
 
This cable is a bit shorter
 
> fillcolor=white margin=0 shape=box style=""] + W2 [label=<
W2
4x24 AWG0.1 m
X2:1BNX3:1
X2:2RDX3:2
X2:3OGX3:3
X2:4YEX3:4
This cable is a bit shorter
> fillcolor=white margin=0 shape=box style=""] } diff --git a/tutorial/tutorial04.html b/tutorial/tutorial04.html index c32828d..9cb3db7 100644 --- a/tutorial/tutorial04.html +++ b/tutorial/tutorial04.html @@ -1,304 +1,278 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -male - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 - -to microcontroller +X1 + +X1 + +Molex KK 254 + +male + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 + +to microcontroller - -W1 - - -W1 - -4x - -24 AWG - -0.3 m -  -X1:1 -BN -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:3 -OG -X2:3 - - - -X1:4 -YE -X2:4 - - - -  -This cable is a bit longer -  +W1 + + +W1 + +4x + +24 AWG + +0.3 m +X1:1 +BN +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:3 +OG +X2:3 + + + +X1:4 +YE +X2:4 + + + +This cable is a bit longer - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 - -to accelerometer +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 + +to accelerometer - -W2 - - -W2 - -4x - -24 AWG - -0.1 m -  -X2:1 -BN -X3:1 - - - -X2:2 -RD -X3:2 - - - -X2:3 -OG -X3:3 - - - -X2:4 -YE -X3:4 - - - -  -This cable is a bit shorter -  +W2 + + +W2 + +4x + +24 AWG + +0.1 m +X2:1 +BN +X3:1 + + + +X2:2 +RD +X3:2 + + + +X2:3 +OG +X3:3 + + + +X2:4 +YE +X3:4 + + + +This cable is a bit shorter - -X2:e--W2:w - - - +X2:p1r:e--W2:w1:w + + + - -X2:e--W2:w - - - +X2:p2r:e--W2:w2:w + + + - -X2:e--W2:w - - - +X2:p3r:e--W2:w3:w + + + - -X2:e--W2:w - - - +X2:p4r:e--W2:w4:w + + + - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA - -to temperature sensor +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA + +to temperature sensor - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W2:e--X3:w - - - +W2:w3:e--X3:p3l:w + + + - -W2:e--X3:w - - - +W2:w4:e--X3:p4l:w + + + diff --git a/tutorial/tutorial04.png b/tutorial/tutorial04.png index 51e24e5..5db934d 100644 Binary files a/tutorial/tutorial04.png and b/tutorial/tutorial04.png differ diff --git a/tutorial/tutorial04.svg b/tutorial/tutorial04.svg index 31fbb73..0aa61b8 100644 --- a/tutorial/tutorial04.svg +++ b/tutorial/tutorial04.svg @@ -1,304 +1,278 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -male - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 - -to microcontroller +X1 + +X1 + +Molex KK 254 + +male + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 + +to microcontroller - -W1 - - -W1 - -4x - -24 AWG - -0.3 m -  -X1:1 -BN -X2:1 - - - -X1:2 -RD -X2:2 - - - -X1:3 -OG -X2:3 - - - -X1:4 -YE -X2:4 - - - -  -This cable is a bit longer -  +W1 + + +W1 + +4x + +24 AWG + +0.3 m +X1:1 +BN +X2:1 + + + +X1:2 +RD +X2:2 + + + +X1:3 +OG +X2:3 + + + +X1:4 +YE +X2:4 + + + +This cable is a bit longer - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 - -to accelerometer +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 + +to accelerometer - -W2 - - -W2 - -4x - -24 AWG - -0.1 m -  -X2:1 -BN -X3:1 - - - -X2:2 -RD -X3:2 - - - -X2:3 -OG -X3:3 - - - -X2:4 -YE -X3:4 - - - -  -This cable is a bit shorter -  +W2 + + +W2 + +4x + +24 AWG + +0.1 m +X2:1 +BN +X3:1 + + + +X2:2 +RD +X3:2 + + + +X2:3 +OG +X3:3 + + + +X2:4 +YE +X3:4 + + + +This cable is a bit shorter - -X2:e--W2:w - - - +X2:p1r:e--W2:w1:w + + + - -X2:e--W2:w - - - +X2:p2r:e--W2:w2:w + + + - -X2:e--W2:w - - - +X2:p3r:e--W2:w3:w + + + - -X2:e--W2:w - - - +X2:p4r:e--W2:w4:w + + + - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA - -to temperature sensor +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA + +to temperature sensor - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X3:w - - - +W2:w1:e--X3:p1l:w + + + - -W2:e--X3:w - - - +W2:w2:e--X3:p2l:w + + + - -W2:e--X3:w - - - +W2:w3:e--X3:p3l:w + + + - -W2:e--X3:w - - - +W2:w4:e--X3:p4l:w + + + diff --git a/tutorial/tutorial05.bom.tsv b/tutorial/tutorial05.bom.tsv index 973d4cd..ddae6dd 100644 --- a/tutorial/tutorial05.bom.tsv +++ b/tutorial/tutorial05.bom.tsv @@ -1,6 +1,6 @@ Item Qty Unit Designators Connector, Ferrule, crimp, 0.5 mm², OG 4 Connector, Molex 8981, female, 4 pins 1 X1 -Wire, 0.5 mm², BK 0.6 m W1 -Wire, 0.5 mm², RD 0.3 m W1 -Wire, 0.5 mm², YE 0.3 m W1 +Wire, 0.5 mm², BK 0.6 m W1 +Wire, 0.5 mm², RD 0.3 m W1 +Wire, 0.5 mm², YE 0.3 m W1 diff --git a/tutorial/tutorial05.gv b/tutorial/tutorial05.gv index fff2bcc..6ecf383 100644 --- a/tutorial/tutorial05.gv +++ b/tutorial/tutorial05.gv @@ -1,14 +1,14 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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 8981|female|4-pin}|{{1|2|3|4}|{+12V|GND|GND|+5V}}"] _F1 [label=< - +
Ferrule, crimp, 0.5 mm² OG Ferrule, crimp, 0.5 mm² OG
@@ -18,7 +18,7 @@ graph { _F2 [label=< - +
Ferrule, crimp, 0.5 mm² OG Ferrule, crimp, 0.5 mm² OG
@@ -28,7 +28,7 @@ graph { _F3 [label=< - +
Ferrule, crimp, 0.5 mm² OG Ferrule, crimp, 0.5 mm² OG
@@ -38,7 +38,7 @@ graph { _F4 [label=< - +
Ferrule, crimp, 0.5 mm² OG Ferrule, crimp, 0.5 mm² OG
@@ -61,5 +61,5 @@ graph { W1:w3:e -- X1:p3l:w edge [color="#000000:#ff0000:#000000"] W1:w4:e -- X1:p4l:w - W1 [label=<
W1
4x0.5 mm²0.3 m
 
YEX1:1
BKX1:2
BKX1:3
RDX1:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
4x0.5 mm²0.3 m
YEX1:1
BKX1:2
BKX1:3
RDX1:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/tutorial/tutorial05.html b/tutorial/tutorial05.html index 622ebc9..b1cfd3b 100644 --- a/tutorial/tutorial05.html +++ b/tutorial/tutorial05.html @@ -1,176 +1,153 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex 8981 - -female - -4-pin - -1 - -2 - -3 - -4 - -+12V - -GND - -GND - -+5V +X1 + +X1 + +Molex 8981 + +female + +4-pin + +1 + +2 + +3 + +4 + ++12V + +GND + +GND + ++5V - -_F1 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F1 + + Ferrule, crimp, 0.5 mm² OG + +   + - -W1 - - -W1 - -4x - -0.5 mm² - -0.3 m -  -YE -X1:1 - - - -BK -X1:2 - - - -BK -X1:3 - - - -RD -X1:4 - - - -  +W1 + + +W1 + +4x + +0.5 mm² + +0.3 m +YE +X1:1 + + + +BK +X1:2 + + + +BK +X1:3 + + + +RD +X1:4 + + + - -_F1:e--W1:w - - - +_F1:e--W1:w1:w + + + - -_F2 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F2 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F2:e--W1:w - - - +_F2:e--W1:w2:w + + + - -_F3 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F3 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F3:e--W1:w - - - +_F3:e--W1:w3:w + + + - -_F4 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F4 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F4:e--W1:w - - - +_F4:e--W1:w4:w + + + - -W1:e--X1:w - - - +W1:w1:e--X1:p1l:w + + + - -W1:e--X1:w - - - +W1:w2:e--X1:p2l:w + + + - -W1:e--X1:w - - - +W1:w3:e--X1:p3l:w + + + - -W1:e--X1:w - - - +W1:w4:e--X1:p4l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Ferrule, crimp, 0.5 mm², OG4
Connector, Molex 8981, female, 4 pins1X1
Wire, 0.5 mm², BK0.6mW1
Wire, 0.5 mm², RD0.3mW1
Wire, 0.5 mm², YE0.3mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Ferrule, crimp, 0.5 mm², OG4
Connector, Molex 8981, female, 4 pins1X1
Wire, 0.5 mm², BK0.6mW1
Wire, 0.5 mm², RD0.3mW1
Wire, 0.5 mm², YE0.3mW1
\ No newline at end of file diff --git a/tutorial/tutorial05.png b/tutorial/tutorial05.png index 8141e68..201e2ff 100644 Binary files a/tutorial/tutorial05.png and b/tutorial/tutorial05.png differ diff --git a/tutorial/tutorial05.svg b/tutorial/tutorial05.svg index fc34a3c..1d16067 100644 --- a/tutorial/tutorial05.svg +++ b/tutorial/tutorial05.svg @@ -1,175 +1,152 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex 8981 - -female - -4-pin - -1 - -2 - -3 - -4 - -+12V - -GND - -GND - -+5V +X1 + +X1 + +Molex 8981 + +female + +4-pin + +1 + +2 + +3 + +4 + ++12V + +GND + +GND + ++5V - -_F1 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F1 + + Ferrule, crimp, 0.5 mm² OG + +   + - -W1 - - -W1 - -4x - -0.5 mm² - -0.3 m -  -YE -X1:1 - - - -BK -X1:2 - - - -BK -X1:3 - - - -RD -X1:4 - - - -  +W1 + + +W1 + +4x + +0.5 mm² + +0.3 m +YE +X1:1 + + + +BK +X1:2 + + + +BK +X1:3 + + + +RD +X1:4 + + + - -_F1:e--W1:w - - - +_F1:e--W1:w1:w + + + - -_F2 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F2 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F2:e--W1:w - - - +_F2:e--W1:w2:w + + + - -_F3 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F3 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F3:e--W1:w - - - +_F3:e--W1:w3:w + + + - -_F4 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F4 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F4:e--W1:w - - - +_F4:e--W1:w4:w + + + - -W1:e--X1:w - - - +W1:w1:e--X1:p1l:w + + + - -W1:e--X1:w - - - +W1:w2:e--X1:p2l:w + + + - -W1:e--X1:w - - - +W1:w3:e--X1:p3l:w + + + - -W1:e--X1:w - - - +W1:w4:e--X1:p4l:w + + + diff --git a/tutorial/tutorial06.bom.tsv b/tutorial/tutorial06.bom.tsv index c6eda88..b3abc26 100644 --- a/tutorial/tutorial06.bom.tsv +++ b/tutorial/tutorial06.bom.tsv @@ -2,6 +2,6 @@ Item Qty Unit Designators Connector, Ferrule, crimp, 0.5 mm², OG 2 Connector, Ferrule, crimp, 1.0 mm², YE 1 Connector, Molex 8981, female, 4 pins 1 X1 -Wire, 0.5 mm², BK 0.6 m W1 -Wire, 0.5 mm², RD 0.3 m W1 -Wire, 0.5 mm², YE 0.3 m W1 +Wire, 0.5 mm², BK 0.6 m W1 +Wire, 0.5 mm², RD 0.3 m W1 +Wire, 0.5 mm², YE 0.3 m W1 diff --git a/tutorial/tutorial06.gv b/tutorial/tutorial06.gv index 965cad3..d449bdb 100644 --- a/tutorial/tutorial06.gv +++ b/tutorial/tutorial06.gv @@ -1,14 +1,14 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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 8981|female|4-pin}|{{1|2|3|4}|{+12V|GND|GND|+5V}}"] F_10_1 [label=< - +
Ferrule, crimp, 1.0 mm² YE Ferrule, crimp, 1.0 mm² YE
@@ -18,7 +18,7 @@ graph { _F1 [label=< - +
Ferrule, crimp, 0.5 mm² OG Ferrule, crimp, 0.5 mm² OG
@@ -28,7 +28,7 @@ graph { _F2 [label=< - +
Ferrule, crimp, 0.5 mm² OG Ferrule, crimp, 0.5 mm² OG
@@ -51,5 +51,5 @@ graph { F_10_1:e -- W1:w2:w edge [color="#000000:#000000:#000000"] F_10_1:e -- W1:w3:w - W1 [label=<
W1
4x0.5 mm²0.3 m
 
YEX1:1
BKX1:2
BKX1:3
RDX1:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
4x0.5 mm²0.3 m
YEX1:1
BKX1:2
BKX1:3
RDX1:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/tutorial/tutorial06.html b/tutorial/tutorial06.html index 85af609..ea4e921 100644 --- a/tutorial/tutorial06.html +++ b/tutorial/tutorial06.html @@ -1,165 +1,145 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex 8981 - -female - -4-pin - -1 - -2 - -3 - -4 - -+12V - -GND - -GND - -+5V +X1 + +X1 + +Molex 8981 + +female + +4-pin + +1 + +2 + +3 + +4 + ++12V + +GND + +GND + ++5V - -F_10_1 - - Ferrule, crimp, 1.0 mm² YE - - - -   - +F_10_1 + + Ferrule, crimp, 1.0 mm² YE + +   + - -W1 - - -W1 - -4x - -0.5 mm² - -0.3 m -  -YE -X1:1 - - - -BK -X1:2 - - - -BK -X1:3 - - - -RD -X1:4 - - - -  +W1 + + +W1 + +4x + +0.5 mm² + +0.3 m +YE +X1:1 + + + +BK +X1:2 + + + +BK +X1:3 + + + +RD +X1:4 + + + - -F_10_1:e--W1:w - - - +F_10_1:e--W1:w2:w + + + - -F_10_1:e--W1:w - - - +F_10_1:e--W1:w3:w + + + - -_F1 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F1 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F1:e--W1:w - - - +_F1:e--W1:w1:w + + + - -_F2 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F2 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F2:e--W1:w - - - +_F2:e--W1:w4:w + + + - -W1:e--X1:w - - - +W1:w1:e--X1:p1l:w + + + - -W1:e--X1:w - - - +W1:w2:e--X1:p2l:w + + + - -W1:e--X1:w - - - +W1:w3:e--X1:p3l:w + + + - -W1:e--X1:w - - - +W1:w4:e--X1:p4l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Ferrule, crimp, 0.5 mm², OG2
Connector, Ferrule, crimp, 1.0 mm², YE1
Connector, Molex 8981, female, 4 pins1X1
Wire, 0.5 mm², BK0.6mW1
Wire, 0.5 mm², RD0.3mW1
Wire, 0.5 mm², YE0.3mW1
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Ferrule, crimp, 0.5 mm², OG2
Connector, Ferrule, crimp, 1.0 mm², YE1
Connector, Molex 8981, female, 4 pins1X1
Wire, 0.5 mm², BK0.6mW1
Wire, 0.5 mm², RD0.3mW1
Wire, 0.5 mm², YE0.3mW1
\ No newline at end of file diff --git a/tutorial/tutorial06.png b/tutorial/tutorial06.png index b1314cd..6b52b85 100644 Binary files a/tutorial/tutorial06.png and b/tutorial/tutorial06.png differ diff --git a/tutorial/tutorial06.svg b/tutorial/tutorial06.svg index 75bae19..23b62e8 100644 --- a/tutorial/tutorial06.svg +++ b/tutorial/tutorial06.svg @@ -1,164 +1,144 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex 8981 - -female - -4-pin - -1 - -2 - -3 - -4 - -+12V - -GND - -GND - -+5V +X1 + +X1 + +Molex 8981 + +female + +4-pin + +1 + +2 + +3 + +4 + ++12V + +GND + +GND + ++5V - -F_10_1 - - Ferrule, crimp, 1.0 mm² YE - - - -   - +F_10_1 + + Ferrule, crimp, 1.0 mm² YE + +   + - -W1 - - -W1 - -4x - -0.5 mm² - -0.3 m -  -YE -X1:1 - - - -BK -X1:2 - - - -BK -X1:3 - - - -RD -X1:4 - - - -  +W1 + + +W1 + +4x + +0.5 mm² + +0.3 m +YE +X1:1 + + + +BK +X1:2 + + + +BK +X1:3 + + + +RD +X1:4 + + + - -F_10_1:e--W1:w - - - +F_10_1:e--W1:w2:w + + + - -F_10_1:e--W1:w - - - +F_10_1:e--W1:w3:w + + + - -_F1 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F1 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F1:e--W1:w - - - +_F1:e--W1:w1:w + + + - -_F2 - - Ferrule, crimp, 0.5 mm² OG - - - -   - +_F2 + + Ferrule, crimp, 0.5 mm² OG + +   + - -_F2:e--W1:w - - - +_F2:e--W1:w4:w + + + - -W1:e--X1:w - - - +W1:w1:e--X1:p1l:w + + + - -W1:e--X1:w - - - +W1:w2:e--X1:p2l:w + + + - -W1:e--X1:w - - - +W1:w3:e--X1:p3l:w + + + - -W1:e--X1:w - - - +W1:w4:e--X1:p4l:w + + + diff --git a/tutorial/tutorial07.bom.tsv b/tutorial/tutorial07.bom.tsv index 7885f32..7af5446 100644 --- a/tutorial/tutorial07.bom.tsv +++ b/tutorial/tutorial07.bom.tsv @@ -1,6 +1,6 @@ Item Qty Unit Designators Connector, Molex KK 254, female, 4 pins 6 X1, X2, X3, X4, X5, X6 -Wire, 0.25 mm², PK 1.0 m W1, W2, W3, W4, W5 -Wire, 0.25 mm², TQ 1.0 m W1, W2, W3, W4, W5 -Wire, 0.25 mm², VT 1.0 m W1, W2, W3, W4, W5 -Wire, 0.25 mm², YE 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², PK 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², TQ 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², VT 1.0 m W1, W2, W3, W4, W5 +Wire, 0.25 mm², YE 1.0 m W1, W2, W3, W4, W5 diff --git a/tutorial/tutorial07.gv b/tutorial/tutorial07.gv index a64e8c3..0844a97 100644 --- a/tutorial/tutorial07.gv +++ b/tutorial/tutorial07.gv @@ -1,7 +1,7 @@ graph { // Graph generated by WireViz // https://github.com/formatc1702/WireViz - graph [bgcolor=white fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + graph [bgcolor="#fffbf8" 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|SCL|SDA}|{1|2|3|4}}"] @@ -22,7 +22,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X1:p4r:e -- W1:w4:w W1:w4:e -- X2:p4l:w - W1 [label=<
W1
4x0.25 mm²0.2 m
 
X1:1TQX2:1
X1:2PKX2:2
X1:3YEX2:3
X1:4VTX2:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W1 [label=<
W1
4x0.25 mm²0.2 m
X1:1TQX2:1
X1:2PKX2:2
X1:3YEX2:3
X1:4VTX2:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#00ffff:#000000"] X3:p1r:e -- W2:w1:w W2:w1:e -- X2:p1l:w @@ -35,7 +35,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X3:p4r:e -- W2:w4:w W2:w4:e -- X2:p4l:w - W2 [label=<
W2
4x0.25 mm²0.2 m
 
X3:1TQX2:1
X3:2PKX2:2
X3:3YEX2:3
X3:4VTX2:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W2 [label=<
W2
4x0.25 mm²0.2 m
X3:1TQX2:1
X3:2PKX2:2
X3:3YEX2:3
X3:4VTX2:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#00ffff:#000000"] X3:p1r:e -- W3:w1:w W3:w1:e -- X4:p1l:w @@ -48,7 +48,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X3:p4r:e -- W3:w4:w W3:w4:e -- X4:p4l:w - W3 [label=<
W3
4x0.25 mm²0.2 m
 
X3:1TQX4:1
X3:2PKX4:2
X3:3YEX4:3
X3:4VTX4:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W3 [label=<
W3
4x0.25 mm²0.2 m
X3:1TQX4:1
X3:2PKX4:2
X3:3YEX4:3
X3:4VTX4:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#00ffff:#000000"] X5:p1r:e -- W4:w1:w W4:w1:e -- X4:p1l:w @@ -61,7 +61,7 @@ graph { edge [color="#000000:#8000ff:#000000"] X5:p4r:e -- W4:w4:w W4:w4:e -- X4:p4l:w - W4 [label=<
W4
4x0.25 mm²0.2 m
 
X5:1TQX4:1
X5:2PKX4:2
X5:3YEX4:3
X5:4VTX4:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W4 [label=<
W4
4x0.25 mm²0.2 m
X5:1TQX4:1
X5:2PKX4:2
X5:3YEX4:3
X5:4VTX4:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] edge [color="#000000:#00ffff:#000000"] X5:p1r:e -- W5:w1:w W5:w1:e -- X6:p1l:w @@ -74,5 +74,5 @@ graph { edge [color="#000000:#8000ff:#000000"] X5:p4r:e -- W5:w4:w W5:w4:e -- X6:p4l:w - W5 [label=<
W5
4x0.25 mm²0.2 m
 
X5:1TQX6:1
X5:2PKX6:2
X5:3YEX6:3
X5:4VTX6:4
 
> fillcolor=white margin=0 shape=box style="filled,dashed"] + W5 [label=<
W5
4x0.25 mm²0.2 m
X5:1TQX6:1
X5:2PKX6:2
X5:3YEX6:3
X5:4VTX6:4
> fillcolor=white margin=0 shape=box style="filled,dashed"] } diff --git a/tutorial/tutorial07.html b/tutorial/tutorial07.html index 664cb22..cddbdb1 100644 --- a/tutorial/tutorial07.html +++ b/tutorial/tutorial07.html @@ -1,656 +1,596 @@

Diagram

- - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² - -0.2 m -  -X1:1 -TQ -X2:1 - - - -X1:2 -PK -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -VT -X2:4 - - - -  +W1 + + +W1 + +4x + +0.25 mm² + +0.2 m +X1:1 +TQ +X2:1 + + + +X1:2 +PK +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +VT +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W2 - - -W2 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -TQ -X2:1 - - - -X3:2 -PK -X2:2 - - - -X3:3 -YE -X2:3 - - - -X3:4 -VT -X2:4 - - - -  +W2 + + +W2 + +4x + +0.25 mm² + +0.2 m +X3:1 +TQ +X2:1 + + + +X3:2 +PK +X2:2 + + + +X3:3 +YE +X2:3 + + + +X3:4 +VT +X2:4 + + + - -X3:e--W2:w - - - +X3:p1r:e--W2:w1:w + + + - -X3:e--W2:w - - - +X3:p2r:e--W2:w2:w + + + - -X3:e--W2:w - - - +X3:p3r:e--W2:w3:w + + + - -X3:e--W2:w - - - +X3:p4r:e--W2:w4:w + + + - -W3 - - -W3 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -TQ -X4:1 - - - -X3:2 -PK -X4:2 - - - -X3:3 -YE -X4:3 - - - -X3:4 -VT -X4:4 - - - -  +W3 + + +W3 + +4x + +0.25 mm² + +0.2 m +X3:1 +TQ +X4:1 + + + +X3:2 +PK +X4:2 + + + +X3:3 +YE +X4:3 + + + +X3:4 +VT +X4:4 + + + - -X3:e--W3:w - - - +X3:p1r:e--W3:w1:w + + + - -X3:e--W3:w - - - +X3:p2r:e--W3:w2:w + + + - -X3:e--W3:w - - - +X3:p3r:e--W3:w3:w + + + - -X3:e--W3:w - - - +X3:p4r:e--W3:w4:w + + + - -X4 - -X4 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X4 + +X4 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X5 - -X5 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X5 + +X5 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W4 - - -W4 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -TQ -X4:1 - - - -X5:2 -PK -X4:2 - - - -X5:3 -YE -X4:3 - - - -X5:4 -VT -X4:4 - - - -  +W4 + + +W4 + +4x + +0.25 mm² + +0.2 m +X5:1 +TQ +X4:1 + + + +X5:2 +PK +X4:2 + + + +X5:3 +YE +X4:3 + + + +X5:4 +VT +X4:4 + + + - -X5:e--W4:w - - - +X5:p1r:e--W4:w1:w + + + - -X5:e--W4:w - - - +X5:p2r:e--W4:w2:w + + + - -X5:e--W4:w - - - +X5:p3r:e--W4:w3:w + + + - -X5:e--W4:w - - - +X5:p4r:e--W4:w4:w + + + - -W5 - - -W5 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -TQ -X6:1 - - - -X5:2 -PK -X6:2 - - - -X5:3 -YE -X6:3 - - - -X5:4 -VT -X6:4 - - - -  +W5 + + +W5 + +4x + +0.25 mm² + +0.2 m +X5:1 +TQ +X6:1 + + + +X5:2 +PK +X6:2 + + + +X5:3 +YE +X6:3 + + + +X5:4 +VT +X6:4 + + + - -X5:e--W5:w - - - +X5:p1r:e--W5:w1:w + + + - -X5:e--W5:w - - - +X5:p2r:e--W5:w2:w + + + - -X5:e--W5:w - - - +X5:p3r:e--W5:w3:w + + + - -X5:e--W5:w - - - +X5:p4r:e--W5:w4:w + + + - -X6 - -X6 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X6 + +X6 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X2:w - - - +W2:w1:e--X2:p1l:w + + + - -W2:e--X2:w - - - +W2:w2:e--X2:p2l:w + + + - -W2:e--X2:w - - - +W2:w3:e--X2:p3l:w + + + - -W2:e--X2:w - - - +W2:w4:e--X2:p4l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p2l:w + + + - -W3:e--X4:w - - - +W3:w3:e--X4:p3l:w + + + - -W3:e--X4:w - - - +W3:w4:e--X4:p4l:w + + + - -W4:e--X4:w - - - +W4:w1:e--X4:p1l:w + + + - -W4:e--X4:w - - - +W4:w2:e--X4:p2l:w + + + - -W4:e--X4:w - - - +W4:w3:e--X4:p3l:w + + + - -W4:e--X4:w - - - +W4:w4:e--X4:p4l:w + + + - -W5:e--X6:w - - - +W5:w1:e--X6:p1l:w + + + - -W5:e--X6:w - - - +W5:w2:e--X6:p2l:w + + + - -W5:e--X6:w - - - +W5:w3:e--X6:p3l:w + + + - -W5:e--X6:w - - - +W5:w4:e--X6:p4l:w + + + -

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins6X1, X2, X3, X4, X5, X6
Wire, 0.25 mm², PK1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², TQ1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², VT1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², YE1.0mW1, W2, W3, W4, W5
\ No newline at end of file +

Bill of Materials

ItemQtyUnitDesignators
Connector, Molex KK 254, female, 4 pins6X1, X2, X3, X4, X5, X6
Wire, 0.25 mm², PK1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², TQ1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², VT1.0mW1, W2, W3, W4, W5
Wire, 0.25 mm², YE1.0mW1, W2, W3, W4, W5
\ No newline at end of file diff --git a/tutorial/tutorial07.png b/tutorial/tutorial07.png index 8bf7569..3dc7ed9 100644 Binary files a/tutorial/tutorial07.png and b/tutorial/tutorial07.png differ diff --git a/tutorial/tutorial07.svg b/tutorial/tutorial07.svg index af65aaf..f2e8d77 100644 --- a/tutorial/tutorial07.svg +++ b/tutorial/tutorial07.svg @@ -1,655 +1,595 @@ - - - - - + + + +%3 + - -X1 - -X1 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X1 + +X1 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W1 - - -W1 - -4x - -0.25 mm² - -0.2 m -  -X1:1 -TQ -X2:1 - - - -X1:2 -PK -X2:2 - - - -X1:3 -YE -X2:3 - - - -X1:4 -VT -X2:4 - - - -  +W1 + + +W1 + +4x + +0.25 mm² + +0.2 m +X1:1 +TQ +X2:1 + + + +X1:2 +PK +X2:2 + + + +X1:3 +YE +X2:3 + + + +X1:4 +VT +X2:4 + + + - -X1:e--W1:w - - - +X1:p1r:e--W1:w1:w + + + - -X1:e--W1:w - - - +X1:p2r:e--W1:w2:w + + + - -X1:e--W1:w - - - +X1:p3r:e--W1:w3:w + + + - -X1:e--W1:w - - - +X1:p4r:e--W1:w4:w + + + - -X2 - -X2 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X2 + +X2 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X3 - -X3 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X3 + +X3 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W2 - - -W2 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -TQ -X2:1 - - - -X3:2 -PK -X2:2 - - - -X3:3 -YE -X2:3 - - - -X3:4 -VT -X2:4 - - - -  +W2 + + +W2 + +4x + +0.25 mm² + +0.2 m +X3:1 +TQ +X2:1 + + + +X3:2 +PK +X2:2 + + + +X3:3 +YE +X2:3 + + + +X3:4 +VT +X2:4 + + + - -X3:e--W2:w - - - +X3:p1r:e--W2:w1:w + + + - -X3:e--W2:w - - - +X3:p2r:e--W2:w2:w + + + - -X3:e--W2:w - - - +X3:p3r:e--W2:w3:w + + + - -X3:e--W2:w - - - +X3:p4r:e--W2:w4:w + + + - -W3 - - -W3 - -4x - -0.25 mm² - -0.2 m -  -X3:1 -TQ -X4:1 - - - -X3:2 -PK -X4:2 - - - -X3:3 -YE -X4:3 - - - -X3:4 -VT -X4:4 - - - -  +W3 + + +W3 + +4x + +0.25 mm² + +0.2 m +X3:1 +TQ +X4:1 + + + +X3:2 +PK +X4:2 + + + +X3:3 +YE +X4:3 + + + +X3:4 +VT +X4:4 + + + - -X3:e--W3:w - - - +X3:p1r:e--W3:w1:w + + + - -X3:e--W3:w - - - +X3:p2r:e--W3:w2:w + + + - -X3:e--W3:w - - - +X3:p3r:e--W3:w3:w + + + - -X3:e--W3:w - - - +X3:p4r:e--W3:w4:w + + + - -X4 - -X4 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X4 + +X4 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -X5 - -X5 - -Molex KK 254 - -female - -4-pin - -GND - -VCC - -SCL - -SDA - -1 - -2 - -3 - -4 +X5 + +X5 + +Molex KK 254 + +female + +4-pin + +GND + +VCC + +SCL + +SDA + +1 + +2 + +3 + +4 - -W4 - - -W4 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -TQ -X4:1 - - - -X5:2 -PK -X4:2 - - - -X5:3 -YE -X4:3 - - - -X5:4 -VT -X4:4 - - - -  +W4 + + +W4 + +4x + +0.25 mm² + +0.2 m +X5:1 +TQ +X4:1 + + + +X5:2 +PK +X4:2 + + + +X5:3 +YE +X4:3 + + + +X5:4 +VT +X4:4 + + + - -X5:e--W4:w - - - +X5:p1r:e--W4:w1:w + + + - -X5:e--W4:w - - - +X5:p2r:e--W4:w2:w + + + - -X5:e--W4:w - - - +X5:p3r:e--W4:w3:w + + + - -X5:e--W4:w - - - +X5:p4r:e--W4:w4:w + + + - -W5 - - -W5 - -4x - -0.25 mm² - -0.2 m -  -X5:1 -TQ -X6:1 - - - -X5:2 -PK -X6:2 - - - -X5:3 -YE -X6:3 - - - -X5:4 -VT -X6:4 - - - -  +W5 + + +W5 + +4x + +0.25 mm² + +0.2 m +X5:1 +TQ +X6:1 + + + +X5:2 +PK +X6:2 + + + +X5:3 +YE +X6:3 + + + +X5:4 +VT +X6:4 + + + - -X5:e--W5:w - - - +X5:p1r:e--W5:w1:w + + + - -X5:e--W5:w - - - +X5:p2r:e--W5:w2:w + + + - -X5:e--W5:w - - - +X5:p3r:e--W5:w3:w + + + - -X5:e--W5:w - - - +X5:p4r:e--W5:w4:w + + + - -X6 - -X6 - -Molex KK 254 - -female - -4-pin - -1 - -2 - -3 - -4 - -GND - -VCC - -SCL - -SDA +X6 + +X6 + +Molex KK 254 + +female + +4-pin + +1 + +2 + +3 + +4 + +GND + +VCC + +SCL + +SDA - -W1:e--X2:w - - - +W1:w1:e--X2:p1l:w + + + - -W1:e--X2:w - - - +W1:w2:e--X2:p2l:w + + + - -W1:e--X2:w - - - +W1:w3:e--X2:p3l:w + + + - -W1:e--X2:w - - - +W1:w4:e--X2:p4l:w + + + - -W2:e--X2:w - - - +W2:w1:e--X2:p1l:w + + + - -W2:e--X2:w - - - +W2:w2:e--X2:p2l:w + + + - -W2:e--X2:w - - - +W2:w3:e--X2:p3l:w + + + - -W2:e--X2:w - - - +W2:w4:e--X2:p4l:w + + + - -W3:e--X4:w - - - +W3:w1:e--X4:p1l:w + + + - -W3:e--X4:w - - - +W3:w2:e--X4:p2l:w + + + - -W3:e--X4:w - - - +W3:w3:e--X4:p3l:w + + + - -W3:e--X4:w - - - +W3:w4:e--X4:p4l:w + + + - -W4:e--X4:w - - - +W4:w1:e--X4:p1l:w + + + - -W4:e--X4:w - - - +W4:w2:e--X4:p2l:w + + + - -W4:e--X4:w - - - +W4:w3:e--X4:p3l:w + + + - -W4:e--X4:w - - - +W4:w4:e--X4:p4l:w + + + - -W5:e--X6:w - - - +W5:w1:e--X6:p1l:w + + + - -W5:e--X6:w - - - +W5:w2:e--X6:p2l:w + + + - -W5:e--X6:w - - - +W5:w3:e--X6:p3l:w + + + - -W5:e--X6:w - - - +W5:w4:e--X6:p4l:w + + +