-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomplete_v4_example.yaml
91 lines (87 loc) · 1.83 KB
/
complete_v4_example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
units: # shift the PCB into the (approximate) middle of KiCads workspace
center_shift_x: 170
center_shift_y: -165
points:
zones:
matrix:
anchor:
shift: [center_shift_x, center_shift_y]
columns:
outer:
rows.extra.skip: false
key.col_net: c0
pinky:
rows:
extra:
skip: false
key:
stagger: .5cy
col_net: c1
height: 1.5u
tags: key1_5u
rows:
extra:
skip: true
row_net: r0
key:
padding: cy
outlines:
_switches:
- what: rectangle
where: true
size: 14
- what: rectangle
where: key1_5u
size: [14, 14 * 1.5]
_switches_lips:
- what: rectangle
where: true
size: [15, 14]
- what: rectangle
where: key1_5u
size: [15, 14 * 1.5]
_pcb:
- what: rectangle
adjust:
ref: matrix_pinky_extra
shift: [-.5cx, -.25cy]
size: [50, 50]
corner: 5
plate:
- _pcb
- -_switches
_plate_with_lips:
- _pcb
- -_switches_lips
pcbs:
my_pcb:
outlines:
main:
outline: _pcb
footprints:
choc_hotswap:
what: choc
where: true
params:
designator: S
keycaps: true
reverse: true
hotswap: true
from: "{{colrow}}"
to: "{{col_net}}"
diode:
what: diode
where: true
params:
from: "{{colrow}}"
to: "{{row_net}}"
adjust:
shift: [0, -5]
cases:
my_plate:
- name: plate
extrude: 1.2
shift: [-center_shift_x, -center_shift_y, 0] # revert the KiCad shift, so it looks good in the STL previewer
- name: _plate_with_lips
extrude: 1
shift: [-center_shift_x, -center_shift_y, 1.2]