-
Notifications
You must be signed in to change notification settings - Fork 0
/
mergo.yaml
460 lines (457 loc) · 9.88 KB
/
mergo.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:
kx: cx
ky: cy
px: 2
py: 2
points:
key:
footprints:
choc_hotswap:
type: choc
params:
hotswap: true
reverse: true
keycaps: true
nets:
# from: P1
# to: P2
from: =colrow
to: =column_net
diode:
type: diode
nets:
# from: P3
# to: P4
from: =colrow
to: =row_net
anchor:
shift: [0, -5]
zones:
matrix:
#anchor:
#rotate: 0
key.padding: ky
columns:
pinky:
stagger: 0 ky
spread: kx
rotate: 3
key:
column_net: P20
ring:
rotate: -3
origin: [-12, -19]
stagger: 13
spread: 1.1kx
key:
column_net: P19
middle:
stagger: 3
spread: kx
key:
column_net: P18
index:
stagger: -4
spread: kx
key:
column_net: P15
inner:
stagger: -2.0
spread: kx
key:
column_net: P14
rows:
bottom:
row_net: P6
home:
row_net: P5
top:
row_net: P4
thumbfan:
anchor:
ref: matrix_inner_bottom
shift: [-12, -19]
columns:
near:
key:
column_net: P18
home:
spread: 19
rotate: -22
origin: [-11.75, -9]
key:
column_net: P15
far:
spread: 19
rotate: -22
origin: [-9.5, -9]
key:
column_net: P14
rows:
thumb:
row_net: P7
outlines:
# board dimensions according to JLCPCB: 13.15cm x 10.25cm
exports:
raw:
- type: keys
side: left
size: [kx + px, ky + py]
_thumbfan_glue_polygon:
- type: polygon
points:
- ref: matrix_inner_bottom
shift: [0.5 kx + 0.5px, -0 ky + 2.5 py]
- ref: thumbfan_far_thumb
shift: [0.75 kx - 0.5px, 0.70 ky + 0.5 py]
- ref: thumbfan_far_thumb
shift: [0.75 kx - 0.5px, -0.65 ky - 0.5 py]
- ref: thumbfan_near_thumb
shift: [-0.3 kx + 0.5 px, -0.72 ky - 0.5 py]
- ref: matrix_pinky_bottom
shift: [0.5 kx - 0.5 py, -0.5 ky - 0.5 py]
- ref: matrix_pinky_bottom
shift: [0 kx - 0.5 py, -0.5 ky - 0.5 py]
- ref: matrix_pinky_home
shift: [-0.5 kx , 0]
- ref: matrix_inner_home
shift: [0.5 kx + 0.5px, -0.5 ky + 0.5 py]
thumbfan_glue:
polygon:
type: outline
name: _thumbfan_glue_polygon
sub_circle:
type: circle
radius: 80
anchor:
- ref: thumbfan_near_thumb
shift: [0 kx - 24 px, -0.5 ky - 35.9 py]
operation: subtract
patch_outer:
- type: polygon
points:
- ref: matrix_pinky_top
shift: [1.5 (kx + px), 0.5 (ky + py)]
- ref: matrix_ring_bottom
- ref: matrix_pinky_bottom
shift: [0.5 (kx + px), -0 (ky + py)]
- ref: matrix_pinky_top
shift: [0.5 (kx + px), 0.5 (ky + py)]
controller_area:
main:
type: rectangle
anchor:
ref:
- matrix_inner_top
shift: [0 kx, -4.05 ky]
size: [32, 76.5]
corner: px
switches:
main:
type: keys
side: left
size: 14
bound: false
keycaps:
main:
type: keys
side: left
size: [kx, ky]
bound: false
corner: 1
_keywell:
main:
type: outline
name: raw
patch_outer:
type: outline
name: patch_outer
operation: add
thumbfan_glue:
type: outline
name: thumbfan_glue
operation: add
#fillet: 5px
_keywell_fillet_pass1:
- type: outline
name: _keywell
fillet: px
_keywell_fillet_pass2:
- type: outline
name: _keywell_fillet_pass1
fillet: 0.8px
_keywell_fillet_pass3:
- type: outline
name: _keywell_fillet_pass2
fillet: 0.4px
keywell:
main:
type: outline
name: _keywell_fillet_pass3
_base_outline:
main:
type: outline
name: keywell
controller:
type: outline
name: controller_area
operation: add
base_outline:
- type: outline
name: _base_outline
fillet: 5px
screw_holes:
top_left:
type: circle
anchor:
- ref: matrix_ring_home
shift: [-0.55 kx, 0 ky]
radius: 1.05
bottom_left:
type: circle
anchor:
- ref: matrix_pinky_bottom
shift: [0.55 kx, 0]
radius: 1.05
top_right:
type: circle
anchor:
- ref: matrix_inner_top
shift: [-0.5 kx, 0]
radius: 1.05
palm:
type: circle
anchor:
- ref: thumbfan_near_thumb
shift: [-0.6 kx, 0 ky]
radius: 1.05
thumb:
type: circle
anchor:
- ref: thumbfan_far_thumb
shift: [-0.62 kx, 0]
radius: 1.05
mounting_holes:
$extends: outlines.exports.screw_holes
top_left:
radius: 2.05
bottom_left:
radius: 2.05
top_right:
radius: 2.05
palm:
radius: 2.05
thumb:
radius: 2.05
bottom_outline:
main:
type: outline
name: base_outline
screw_holes:
type: outline
name: screw_holes
operation: subtract
plate:
main:
type: outline
name: keywell
switches:
type: outline
name: switches
operation: subtract
mounting_holes:
type: outline
name: screw_holes
operation: subtract
pcb:
main:
type: outline
name: base_outline
mounting_holes:
type: outline
name: mounting_holes
operation: subtract
pcbs:
top_plate:
# include JLCJLCJLCJLC text somewhere
# include_keys: false
outlines:
edge:
outline: plate
layer: Edge.Cuts
footprints:
jlc_order_number:
type: text
anchor:
ref:
- matrix_ring_home
shift: [-0.25 kx, 0.5 ky]
params:
text: "JLCJLCJLCJLC"
justify: left
bottom_plate:
# include_keys: false
outlines:
edge:
outline: bottom_outline
layer: Edge.Cuts
board:
outlines:
edge:
outline: pcb
layer: Edge.Cuts
footprints:
mcu_l:
type: promicro
params:
orientation: up
batteryPins: true
anchor:
ref:
- matrix_inner_top
shift: [20, -11]
rotate: 270
mcu_r:
type: promicro
params:
orientation: down
batteryPins: true
anchor:
ref:
- matrix_inner_top
shift: [22.5, -12.25]
rotate: 270
pad_plus:
type: pad
anchor:
ref:
- matrix_inner_top
shift: [23, -18]
rotate: 0
params:
front: true
back: true
width: 1.5
height: 1.5
text: "B+"
nets:
net: Braw
pad_minus:
type: pad
anchor:
ref:
- matrix_inner_top
shift: [23, -15]
rotate: 0
params:
front: true
back: true
width: 1.5
height: 1.5
text: "B-"
nets:
net: Bminus
trrs:
type: trrs
anchor:
ref:
- matrix_inner_bottom
shift: [32, -15]
rotate: 270
params:
reverse: true
symmetric: false
nets:
A: GND
B: VCC
C: P2 # SDA
D: P3 # SCL
jumper_l:
type: jumper
anchor:
ref:
- matrix_inner_bottom
shift: [23.5, 0]
rotate: 270
params:
side: B
nets:
from: Braw
to: Bplus
jumper_r:
type: jumper
anchor:
ref:
- matrix_inner_bottom
shift: [23.5, 0]
rotate: 270
params:
side: F
nets:
from: Braw
to: Bplus
slider_l:
type: slider
anchor:
ref:
- matrix_inner_bottom
shift: [30, 0]
rotate: 270
params:
side: F
nets:
from: Braw
to: Bplus
slider_r:
type: slider
anchor:
ref:
- matrix_inner_bottom
shift: [30, 0]
rotate: 270
params:
side: B
nets:
from: Braw
to: Bplus
reset:
type: button
anchor:
ref:
- matrix_inner_bottom
shift: [17, 0]
rotate: 270
params:
variant: 2_pin_th
nets:
from: GND
to: RST
info_l:
type: text
anchor:
ref:
- matrix_pinky_bottom
shift: [0.75 kx, 0]
params:
text: "Mergoboard rev1 2022-xx-xx\\nby Miigon"
justify: left
info_r:
type: text
anchor:
ref:
- matrix_pinky_bottom
shift: [0.75 kx, 0]
params:
layer: B.SilkS
text: "Mergoboard rev1 2022-xx-xx\\nby Miigon"
justify: right mirror
jlc_order_number:
type: text
anchor:
ref:
- matrix_inner_top
shift: [20, -11]
rotate: 90
params:
text: "JLCJLCJLCJLC"
justify: left