-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file will be deleted before merging into `dev` Add `->` to example file Amend test file Expand some connector names, include X4 as a connector that does not use auto-generation Set WIRE to use auto-generated designator
- Loading branch information
1 parent
e85ee5d
commit 524b80c
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
connectors: | ||
JSTMALE: &JST_SM # use generic names here, assign designators at generation time | ||
type: JST SM | ||
subtype: male | ||
pincount: 4 | ||
JSTFEMALE: | ||
<<: *JST_SM # easily create JSTMALE's matching connector | ||
subtype: female | ||
X4: # this connector is only used once, use fixed designator here already | ||
type: Screw terminal connector | ||
pincount: 4 | ||
color: GN | ||
S: | ||
# autogenerate: true should no longer be required with the new syntax | ||
style: simple | ||
type: Splice | ||
F: | ||
style: simple | ||
type: Ferrule | ||
color: GY | ||
|
||
|
||
cables: | ||
CABLE: | ||
wirecount: 4 | ||
color_code: DIN | ||
length: 0.1 | ||
WIRE: | ||
wirecount: 1 | ||
colors: [BK] | ||
length: 0.1 | ||
|
||
connections: | ||
- | ||
- JSTMALE.X1: [1-4] # use `.` syntax to generate a new instance of JSTMALE, named X1 | ||
- CABLE.W1: [1-4] # same syntax for cables | ||
- [S., S., S.S1, S.] # splice W1 and W2 together; only wire #3 needs a user-defined designator | ||
- CABLE.W2: [1-4] | ||
- JSTFEMALE.X2: [1-4] | ||
- <=> # mate X2 and X3 | ||
- JSTMALE.X3: [1-4] | ||
- CABLE.W3: [1-4] | ||
- [F., F., F., F.] | ||
- -> # insert ferrules into screw terminal connector | ||
- X4: [2,1,4,3] # X4 does not require auto-generation, thus no `.` syntax here | ||
- | ||
- S1: [1] # reuse previously generated splice | ||
# TODO: Make it work with `- F1` only, making pin 1 is implied | ||
- WIRE.: [1] # We don't care about a simple wire's designator, auto-generate please! | ||
# TODO: Make it work with `- W.W4: 1`, dropping the need for `[]` | ||
- X2: [4] |