diff --git a/.gitignore b/.gitignore
index c121d2f..cc614ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ __pycache__
build
data
dist
+venv/
diff --git a/README.md b/README.md
index 3b90b58..b96dd42 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ WireViz is a tool for easily documenting cables, wiring harnesses and connector
* [DIN 47100](https://en.wikipedia.org/wiki/DIN_47100) (WT/BN/GN/YE/GY/PK/BU/RD/BK/VT/...)
* [IEC 62](https://en.wikipedia.org/wiki/Electronic_color_code#Color_band_system) (BN/RD/OR/YE/GN/BU/VT/GY/WT/BK/...)
* Understands wire gauge in mm² or AWG
- * Optionally auto-calculates and displays AWG equivalent when specifying mm²
+ * Optionally auto-calculates equivalent gauge between mm² and AWG
* Allows more than one connector per side, as well as loopbacks
* Allows for easy-autorouting for 1-to-1 wiring
* Generates BOM (Bill of Materials)
@@ -63,7 +63,7 @@ cables:
connections:
-
- - X1: [5,2,1]
+ - X1: [5,2,3]
- W1: [1,2,3]
- X2: [1,3,2]
-
@@ -88,14 +88,6 @@ Output file:
See the [tutorial page](tutorial/readme.md) for sample code,
as well as the [example gallery](examples/readme.md) to see more of what WireViz can do.
-### (Re-)Building the example projects
-
-If you would like to rebuild all of the included demos, examples and tutorials, use the ```build_examples.py``` script:
-
-```cd src/wireviz
-./build_examples.py
-```
-
## Usage
```
@@ -112,6 +104,13 @@ mywire.bom.tsv BOM (bill of materials) as tab-separated text file
mywire.html HTML page with wiring diagram and BOM embedded
```
+### (Re-)Building the example projects
+
+If you would like to rebuild all of the included demos, examples and tutorials, use the ```build_examples.py``` script:
+
+```cd src/wireviz
+./build_examples.py
+```
## Status
This is very much a [work in progress](https://github.com/formatc1702/WireViz/projects/1). Source code, API, syntax and functionality may change wildly at any time.
diff --git a/examples/demo01.gv b/examples/demo01.gv
index 24abe51..09194a3 100644
--- a/examples/demo01.gv
+++ b/examples/demo01.gv
@@ -13,9 +13,9 @@ graph {
X1:p2r:e -- W1:w2:w
W1:w2:e -- X2:p3l:w
edge [color="#000000:#00ff00:#000000"]
- X1:p1r:e -- W1:w3:w
+ X1:p3r:e -- W1:w3:w
W1:w3:e -- X2:p2l:w
edge [color="#000000"]
X1:p5r:e -- W1:ws:w
- W1 [label=<
|
| |
| X1:5 | WH | X2:1 | | | X1:2 | BN | X2:3 | | | X1:1 | GN | X2:2 | | | | | X1:5 | Shield | | | | |
|
> fillcolor=white margin=0 shape=box style=""]
+ W1 [label=< |
| |
| X1:5 | WH | X2:1 | | | X1:2 | BN | X2:3 | | | X1:3 | GN | X2:2 | | | | | X1:5 | Shield | | | | |
|
> fillcolor=white margin=0 shape=box style=""]
}
diff --git a/examples/demo01.html b/examples/demo01.html
index cfedd06..d5231e0 100644
--- a/examples/demo01.html
+++ b/examples/demo01.html
@@ -83,7 +83,7 @@
-X1:1
+X1:3
GN
X2:2
@@ -112,9 +112,9 @@
X1:e--W1:w
-
-
-
+
+
+
diff --git a/examples/demo01.png b/examples/demo01.png
index 6e56db1..77efff4 100644
Binary files a/examples/demo01.png and b/examples/demo01.png differ
diff --git a/examples/demo01.svg b/examples/demo01.svg
index bc7b2f9..517d58e 100644
--- a/examples/demo01.svg
+++ b/examples/demo01.svg
@@ -83,7 +83,7 @@
-X1:1
+X1:3
GN
X2:2
@@ -112,9 +112,9 @@
X1:e--W1:w
-
-
-
+
+
+
diff --git a/examples/demo01.yml b/examples/demo01.yml
index b125176..ae1b4a5 100644
--- a/examples/demo01.yml
+++ b/examples/demo01.yml
@@ -18,7 +18,7 @@ cables:
connections:
-
- - X1: [5,2,1]
+ - X1: [5,2,3]
- W1: [1,2,3]
- X2: [1,3,2]
-
diff --git a/examples/ex02.bom.tsv b/examples/ex02.bom.tsv
index 4c8d11e..67cb7f0 100644
--- a/examples/ex02.bom.tsv
+++ b/examples/ex02.bom.tsv
@@ -1,4 +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.6 m W1, W2, W3
+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 b914864..8f29aaf 100644
--- a/examples/ex02.gv
+++ b/examples/ex02.gv
@@ -28,5 +28,5 @@ graph {
edge [color="#000000:#ff0000:#000000"]
X1:p2r:e -- W3:w2:w
W3:w2:e -- X4:p2l:w
- W3 [label=<| W3 | | 2x | 0.25 mm² (24 AWG) | 0.2 m |
|
| |
|
> fillcolor=white margin=0 shape=box style=""]
+ W3 [label=<| W3 | | 2x | 20 AWG (0.75 mm²) | 0.2 m |
|
| |
|
> fillcolor=white margin=0 shape=box style=""]
}
diff --git a/examples/ex02.html b/examples/ex02.html
index 148fa57..be3f0ab 100644
--- a/examples/ex02.html
+++ b/examples/ex02.html
@@ -119,7 +119,7 @@
2x
-0.25 mm² (24 AWG)
+20 AWG (0.75 mm²)
0.2 m
@@ -255,4 +255,4 @@
-Bill of Materials
| 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.6 | m | W1, W2, W3 |