Add example 2 as YAML file

This commit is contained in:
Daniel Rojas 2020-05-27 18:50:44 +02:00
parent eaf57a81bc
commit e829294c70

85
src/example2.yml Normal file
View File

@ -0,0 +1,85 @@
templates:
- &molex_f
type: Molex KK 254
gender: female
- &con_i2c
pinout: [GND, +5V, SCL, SDA]
- &wire_i2c
mm2: 0.14
length: 0.2
colors: [BK, RD, YE, GN]
nodes:
X1:
<<: *molex_f
pinout: [GND, +5V, SCL, SDA, MISO, MOSI, SCK, N/C]
X2:
<<: *molex_f
<<: *con_i2c
X3:
<<: *molex_f
<<: *con_i2c
X4:
<<: *molex_f
pinout: [GND, +12V, MISO, MOSI, flachstecker]
X5:
type: Molex Micro-Fit
gender: male
pinout: [GND, +12V]
wires:
W1:
<<: *wire_i2c
W2:
<<: *wire_i2c
W3:
mm2: 0.14
length: 0.2
colors: [BK, BU, OG, VT]
W4:
mm2: 0.5
length: 0.35
colors: [BK, RD]
connections:
-
- X1: [1-4]
- W1: [1-4]
- X2: [1-4]
-
- X1: [1-4]
- W2: [1-4]
- X3: [1-4]
-
- X1: [1,5-7]
- W3: [1-4]
- X4: [1,3-5]
-
- X5: [1,2]
- W4: [1,2]
- X4: [1,2]
# -
# - X1: 1
# - W1: 1
# - X2: 1
# -
# - X1: [2,3,4]
# - W1: [2,3,4]
# - X2: [4,3,2]
# -
# - X1: [5-10]
# - W1: [5-7,10,9,8]
# - X2: [10-5]
# -
# - X1: 11
# - W1: s
# -
# - X1: [1-5]
# - W1: [11-15]
# -
# - W1: [12-15]
# - X2: [2-5]
# -
# - X1: [12,14]
# - X1: [13,15]