Skip to content

Commit e9a4621

Browse files
document inline config
1 parent 5092a9f commit e9a4621

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

format.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Components are able to accept "flags", which are other punctuation characters an
5151

5252
To include component values, pin numbers, etc, somewhere in the drawing but not touching any wires or other components, you can write component values - these are formatted as the reference designator (same as in circuit) followed by a `:` and the value parameter (which stops at the first whitespace). *I usually put these in a "BOM section" below the circuit itself but you could also put them right next to the component.*
5353

54-
For simple components, this is usually just a value rating. For more specific components (mostly semiconductor devices) this is usually the part number.
54+
For simple components, this is usually just a value rating, but *without* the units (only the Metric prefix). For more specific components (mostly semiconductor devices) this is usually the part number.
5555

5656
Examples:
5757

@@ -62,3 +62,7 @@ Examples:
6262
* `D7:1N4001` -- again, part number
6363
* `U1:SN74LS08N,14,1,2,7,3` -- some components let you label pins with whatever you want (in this case just numbers). They start at the top-leftmost and follow **counterclockwise** to follow with the pin-numbering of most IC's.
6464
* `R2:10,5` -- this is formatted as "10 Ω 5 W". The second value is the rating; for resistors, this is a wattage, for most else, this is a maximum voltage.
65+
66+
## Inline configuration values
67+
68+
You can specify configuration values for rendering the components inline in the document by writing `!name=value!` in your document. See the help output of the Schemascii CLI for the different options (in the README) or look at the config options at the top of [`configs.py`](https://github.com/dragoncoder047/schemascii/blob/main/schemascii/configs.py). The most common options I use are `scale` and `padding`.

0 commit comments

Comments
 (0)