diff --git a/idea/example2.dot b/idea/example2.dot new file mode 100644 index 0000000..6fe2c88 --- /dev/null +++ b/idea/example2.dot @@ -0,0 +1,47 @@ +graph G { + graph [rankdir = LR, ranksep=2, fontname = "arial"]; + edge [arrowhead=none, fontname = "arial"]; + node [shape=record, style=rounded, fontname = "arial"]; + + X1[label="X1 | Molex KK 254 8-pin | female | {{GND|VCC|SCL|SDA|MISO|MOSI|SCK|N/C} | {1|2|3|4|5|6|7|8}} "]; + X2[label="X2 | Molex KK 254 4-pin | female | {{1|2|3|4} | {GND|VCC|SCL|SDA}}"]; + X3[label="X3 | Molex KK 254 4-pin | female | {{1|2|3|4} | {GND|VCC|SCL|SDA}}"]; + X4[label="X4 | Molex KK 254 5-pin | female | {{1|2|3|4|5} | {GND|VCC|MISO|MOSI|SCK}}"]; + + W1[label="W1 | 4x 0,14 mm² | 0.2 m | {{1|2|3|4}|{BK|RD|YE|GN}|{1|2|3|4}}}"]; + W2[label="W2 | 4x 0,14 mm² | 0.2 m | {{1|2|3|4}|{BK|RD|YE|GN}|{1|2|3|4}}}"]; + W3[label="W3 | 5x 0,14 mm² | 0.2 m | {{1|2|3|4|5}|{BK|RD|BU|OR|VT}|{1|2|3|4|5}}}"]; + + {edge[style=bold] + // GND + {edge[color="#000000:#000000:#000000"] + X1:p1 -- W1:w1i; W1:w1o -- X2:p1; + X1:p1 -- W2:w1i; W2:w1o -- X3:p1; + X1:p1 -- W3:w1i; W3:w1o -- X4:p1; + } + + // VCC + {edge[color="#000000:#ff0000:#000000"] + X1:p2 -- W1:w2i; W1:w2o -- X2:p2; + X1:p2 -- W2:w2i; W2:w2o -- X3:p2; + X1:p2 -- W3:w2i; W3:w2o -- X4:p2; + } + + // SCL + {edge[color="#000000:#ffff00:#000000"] + X1:p3 -- W1:w3i; W1:w3o -- X2:p3; + X1:p3 -- W2:w3i; W2:w3o -- X3:p3; + } + + // SDA + {edge[color="#000000:#008000:#000000"] + X1:p4 -- W1:w4i; W1:w4o -- X2:p4; + X1:p4 -- W2:w4i; W2:w4o -- X3:p4; + } + + // SPI + {edge[color="#0000:#0080ff:#000000"] X1:p5 -- W3:w3i; W3:w3o -- X4:p3; } + {edge[color="#0000:#ff8000:#000000"] X1:p6 -- W3:w4i; W3:w4o -- X4:p4; } + {edge[color="#0000:#8000ff:#000000"] X1:p7 -- W3:w5i; W3:w5o -- X4:p5; } + } +} diff --git a/idea/example2.png b/idea/example2.png new file mode 100644 index 0000000..c302e15 Binary files /dev/null and b/idea/example2.png differ diff --git a/readme.md b/readme.md index b1e40b7..31eeda0 100644 --- a/readme.md +++ b/readme.md @@ -81,6 +81,10 @@ GraphViz code generated by parser: } } +[Example 2](idea/example2.dot) + +![](idea/example2.png) + ## Status This is very much a work in progress, and mainly an idea in my head.