-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
459 lines (459 loc) · 10.9 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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
units:
# Proxy Spacing Variables
kx: cx
ky: cy
# Padding Variables
px: kx + 2
py: ky + 2
# Double Padding Variables
dpx: kx + 8
dpy: ky + 8
# M2 Screw Inserts
screwRadius: 1.50
standoffThickness: 2
standoffDepth: 2
# Case
pcbThickness: 1.6
baseThickness: 2
wallThickness: 2
# Footprints
rp2040zero_x: 18
rp2040zero_y: 23.5
trrs_x: 12
trrs_y: 6
points:
zones:
matrix:
anchor:
shift: [30, -80]
key:
padding: 1ky
spread: 1kx
columns:
pinky:
key:
splay: 5
ring:
key:
stagger: 0.33ky
splay: -5
spread: 1kx + 2
middle:
key:
stagger: 0.33ky
index:
key:
stagger: -0.45ky
splay: -2
spread: 1kx + 0.2
outer:
key:
stagger: -0.2ky
spread: 1kx
rows:
bottom:
middle:
top:
thumbs:
key:
padding: 1kx
spread: 1ky
anchor:
ref: matrix_outer_bottom
shift: [-1.4kx, -1.4ky]
columns:
inner:
key:
width: 1.5kx
splay: 20
middle:
key:
width: 1.5kx
splay: -20
spread: 1.2kx
stagger: -0.2ky
outer:
key:
width: 1.5kx
splay: -18
spread: 1.25ky
stagger: -0.2ky
rows:
cluster:
mcu:
anchor:
ref: matrix_middle_top
shift: [3.2kx, -2ky]
key:
width: rp2040zero_x
height: rp2040zero_y
trrs:
anchor:
ref: mcu
shift: [7, -rp2040zero_x]
key:
width: trrs_x
height: trrs_y
holePinkyTop:
anchor:
ref: [matrix_pinky_top]
shift: [0.4px,0.6py]
holeIndexTop:
anchor:
ref: [matrix_index_top]
shift: [-0.3px, 12]
holeInnerThumbs:
anchor:
ref: [thumbs_inner_cluster]
shift: [0.2kx, 0.7kx]
holeOuterThumbs:
anchor:
ref: [thumbs_outer_cluster]
shift: [-0.2kx, 0.7kx]
support:
anchor:
ref: [mcu]
shift: [0, 0.3kx]
mirror: &mirror
ref: matrix_index_top
distance: 120
outlines:
keys:
- what: rectangle
where: /matrix|thumb/
size: [kx-0.5,ky-0.5]
boardLeft:
- what: polygon
operation: stack
fillet: 1
points:
- ref: matrix_pinky_top
shift: [-0.5px,0.5py]
- ref: matrix_ring_top
shift: [-0.5px,0.5py]
- ref: matrix_middle_top
shift: [-0.5px,0.5py]
- ref: matrix_middle_top
shift: [0.5px,0.5py]
- ref: matrix_outer_top
shift: [0.5px,0.5py]
- ref: mcu
shift: [-rp2040zero_x/2,rp2040zero_y/2+2]
- ref: mcu
shift: [rp2040zero_x/2+4,rp2040zero_y/2+2]
- ref: trrs
shift: [trrs_x/2,-trrs_y/2]
- ref: thumbs_outer_cluster
shift: [0.5px,0.5py]
- ref: thumbs_outer_cluster
shift: [0.5px,-0.5py]
- ref: thumbs_outer_cluster
shift: [-0.45px,-0.5py]
- ref: thumbs_inner_cluster
shift: [0.45px,-0.5py]
- ref: thumbs_inner_cluster
shift: [-0.5px,-0.5py]
- ref: thumbs_inner_cluster
shift: [-0.5px,1py]
- ref: matrix_pinky_bottom
shift: [-0.5px,-0.5py]
boardRight:
- what: polygon
operation: stack
fillet: 1
points:
- ref: mirror_matrix_pinky_top
shift: [-0.5px,0.5py]
- ref: mirror_matrix_ring_top
shift: [-0.5px,0.5py]
- ref: mirror_matrix_middle_top
shift: [-0.5px,0.5py]
- ref: mirror_matrix_middle_top
shift: [0.5px,0.5py]
- ref: mirror_matrix_outer_top
shift: [0.5px,0.5py]
- ref: mirror_mcu
shift: [-rp2040zero_x/2,rp2040zero_y/2+2]
- ref: mirror_mcu
shift: [rp2040zero_x/2+4,rp2040zero_y/2+2]
- ref: mirror_trrs
shift: [trrs_x/2,-trrs_y/2]
- ref: mirror_thumbs_outer_cluster
shift: [0.5px,0.5py]
- ref: mirror_thumbs_outer_cluster
shift: [0.5px,-0.5py]
- ref: mirror_thumbs_outer_cluster
shift: [-0.45px,-0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [0.45px,-0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [-0.5px,-0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [-0.5px,1py]
- ref: mirror_matrix_pinky_bottom
shift: [-0.5px,-0.5py]
board:
- boardLeft
- boardRight
_mcu:
- what: rectangle
where: /mcu/
size: [rp2040zero_x, rp2040zero_y]
_trrs:
- what: rectangle
where: /trrs/
size: [trrs_x, trrs_y]
xlBoardLeft:
- what: outline
name: boardLeft
expand: wallThickness
xlBoardRight:
- what: outline
name: boardRight
expand: wallThickness
_mountingLeft:
- what: circle
where: /^hole/
radius: screwRadius
_mountingRight:
- what: circle
where: /^mirror_hole/
radius: screwRadius
_supportLeft:
- what: rectangle
where: /^support/
size: [5, 5]
_supportRight:
- what: rectangle
where: /^mirror_support/
size: [5, 5]
_standoffLeft:
- what: outline
name: _mountingLeft
expand: standoffThickness
_standoffRight:
- what: outline
name: _mountingRight
expand: standoffThickness
combo:
- xlBoardLeft
- xlBoardRight
- ^boardLeft
- ^boardRight
- ^keys
- ^_mcu
- ^_trrs
- ^_standoffLeft
- ^_standoffRight
- ^_mountingLeft
- ^_mountingRight
- ^_supportLeft
- ^_supportRight
pcbs:
mushi:
outlines:
main:
outline:
board
footprints:
chocHotswapLeft:
what: choc
where: /^(thumb|matrix)/
params:
keycaps: true
hotswap: true
from: "{{name}}"
to: GND
chocLeft:
what: choc
where: /^(thumb|matrix)/
adjust:
rotate: 180
params:
keycaps: true
from: "{{name}}"
to: GND
chocHotswapRight:
what: choc
where: /^mirror_(thumb|matrix)/
params:
keycaps: true
hotswap: true
from: "{{name}}"
to: rGND
chocRight:
what: choc
where: /^mirror_(thumb|matrix)/
adjust:
rotate: 180
params:
keycaps: true
from: "{{name}}"
to: rGND
mcuLeft:
what: rp2040zero
where: mcu
adjust:
shift: [-rp2040zero_x / 2, -rp2040zero_y / 2]
params:
reverse: true
P5V: P5V
GND: GND
P3V3: P3V3
GP29: matrix_outer_top
GP28: matrix_index_top
GP27: matrix_middle_top
GP26: matrix_ring_top
GP15: matrix_pinky_top
GP14: matrix_outer_middle
GP13: matrix_index_middle
GP12: matrix_middle_middle
GP11: matrix_ring_middle
GP10: matrix_pinky_middle
GP9: matrix_outer_bottom
GP8: matrix_index_bottom
GP7: matrix_middle_bottom
GP6: matrix_ring_bottom
GP5: matrix_pinky_bottom
GP4: thumbs_inner_cluster
GP3: thumbs_middle_cluster
GP2: thumbs_outer_cluster
GP1: RX
GP0: TX
mcuRight:
what: rp2040zero
where: mirror_mcu
adjust:
shift: [rp2040zero_x / 2 + 2.29, -rp2040zero_y / 2]
params:
P5V: rP5V
GND: rGND
P3V3: rP3V3
GP29: mirror_thumbs_outer_cluster
GP28: mirror_thumbs_middle_cluster
GP27: mirror_thumbs_inner_cluster
GP26: mirror_matrix_pinky_bottom
GP15: mirror_matrix_ring_bottom
GP14: mirror_matrix_middle_bottom
GP13: mirror_matrix_index_bottom
GP12: mirror_matrix_outer_bottom
GP11: mirror_matrix_pinky_middle
GP10: mirror_matrix_ring_middle
GP9: mirror_matrix_middle_middle
GP8: mirror_matrix_index_middle
GP7: mirror_matrix_outer_middle
GP6: mirror_matrix_pinky_top
GP5: mirror_matrix_ring_top
GP4: mirror_matrix_middle_top
GP3: mirror_matrix_index_top
GP2: mirror_matrix_outer_top
GP1: rRX
GP0: rTX
trrsLeft:
what: trrs
where: trrs
adjust:
rotate: -90
shift: [trrs_x / 2, -trrs_y / 2 + 2]
params:
A: GND
B: P3V3
C: RX
D: TX
trrsRight:
what: trrs
where: mirror_trrs
adjust:
rotate: -90
shift: [trrs_x / 2, 3.5]
params:
A: rGND
B: rP3V3
C: rTX
D: rRX
holes:
what: mountinghole
where: /hole/
cases:
_bottomLeft:
- name: xlBoardLeft
extrude: baseThickness
_outerWallLeft:
- name: xlBoardLeft
extrude: baseThickness + standoffDepth + pcbThickness
_innerWallLeft:
- name: boardLeft
extrude: baseThickness + standoffDepth + pcbThickness
_wallLeft:
- what: case
name: _outerWallLeft
operation: add
- what: case
name: _innerWallLeft
operation: subtract
_holesLeft:
- name: _mountingLeft
extrude: baseThickness + standoffDepth
_standoffsLeft:
- name: _standoffLeft
extrude: baseThickness + standoffDepth
_supportsLeft:
- name: _supportLeft
extrude: baseThickness + standoffDepth
caseLeft:
- what: case
name: _standoffsLeft
operation: add
- what: case
name: _supportsLeft
operation: add
- what: case
name: _bottomLeft
operation: add
- what: case
name: _wallLeft
operation: add
- what: case
name: _holesLeft
operation: subtract
_bottomRight:
- name: xlBoardRight
extrude: baseThickness
_outerWallRight:
- name: xlBoardRight
extrude: baseThickness + standoffDepth + pcbThickness
_innerWallRight:
- name: boardRight
extrude: baseThickness + standoffDepth + pcbThickness
_wallRight:
- what: case
name: _outerWallRight
operation: add
- what: case
name: _innerWallRight
operation: subtract
_holesRight:
- name: _mountingRight
extrude: baseThickness + standoffDepth
_standoffsRight:
- name: _standoffRight
extrude: baseThickness + standoffDepth
_supportsRight:
- name: _supportRight
extrude: baseThickness + standoffDepth
caseRight:
- what: case
name: _standoffsRight
operation: add
- what: case
name: _supportsRight
operation: add
- what: case
name: _bottomRight
operation: add
- what: case
name: _wallRight
operation: add
- what: case
name: _holesRight
operation: subtract