Fixes, add cable/wire info
This commit is contained in:
parent
ba6b5ef9bc
commit
f347dacd2b
76
syntax.md
76
syntax.md
@ -28,13 +28,18 @@ connections: # list of all connections to be made
|
|||||||
## Connector attributes
|
## Connector attributes
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
X1: # unique connector designator/name
|
<string>: # unique connector designator/name
|
||||||
# general information about a connector (all optional)
|
# general information about a connector (all optional)
|
||||||
type: <string>
|
type: <string>
|
||||||
subtype: <string>
|
subtype: <string>
|
||||||
color: <colorcode> # see below
|
color: <color> # see below
|
||||||
notes: <string>
|
notes: <string>
|
||||||
|
|
||||||
|
# product information (all optional)
|
||||||
|
manufacturer: <string>
|
||||||
|
manufacturer_part_number: <string>
|
||||||
|
internal_part_number: <string>
|
||||||
|
|
||||||
# pinout information
|
# pinout information
|
||||||
# at least one of the following must be specified
|
# at least one of the following must be specified
|
||||||
# if more than one is specified, list lenghts must match pincount, and each other
|
# if more than one is specified, list lenghts must match pincount, and each other
|
||||||
@ -42,18 +47,13 @@ X1: # unique connector designator/name
|
|||||||
pins: <List> # if omitted, is autofilled with [1, 2, ..., pincount]
|
pins: <List> # if omitted, is autofilled with [1, 2, ..., pincount]
|
||||||
pinlabels: <List> # if omitted, is autofilled with blanks
|
pinlabels: <List> # if omitted, is autofilled with blanks
|
||||||
|
|
||||||
# product information (all optional)
|
# rendering information (all optional)
|
||||||
manufacturer: <string>
|
style: <style> # may be set to simple for single pin connectors
|
||||||
manufacturer_part_number: <string>
|
show_name: <bool> # defaults to true for regular connectors,
|
||||||
internal_part_number: <string>
|
|
||||||
|
|
||||||
# rendering information
|
|
||||||
style: <style> # optional; may be set to simple for single pin connectors
|
|
||||||
show_name: <bool> # optional; defaults to true for regular connectors,
|
|
||||||
# false for simple connectors
|
# false for simple connectors
|
||||||
show_pincount: <bool> # opional; defaults to true for regular connectors
|
show_pincount: <bool> # defaults to true for regular connectors
|
||||||
# false for simple connectors
|
# false for simple connectors
|
||||||
hide_disconnected_pins: <bool> # optional; defaults to false
|
hide_disconnected_pins: <bool> # defaults to false
|
||||||
|
|
||||||
# loops and shorts (#48)
|
# loops and shorts (#48)
|
||||||
loops: <List> # TODO
|
loops: <List> # TODO
|
||||||
@ -69,21 +69,65 @@ X1: # unique connector designator/name
|
|||||||
|
|
||||||
## Cable attributes
|
## Cable attributes
|
||||||
|
|
||||||
<!-- TODO -->
|
```yaml
|
||||||
|
<string>: # unique cable designator/name
|
||||||
|
# general information about a connector (all optional)
|
||||||
|
category: <category> # may be set to bundle;
|
||||||
|
# generates one BOM item for every wire in the bundle
|
||||||
|
# instead of a single item for the entire cable;
|
||||||
|
# renders with a dashed outline
|
||||||
|
type: <string>
|
||||||
|
gauge: <int/float/string> # allowed formats:
|
||||||
|
# <int/float> is assumed to be mm2
|
||||||
|
# <int/float> mm2 is understood
|
||||||
|
# <int> AWG is understood
|
||||||
|
# <string> custom units and formats are allowed
|
||||||
|
# but unavailable for auto-conversion
|
||||||
|
show_equiv: <bool> # defaults to false; can auto-convert between mm2 and AWG
|
||||||
|
# and display the result when set to true
|
||||||
|
length: <int/float> # is assumed to be in meters
|
||||||
|
shield: <bool> # defaults to false
|
||||||
|
# the shield can be accessed in connections
|
||||||
|
# using 's' as the wire number
|
||||||
|
notes: <string>
|
||||||
|
|
||||||
|
# product information (all optional)
|
||||||
|
manufacturer: <string>
|
||||||
|
manufacturer_part_number: <string>
|
||||||
|
internal_part_number: <string>
|
||||||
|
|
||||||
|
# conductor information
|
||||||
|
# the following combinations are permitted:
|
||||||
|
# wirecount only no color information is specified
|
||||||
|
# colors only wirecount is inferred from list length
|
||||||
|
# wirecount + color_code colors are auto-generated based on the specified
|
||||||
|
# color code (see below) to match the wirecount
|
||||||
|
# wirecount + colors colors list is trimmed or repeated to match the wirecount
|
||||||
|
wirecount: <int>
|
||||||
|
colors: <List> # list of colors (see below)
|
||||||
|
color_code: <str> # one of the supported cable color codes (see below)
|
||||||
|
|
||||||
|
# rendering information (all optional)
|
||||||
|
show_name: <bool> # defaults to true
|
||||||
|
show_wirecount: <bool> # defaults to true
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Connection sets
|
## Connection sets
|
||||||
|
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
|
|
||||||
## Color codes
|
## Colors
|
||||||
|
|
||||||
A color code is an uppercase, two character string.
|
Colors are defined via uppercase, two character strings.
|
||||||
Striped/banded wires can be specified by simply concatenating multiple color codes, with no space inbetween.
|
Striped/banded wires can be specified by simply concatenating multiple colors, with no space inbetween, eg. `GNYE` for green-yellow.
|
||||||
|
|
||||||
```
|
```
|
||||||
TODO: list valid colors
|
TODO: list valid colors
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Cable color codes
|
||||||
|
|
||||||
## Multiline strings
|
## Multiline strings
|
||||||
|
|
||||||
Accepted in the following fields:
|
Accepted in the following fields:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user