-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yaml
309 lines (301 loc) · 7.38 KB
/
config.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
units:
# Size of each key. cx and cy for choc, u and U for MX.
kx: cx
ky: cy
# key spread and padding
px: 1.04kx
py: 1.04ky
# From that, get the spacing between keys
ksx: px-kx
ksy: py-ky
lpx: px + 1
# Stagger for all of the different columns
stagger1: py # ring column one key above the pinky column
stagger2: 0.3py # middle column .3 key above the ring column
stagger3: -0.6py # index
stagger4: -0.2py # inner
xiao_length: 21
xiao_width: 17.78
trrs_width: 6.1
points:
key:
spread: 1px
padding: 1py
zones:
matrix:
columns:
pinky:
key:
column_net: P5
ring:
key:
stagger: stagger1
column_net: P3
middle:
key:
stagger: stagger2
column_net: P2
index:
key:
stagger: stagger3
column_net: P1
inner:
key:
stagger: stagger4
column_net: P0
rows:
bottom:
row_net: P10
home:
row_net: P9
top:
row_net: P8
thumbfan:
anchor:
ref: matrix_inner_bottom
shift: [-2px, -py]
columns:
inner:
key:
column_net: P2
middle:
key:
column_net: P1
home:
key:
column_net: P0
rows:
thumb:
row_net: P4
outlines:
board_noround:
keys:
what: rectangle
where: true
size: [lpx, py]
mcu:
what: polygon
points:
- ref: matrix_middle_top # Top left
shift: [-2px-0.5lpx, 0.5py]
- ref: matrix_middle_top # Top right
shift: [0, 0.5py]
- ref: matrix_middle_top # Bottom right (in board)
shift: [0, -1py]
- ref: matrix_middle_top # Bottom left
shift: [-2px-0.5lpx, -1py]
battery:
what: polygon
points:
- ref: matrix_middle_home # Top left (in board)
shift: [-0.5lpx, 0]
- ref: matrix_inner_home # Top right (in board)
shift: [0.5lpx, 0]
- ref: thumbfan_home_thumb # Bottom right
shift: [0.5lpx, -0.5py]
- ref: thumbfan_inner_thumb # Bottom left
shift: [-0.5lpx, -0.5py]
logo:
what: polygon
points:
- ref: matrix_pinky_bottom # Top left (in board)
shift: [0, py]
- ref: matrix_pinky_bottom # Top right (in board)
shift: [2px, py]
- ref: matrix_pinky_bottom # Bottom right (in board)
shift: [2px, -0.5py]
- ref: matrix_pinky_bottom # Bottom left (in board)
shift: [0, -0.5py]
trrs:
what: polygon
points:
- ref: matrix_inner_top # Top left
shift: [-2px, 0.5py+trrs_width+ksy]
- ref: matrix_inner_top # Top right
shift: [0.5lpx, 0.5py+trrs_width+ksy]
- ref: matrix_inner_top # Bottom right (in board)
shift: [0.5lpx, -1py]
- ref: matrix_inner_top # Bottom left
shift: [-2px, -1py]
board:
- what: outline
name: board_noround
fillet: 1
top_plate_base:
keys:
what: polygon
points:
- ref: matrix_pinky_top
shift: [-0.5kx, 0.5ky]
- ref: matrix_pinky_top
shift: [0.5kx+ksx, 0.5ky]
- ref: matrix_ring_top
shift: [-0.5kx, 0.5ky]
- ref: matrix_ring_top
shift: [0.5kx+ksx, 0.5ky]
- ref: matrix_middle_top
shift: [-0.5kx, 0.5ky]
- ref: matrix_middle_top
shift: [0.5kx, 0.5ky]
- ref: matrix_index_top
shift: [-0.5kx-ksx, 0.5ky]
- ref: matrix_index_top
shift: [0.5kx, 0.5ky]
- ref: matrix_inner_top
shift: [-0.5kx-ksx, 0.5ky]
- ref: matrix_inner_top
shift: [0.5kx, 0.5ky]
- ref: thumbfan_home_thumb
shift: [0.5kx, -0.5ky]
- ref: thumbfan_middle_thumb
shift: [-0.5kx, -0.5ky]
- ref: matrix_index_bottom
shift: [-0.5kx, -0.5ky]
- ref: matrix_middle_bottom
shift: [0.5kx+ksx, -0.5ky]
- ref: matrix_middle_bottom
shift: [-0.5kx-ksx, -0.5ky]
- ref: matrix_ring_bottom
shift: [0.5kx, -0.5ky]
- ref: matrix_ring_bottom
shift: [-0.5kx-ksx, -0.5ky]
- ref: matrix_pinky_bottom
shift: [0.5kx, -0.5ky]
- ref: matrix_pinky_bottom
shift: [-0.5kx, -0.5ky]
top_plate:
top_plate_base:
what: outline
name: top_plate_base
fillet: 1
cutouts:
what: rectangle
where: true
size: 14
operation: subtract
pcbs:
main:
outlines:
main:
outline: board
footprints:
choc_hotswap:
what: choc
where: true
params:
keycaps: true
reverse: true
hotswap: true
from: "{{colrow}}"
to: "{{column_net}}"
diode:
what: pad_diode
where: true
params:
from: "{{colrow}}"
to: "{{row_net}}"
adjust:
shift: [0, -0.3py]
diode_via_1:
what: via
where: true
params:
net: "{{colrow}}"
adjust:
shift: [2.8, -0.3py]
diode_via_2:
what: via
where: true
params:
net: "{{row_net}}"
adjust:
shift: [-2.8, -0.3py]
key_via_1:
what: via
where: true
params:
net: "{{column_net}}"
adjust:
shift: [0, 3.67]
key_via_2:
what: via
where: true
params:
net: "{{colrow}}"
adjust:
shift: [0, 2.67]
xiao_flippable:
what: xiao_flippable
where:
ref: matrix_pinky_top
shift: [0.5px-0.5ksx-xiao_width-(kx-xiao_width)/2, 0.5py+0.5ksy]
rotate: -90
raw_pad:
what: pad
where:
ref: matrix_pinky_top
shift: [0, 0.5py]
params:
net: RAW
width: 1.5
height: 1.5
battery_pads:
what: battery_pad
where:
ref: matrix_index_bottom
shift: [0, -0.5ky-2]
rotate: 0
params:
plus: BAT+
minus: GND
slider_f:
what: slider
where:
ref: matrix_middle_top
shift: [-1px, 0.5px-3]
params:
from: BAT+
to: RAW
side: F
slider_b:
what: slider
where:
ref: matrix_middle_top
shift: [-1px, 0.5px-3]
params:
from: BAT+
to: RAW
side: B
trrs:
what: trrs
where:
ref: matrix_inner_top
shift: [7.86, 0.5ky+0.70+ksy]
rotate: -90
params:
reverse: true
symmetric: true
A: VCC5
B: VCC5 # overlaps with A
C: GND
D: P7
logo:
what: logo
where:
ref: matrix_ring_bottom
shift: [0, -1py]
params:
# Remove F.Paste if you want to use a stencil when soldering!
# This just allows us to see the correct color in KiCad's 3d viewer.
layers: [F.Cu, F.Paste, F.Mask]
monkey:
what: monkey
where:
# In middle of MCU
ref: matrix_pinky_top
shift: [-1.5, 1py+2.5]
rotate: 90
top_plate:
outlines:
top_plate:
outline: top_plate