Skip to content
kevin faust edited this page Jul 27, 2015 · 13 revisions

Grab the workspace files: $ go get github.com/furryfaust/textelectronics

Create your first circuit: $ touch circuit.txt

Let's add our first component. Components are basically a pattern of characters in the x and y axis. Our first component will be an input component. A input component's pattern is a curly brace, then an id, then a closing curly brace.

{A}

Lets run it through Text Electronics: $ bin/textelectronics circuit.txt

----------
Input ID: A Out: 0
{A}

The default value of an input component is 0 but we can set it:

$ bin/textelectronics circuit.txt A:1
----------
Input ID: A Out: 1
{A}