-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
563 lines (532 loc) · 13.4 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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
meta:
engine: 4.1.0 # Min Ergogen version for KiCad 8 footprints
units:
c: 14 # Cherry MX switch cutout/hole length in mm
s: 16 # Cherry MX switches are 15.6mm at their widest
u: U # "U" was previously 19.05mm, but is now 19mm
points:
zones.matrix:
anchor:
shift: [68.575, -185 -6.725] # Start (top left corner) at (40,100) in Kicad
mirror:
ref: matrix_five_number
distance: 5u
key.tags.left: true
key.mirror.tags:
left: $unset
right: true
columns:
zero:
rows:
meta: # LCTRL
bind: [0, u/4, 0, u/4]
shift: [-u/4, 0]
spread: 1.5u
width: 1.5u
column_net: P19
row_net: P9
mirror.skip: true
bottom: # LSHIFT
bind: [0, u/4, 0, u/4]
spread: 1.5u
width: 1.5u
column_net: P19
row_net: P8
mirror.skip: true
home: # ESC
bind: [0, u/4, 0, u/4]
spread: 1.5u
width: 1.5u
column_net: P19
row_net: P7
mirror.skip: true
top: # TAB
bind: [0, u/4, 0, u/4]
spread: 1.5u
width: 1.5u
column_net: P19
row_net: P6
mirror.skip: true
number: # `
shift: [u/4, 0]
column_net: P19
row_net: P5
mirror.skip: true
one:
rows:
meta: # SUPER
column_net: P18
row_net: P9
mirror.skip: true
bottom: # Z
column_net: P18
row_net: P8
mirror.skip: true
home: # A
column_net: P18
row_net: P7
mirror.skip: true
top: # Q
column_net: P18
row_net: P6
mirror.skip: true
number: # 1
column_net: P18
row_net: P5
mirror.skip: true
two:
key.stagger: 3
rows:
meta: # LALT
mirror.skip: true
column_net: P15
row_net: P9
bottom: # X
bind: 1
column_net: P15
row_net: P8
mirror: # .
column_net: P4
row_net: P16
home: # S
column_net: P15
row_net: P7
mirror: # L
column_net: P4
row_net: P14
top: # W
column_net: P15
row_net: P6
mirror: # O
column_net: P4
row_net: P15
number: # 2
column_net: P15
row_net: P5
mirror: # 9
column_net: P4
row_net: P18
three:
key.stagger: 3
rows:
meta.skip: true
bottom: # C
bind: 0
column_net: P14
row_net: P8
mirror: # ,
column_net: P3
row_net: P16
home: # D
column_net: P14
row_net: P7
mirror: # K
column_net: P3
row_net: P14
top: # E
column_net: P14
row_net: P6
mirror: # I
column_net: P3
row_net: P15
number: # 3
column_net: P14
row_net: P5
mirror: # 8
column_net: P3
row_net: P18
four:
key.stagger: -3
rows:
meta.skip: true
bottom: # V
bind: 0
column_net: P16
row_net: P8
mirror: # M
column_net: P8
row_net: P16
home: # F
column_net: P16
row_net: P7
mirror: # J
column_net: P8
row_net: P14
top: # R
column_net: P16
row_net: P6
mirror: # U
column_net: P8
row_net: P15
number: # 4
column_net: P16
row_net: P5
mirror: # 7
column_net: P8
row_net: P18
five:
key.stagger: -3
rows:
meta.skip: true
bottom: # B
bind: 0
column_net: P10
row_net: P8
mirror: # N
column_net: P9
row_net: P16
home: # G
column_net: P10
row_net: P7
mirror: # H
column_net: P9
row_net: P14
top: # T
column_net: P10
row_net: P6
mirror: # Y
column_net: P9
row_net: P15
number: # 5
column_net: P10
row_net: P5
mirror: # 6
column_net: P9
row_net: P18
rows:
meta:
bottom:
home:
top:
number:
zones.extra:
key.tags.right: true
anchor:
ref: matrix_five_meta
shift: [9u, 0]
columns:
zero:
rows:
meta: # BACKSPACE
bind: [0, u/4, 0, u/4]
shift: [u/4, 0]
width: 1.5u
column_net: P5
row_net: P10
bottom: # Z
shift: [-u/4, 0]
column_net: P5
row_net: P16
home: # A
column_net: P5
row_net: P14
top: # Q
column_net: P5
row_net: P15
number: # 1
column_net: P5
row_net: P18
dash:
rows:
meta.skip: true
bottom: # \
column_net: P6
row_net: P16
home: # '
column_net: P6
row_net: P14
top: # [
column_net: P6
row_net: P15
number: # -
column_net: P6
row_net: P18
equal:
rows:
meta.skip: true
bottom: # SHIFT
column_net: P7
row_net: P16
home: # ENTER
column_net: P7
row_net: P14
top: # ]
column_net: P7
row_net: P15
number: # =
column_net: P7
row_net: P18
rows:
meta:
bottom:
home:
top:
number:
zones.thumbcluster:
anchor:
ref: matrix_four_bottom
shift: [-3.45, -1u -3]
key.tags.left: true
key.mirror.tags:
left: $unset
right: true
mirror:
ref: mirror_matrix_five_bottom
distance: -5u
columns:
three.rows.meta: # BACKSPACE
splay: -18.925
column_net: P14
row_net: P9
mirror:
column_net: P3
row_net: P10
four.rows.meta: # SPACE
bind: [0, u/4, 0, u/4]
spread: 1.25u
width: 1.5u
column_net: P16
row_net: P9
mirror:
column_net: P8
row_net: P10
five.rows.meta: # MOD
shift: [u/4, -0]
column_net: P10
row_net: P9
mirror:
column_net: P9
row_net: P10
zones.screw_left_left:
anchor:
- ref: matrix_one_home
shift: [-9.5, 9.525]
zones.screw_left_center:
anchor:
- ref: matrix_three_home
shift: [-10.15, -12.525]
zones.screw_left_right:
anchor:
- ref: matrix_five_home
shift: [-10.15, 12.525]
zones.screw_right_left:
anchor:
- ref: mirror_matrix_five_home
shift: [-10.15, 12.525]
zones.screw_right_center:
anchor:
- ref: mirror_matrix_three_home
shift: [-10.15, -12.525]
zones.screw_right_right:
anchor:
- ref: mirror_matrix_one_home
shift: [-9.5, 9.525]
outlines:
_bindingleft:
- what: rectangle
where: left
size: u
bound: true
_bindingright:
- what: rectangle
where: right
size: u
bound: true
_boxleft:
- what: polygon
points:
- ref: matrix_zero_number
shift: [-u/2 -u, u/2 +6]
#- ref: matrix_five_number
# shift: [u + 15.6 - 28, u/2 +6]
#- ref: matrix_five_number
# shift: [u + 15.6 - 28, u/2 +6 +1]
#- ref: matrix_five_number
# shift: [u + 15.6, u/2 +6 +1]
- ref: matrix_five_number
shift: [u + 15.6, u/2 +6]
- ref: matrix_five_bottom
shift: [u + 15.6, -1u -1/2u]
- ref: matrix_zero_meta
shift: [-u/4 -u, -u/2]
_boxright:
- what: polygon
points:
#- ref: mirror_matrix_five_number
# shift: [u + 15.6, u/2 +6 +1]
#- ref: mirror_matrix_five_number
# shift: [u + 15.6 -28, u/2 +6 +1]
#- ref: mirror_matrix_five_number
# shift: [u + 15.6 -28, u/2 +6]
- ref: mirror_matrix_five_number
shift: [u + 15.6, u/2 +6]
- ref: extra_equal_number
shift: [u/2, u/2 +6]
- ref: extra_equal_bottom
shift: [u/2, -u/2 -u]
- ref: mirror_matrix_five_bottom
shift: [u + 15.6, -u -1/2u]
_cutoutsleft:
- what: rectangle
where: left
size: c
_cutoutsright:
- what: rectangle
where: right
size: c
_screws:
- what: circle
where: /screw/
radius: 1.75
switchesleft:
- what: rectangle
where: left
fillet: 1
size: s
switchesright:
- what: rectangle
where: right
fillet: 1
size: s
wallsleft:
- name: _boxleft
- name: _bindingleft
wallsright:
- name: _boxright
- name: _bindingright
left:
- name: wallsleft
- name: switchesleft
operation: stack
- name: _cutoutsleft
operation: stack # TODO change to subtract after screws are positioned
- name: _screws
operation: subtract
right:
- name: wallsright
- name: switchesright
operation: stack
- name: _cutoutsright
operation: stack # TODO change to subtract after screws are positioned
- name: _screws
operation: subtract
full:
- name: left
- name: right
# Example:
# https://github.com/MrCarney/mrkeyboard/blob/main/mrkeyboard.yaml
pcbs:
left:
template: kicad8 # Required, since ceoloide footprints are KiCad 8 only
outlines:
main.outline: wallsleft
keycaps:
outline: switchesleft
layer: Eco1.User
footprints:
# Diode
# Nexperia BAS16H,115: 100V Single 1.25V@150mA 4ns 215mA SOD-123F Switching Diode ROHS
# The footprint is for a sod-123w package, but the recommended diodes are sod-123f,
# but these both have similar dimensions
# https://blog.mbedded.ninja/pcb-design/component-packages/sod-123-component-package/
diode: &diode
what: sod-123w # diode
where: left
adjust:
shift: [0, -5]
params:
from: "{{colrow}}"
to: "{{row_net}}"
# https://github.com/ceoloide/ergogen-footprints/blob/main/mounting_hole_npth.js
mounting_hole_npth: &mounting_hole_npth
what: ceoloide/mounting_hole_npth
where: /screw_left/
params:
hole_drill: 3.5 # M3 is 3.4mm
hole_size: 3.5
# Any MX switch
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/mx.js
mx: &mx
what: mx
where: left
params:
hotswap: true
from: "{{column_net}}" # Pin 1
to: "{{colrow}}" # Pin 2
# Arduino Pro Micro atmega32u4au
# SparkFun Qwiic Pro Micro - USB-C (ATmega32U4)
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/promicro.js
promicro: &promicro
what: promicro
where:
ref: matrix_five_number
rotate: -90
shift: [18, -4]
params:
orientation: down
# Reset button
# E-Switch TL3342F450QG
# https://www.e-switch.com/product-catalog/tl3342-series-low-profile-smt-tactile-switch
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/button.js
reset: &reset
what: button
where:
ref: matrix_five_top
rotate: -90
shift: [18 + 13, 15]
params:
from: GND
to: RST
side: B
# TRRS jack
# HCTL HC-PJ-320A-4P-D
# https://www.lcsc.com/product-detail/Audio-Connector-Headphone_HCTL-HC-PJ-320A-4P-D_C5372851.html
# https://github.com/ceoloide/ergogen-footprints/blob/main/trrs_pj320a.js
trrs: &trrs
what: ceoloide/trrs_pj320a
where:
ref: matrix_five_number
shift: [18 + 13, 16.25]
params:
TP: GND # 1
R1: GND # 2
R2: VCC # 3
SL: P0 # 4
reversible: true
side: B
# Symmetric only works for the "Serial" pinout
symmetric: true
right:
template: kicad8 # Required, since ceoloide footprints are KiCad 8 only
outlines:
main.outline: wallsright
keycaps:
outline: switchesright
layer: Eco1.User
footprints:
diode:
<<: *diode
where: right
mounting_hole_npth:
<<: *mounting_hole_npth
where: /screw_right/
mx:
<<: *mx
where: right
promicro:
<<: *promicro
where:
ref: mirror_matrix_five_number
rotate: 90
shift: [18, -4]
reset:
<<: *reset
where:
ref: mirror_matrix_five_top
rotate: -90
shift: [18 + 13, 15]
trrs:
<<: *trrs
where:
ref: mirror_matrix_five_number
shift: [18 + 13, 16.25]