Skip to content

Instantly share code, notes, and snippets.

@jottr
Last active October 20, 2021 01:41
Show Gist options
  • Save jottr/320f12617ba621cf220de250dd048f8f to your computer and use it in GitHub Desktop.
Save jottr/320f12617ba621cf220de250dd048f8f to your computer and use it in GitHub Desktop.
// This renders the wiring diagram for the Makerbase 3D Touch probe for the Crealty 32bit Ender 3v2 board
digraph {
//rankdir=LR;
node [ shape=record ];
touch [label="
<G1> G|
<V> 5V|
<S> S|
<G2> G|
<Z> Z-
"];
ender [label="
<G1> G|
<V> V|
<I> In|
<G2> G|
<O> Out
"];
touch:G1 -> ender:G1 [color="brown"]
touch:V -> ender:V [color="red"]
touch:S -> ender:I [color="peachpuff"]
touch:G2 -> ender:G2 [color="black"]
touch:Z -> ender:O [color="grey"]
}
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
-->
<!-- Pages: 1 -->
<svg width="157pt" height="118pt"
viewBox="0.00 0.00 157.00 118.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 114)">
<polygon fill="white" stroke="transparent" points="-4,4 -4,-114 153,-114 153,4 -4,4"/>
<!-- touch -->
<g id="node1" class="node">
<title>touch</title>
<polygon fill="none" stroke="black" points="0,-73.5 0,-109.5 142,-109.5 142,-73.5 0,-73.5"/>
<text text-anchor="middle" x="13.5" y="-87.8" font-family="Times,serif" font-size="14.00">G</text>
<polyline fill="none" stroke="black" points="27,-73.5 27,-109.5 "/>
<text text-anchor="middle" x="44" y="-87.8" font-family="Times,serif" font-size="14.00">5V</text>
<polyline fill="none" stroke="black" points="61,-73.5 61,-109.5 "/>
<text text-anchor="middle" x="73" y="-87.8" font-family="Times,serif" font-size="14.00">S</text>
<polyline fill="none" stroke="black" points="85,-73.5 85,-109.5 "/>
<text text-anchor="middle" x="98.5" y="-87.8" font-family="Times,serif" font-size="14.00">G</text>
<polyline fill="none" stroke="black" points="112,-73.5 112,-109.5 "/>
<text text-anchor="middle" x="127" y="-87.8" font-family="Times,serif" font-size="14.00">Z&#45;</text>
</g>
<!-- ender -->
<g id="node2" class="node">
<title>ender</title>
<polygon fill="none" stroke="black" points="3,-0.5 3,-36.5 149,-36.5 149,-0.5 3,-0.5"/>
<text text-anchor="middle" x="16.5" y="-14.8" font-family="Times,serif" font-size="14.00">G</text>
<polyline fill="none" stroke="black" points="30,-0.5 30,-36.5 "/>
<text text-anchor="middle" x="43.5" y="-14.8" font-family="Times,serif" font-size="14.00">V</text>
<polyline fill="none" stroke="black" points="57,-0.5 57,-36.5 "/>
<text text-anchor="middle" x="71" y="-14.8" font-family="Times,serif" font-size="14.00">In</text>
<polyline fill="none" stroke="black" points="85,-0.5 85,-36.5 "/>
<text text-anchor="middle" x="98.5" y="-14.8" font-family="Times,serif" font-size="14.00">G</text>
<polyline fill="none" stroke="black" points="112,-0.5 112,-36.5 "/>
<text text-anchor="middle" x="130.5" y="-14.8" font-family="Times,serif" font-size="14.00">Out</text>
</g>
<!-- touch&#45;&gt;ender -->
<g id="edge1" class="edge">
<title>touch:G1&#45;&gt;ender:G1</title>
<path fill="none" stroke="brown" d="M13,-73C13,-60.96 14.69,-55.76 15.53,-47.14"/>
<polygon fill="brown" stroke="brown" points="19.03,-47.15 16,-37 12.04,-46.83 19.03,-47.15"/>
</g>
<!-- touch&#45;&gt;ender -->
<g id="edge2" class="edge">
<title>touch:V&#45;&gt;ender:V</title>
<path fill="none" stroke="red" d="M44,-73C44,-61 43.44,-55.75 43.16,-47.13"/>
<polygon fill="red" stroke="red" points="46.65,-46.94 43,-37 39.65,-47.05 46.65,-46.94"/>
</g>
<!-- touch&#45;&gt;ender -->
<g id="edge3" class="edge">
<title>touch:S&#45;&gt;ender:I</title>
<path fill="none" stroke="peachpuff" d="M73,-73C73,-60.98 71.88,-55.75 71.31,-47.13"/>
<polygon fill="peachpuff" stroke="peachpuff" points="74.81,-46.89 71,-37 67.81,-47.1 74.81,-46.89"/>
</g>
<!-- touch&#45;&gt;ender -->
<g id="edge4" class="edge">
<title>touch:G2&#45;&gt;ender:G2</title>
<path fill="none" stroke="black" d="M99,-73C99,-61 99,-55.75 99,-47.12"/>
<polygon fill="black" stroke="black" points="102.5,-47 99,-37 95.5,-47 102.5,-47"/>
</g>
<!-- touch&#45;&gt;ender -->
<g id="edge5" class="edge">
<title>touch:Z&#45;&gt;ender:O</title>
<path fill="none" stroke="grey" d="M127,-73C127,-60.93 129.25,-55.77 130.38,-47.15"/>
<polygon fill="grey" stroke="grey" points="133.88,-47.2 131,-37 126.89,-46.77 133.88,-47.2"/>
</g>
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment