-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase_config.yaml
703 lines (693 loc) · 20.6 KB
/
base_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
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
points:
zones:
matrix:
# Fix placement on KiCAD sheet.
anchor.shift: [100, -100]
key:
padding: 1ky
spread: 1kx
rotate: -12
columns:
pinky:
rows.bottom:
rotate: -90
rows.home:
rotate: 90
shift: [-1kx, -1kx]
ring.key:
stagger: 0.25kx
middle.key.stagger: 0.25kx
index.key.stagger: -0.25kx
inner:
key.stagger: -0.15kx
rows.top.rotate: 90
rows:
bottom.padding: kx
home.padding: kx
top.padding: kx
thumb:
anchor:
ref: matrix_middle_bottom
shift: [0.4kx, -1.35kx]
columns:
inner:
key.name: thumb_inner
tucky:
key:
name: thumb_tucky
stagger: -2
splay: -14
shift: [2, 0]
reachy:
key.spread: kx
key.splay: -14
key.stagger: 3
key.origin: [-0.5kx, -0.5kx]
key.shift: [3, 0]
key.rotate: 90
key.width: thumb_size * kx
key.name: thumb_reachy
outlines:
# ==================== keys ====================
_thumb:
- what: rectangle
where: thumb_reachy
bound: true
size: [thumb_size * kx, ky]
_padded_thumb:
- what: rectangle
where: thumb_reachy
bound: true
size: [thumb_size * px, py]
_keys:
- what: rectangle
where: true
size: [kx, ky]
_padded_keys:
- what: rectangle
where: true
size: [px, py]
key_outline:
- name: _keys
- +_thumb
_expanded_key_outline:
- name: _padded_keys
- +_padded_thumb
_limits:
- what: rectangle
size: [100, 100]
adjust.shift: [center_x, center_y]
combo:
- name: _limits
- operation: stack
name: _keys
- operation: stack
name: _thumb
_pcb_outline:
- what: polygon
points:
- shift: [center_x-50, center_y+50]
- shift: [100, 0]
- shift: [0, -100]
# - shift: [-40, 0]
# - shift: [-15, 15]
# - shift: [-45, 0]
- shift: [-100, 0]
fillet: 2
pcb_outline_combo:
- name: _pcb_outline
- operation: stack
name: _keys
- operation: stack
name: _limits
# ==================== case ====================
_case_outline:
- what: polygon
points:
- shift: [center_x-50-case_left_padding, center_y+50+case_top_padding]
- shift: [100+case_left_padding+case_right_padding, 0]
- shift: [0, -100-case_top_padding-case_bottom_padding-case_to_pcb]
- shift: [-1*case_thumb_traverse, 0]
- shift: [-1*case_bottom_padding, case_bottom_padding]
- shift: [case_thumb_traverse+case_bottom_padding-case_left_padding-case_right_padding-100, 0]
fillet: 2
_case_outline_xs:
- what: polygon
points:
- shift: [center_x-50-case_left_padding+case_to_pcb, center_y+50+case_top_padding-case_to_pcb]
- shift: [100+case_left_padding+case_right_padding-(case_to_pcb*2), 0]
- shift: [0, -100-case_top_padding-case_bottom_padding+case_to_pcb]
- shift: [-1*case_thumb_traverse+(case_to_pcb*1.5), 0]
- shift: [-1*case_bottom_padding, case_bottom_padding]
- shift: [case_thumb_traverse+case_bottom_padding-case_left_padding-case_right_padding-100+(case_to_pcb*0.5), 0]
fillet: 2
_case_outline_xl:
- what: polygon
points:
- shift: [center_x-50-case_left_padding-wall_thickness, center_y+50+case_top_padding+wall_thickness]
- shift: [100+case_left_padding+case_right_padding+(wall_thickness*2), 0]
- shift: [0, -100-case_top_padding-case_bottom_padding-case_to_pcb-(wall_thickness*2)]
- shift: [-1*case_thumb_traverse-(wall_thickness*1.5), 0]
- shift: [-1*case_bottom_padding, case_bottom_padding]
- shift: [case_thumb_traverse+case_bottom_padding-case_left_padding-case_right_padding-100-(wall_thickness*0.5), 0]
fillet: 2
# ==================== mounting ====================
_mounting:
- what: circle
where.shift: [mounting_1_x, mounting_1_y]
radius: screwSize
- what: circle
where.shift: [mounting_2_x, mounting_2_y]
radius: screwSize
- what: circle
where.shift: [mounting_3_x, mounting_3_y]
radius: screwSize
- what: circle
where.shift: [mounting_4_x, mounting_4_y]
radius: screwSize
- what: circle
where.shift: [mounting_5_x, mounting_5_y]
radius: screwSize
- what: circle
where.shift: [mounting_6_x, mounting_6_y]
radius: screwSize
_mounting_case_only:
- what: circle
where.shift: [mounting_7_x, mounting_7_y]
radius: screwSize
- what: circle
where.shift: [mounting_8_x, mounting_8_y]
radius: screwSize
_mounting_tight:
- what: circle
where.shift: [mounting_1_x, mounting_1_y]
radius: screwSize_tight
- what: circle
where.shift: [mounting_2_x, mounting_2_y]
radius: screwSize_tight
- what: circle
where.shift: [mounting_3_x, mounting_3_y]
radius: screwSize_tight
- what: circle
where.shift: [mounting_4_x, mounting_4_y]
radius: screwSize_tight
- what: circle
where.shift: [mounting_5_x, mounting_5_y]
radius: screwSize_tight
- what: circle
where.shift: [mounting_6_x, mounting_6_y]
radius: screwSize_tight
_mounting_tight_case_only:
- what: circle
where.shift: [mounting_7_x, mounting_7_y]
radius: screwSize_tight
- what: circle
where.shift: [mounting_8_x, mounting_8_y]
radius: screwSize_tight
_standoff:
- what: circle
where.shift: [mounting_1_x, mounting_1_y]
radius: standoffSize
- what: circle
where.shift: [mounting_2_x, mounting_2_y]
radius: standoffSize
- what: circle
where.shift: [mounting_3_x, mounting_3_y]
radius: standoffSize
- what: circle
where.shift: [mounting_4_x, mounting_4_y]
radius: standoffSize
- what: circle
where.shift: [mounting_5_x, mounting_5_y]
radius: standoffSize
- what: circle
where.shift: [mounting_6_x, mounting_6_y]
radius: standoffSize
_standoff_case_only:
- what: circle
where.shift: [mounting_7_x, mounting_7_y]
radius: standoffSize
- what: circle
where.shift: [mounting_8_x, mounting_8_y]
radius: standoffSize
_standoff_bottom_wall:
- what: circle
where.shift: [mounting_1_x, mounting_1_y]
radius: bottom_screwhole_wall
- what: circle
where.shift: [mounting_2_x, mounting_2_y]
radius: bottom_screwhole_wall
- what: circle
where.shift: [mounting_3_x, mounting_3_y]
radius: bottom_screwhole_wall
- what: circle
where.shift: [mounting_4_x, mounting_4_y]
radius: bottom_screwhole_wall
- what: circle
where.shift: [mounting_5_x, mounting_5_y]
radius: bottom_screwhole_wall
- what: circle
where.shift: [mounting_6_x, mounting_6_y]
radius: bottom_screwhole_wall
_standoff_bottom_wall_case_only:
- what: circle
where.shift: [mounting_7_x, mounting_7_y]
radius: bottom_screwhole_wall
- what: circle
where.shift: [mounting_8_x, mounting_8_y]
radius: bottom_screwhole_wall
# ==================== control_area ====================
control_area:
- what: polygon
points:
- shift: [center_x-44, center_y-50.2]
- shift: [0, 38.2]
- shift: [22.5, 0]
- shift: [9, -9]
- shift: [0, -10.5]
- shift: [10, -2]
- shift: [5, -5]
- shift: [0, -11.7]
fillet: 1
# ==================== plate ====================
plate:
- what: rectangle
where: true
size: [plate_switch_hole_x, plate_switch_hole_y]
plate_supports:
- what: rectangle
where: true
size: [plate_support_x, plate_support_y]
# ==================== power switch extension ====================
_switch_extension_supp:
- what: rectangle
where.shift: [center_x + power_x, center_y-50-case_to_pcb-(ps_ext_supp_thickness/2)]
size: [(ps_ext_supp_x*2)+ps_outer_x, ps_ext_supp_thickness]
_switch_extension_main:
- what: rectangle
where.shift: [center_x + power_x, center_y-50-case_to_pcb-((ps_outer_y_from_wall+wall_thickness)/2)]
size: [ps_outer_x, ps_outer_y_from_wall+wall_thickness]
- +_switch_extension_supp
_switch_extension_cuttout:
- what: rectangle
where.shift: [center_x + power_x, center_y-50-case_to_pcb-(ps_ext_cuttout_y/2)]
size: [ps_ext_cuttout_x, ps_ext_cuttout_y]
_switch_extension_supp_opening:
- what: rectangle
where.shift: [center_x + power_x, center_y-50-case_to_pcb-((ps_ext_supp_thickness+ps_ext_supp_to_wall)/2)]
size: [((ps_ext_supp_x+ps_ext_supp_x_padding)*2)+ps_outer_x, ps_ext_supp_thickness+ps_ext_supp_to_wall]
_switch_opening:
- what: rectangle
where.shift: [center_x + power_x, center_y-50-case_to_pcb-(wall_thickness/2)]
size: [ps_hole_x, wall_thickness]
- +_switch_extension_supp_opening
_switch_backsupport_tall:
- what: rectangle
where.shift: [center_x+power_x+(ps_backsupp_low_x/2)+(ps_backsupp_tall_x/2), center_y-50-case_to_pcb+(ps_backsupp_thickness/2)]
size: [ps_backsupp_tall_x, ps_backsupp_thickness]
pw_switch_combo:
- name: _switch_extension_main
- ^_switch_opening
- ^_switch_extension_cuttout
- ^_switch_backsupport_tall
# ==================== openings ====================
_usbc_opening:
- what: rectangle
where.shift: [center_x + mcu_x, center_y-50-case_to_pcb-(wall_thickness/2)]
size: [usbc_x, wall_thickness]
_usbc_opening_sideview:
- what: rectangle
where.shift: [center_x + mcu_x, center_y-50-case_to_pcb]
size: [usbc_x, usbc_z]
fillet: 1
_reset_hole:
- what: rectangle
where.shift: [center_x+reset_x, center_y+reset_y]
size: [reset_hole_x, reset_hole_y]
fillet: reset_hole_fillet
# ==================== combos ====================
case_outline_combo:
- name: _case_outline
- ^_case_outline_xl
- ^_pcb_outline
- ^_expanded_key_outline
- ^_mounting
- ^_standoff
- ^control_area
case_outline_bottom:
- name: _case_outline
- ^_case_outline_xl
- ^_mounting
- ^_standoff
- ^_standoff_bottom_wall
case_outline_top:
- name: _case_outline
- ^_case_outline_xl
# - ^_pcb_outline
- ^_expanded_key_outline
- ^_mounting
- ^_standoff
- ^control_area
display_all_combo:
- name: plate_supports
- ^_case_outline
- ^_case_outline_xl
- ^_case_outline_xs
- ^_mounting
- ^_standoff
- ^_standoff_bottom_wall
- ^_mounting_case_only
- ^_standoff_case_only
- ^_standoff_bottom_wall_case_only
- ^control_area
- ^plate
- ^_expanded_key_outline
- ^pw_switch_combo
- ^_usbc_opening
- ^_reset_hole
# - ^_wireless_switch_combo
- ^_pcb_outline
# - ^_usbc_opening_sideview
cases:
_top_mounting:
- name: _mounting
extrude: mounting_top_extrude
shift: [0, 0, top_case_height-mounting_top_extrude]
operation: add
- name: _mounting_case_only
extrude: mounting_top_extrude+pcb_thickness
shift: [0, 0, top_case_height-mounting_top_extrude]
operation: add
_top_mounting_standoffs:
- name: _standoff_bottom_wall_case_only
extrude: pcb_thickness
shift: [0, 0, top_case_height]
operation: add
_control_area:
- name: control_area
extrude: top_case_height-control_area_ceil_thickness
shift: [0, 0, control_area_ceil_thickness]
operation: add
_plate:
- name: plate_supports
extrude: plate_z - plate_thickness
shift: [0, 0, top_case_height-plate_z+plate_thickness]
operation: add
- name: plate
extrude: plate_z
shift: [0, 0, top_case_height-plate_z]
operation: add
- name: _expanded_key_outline
extrude: top_case_height-plate_z
operation: add
_usbc_opening:
- name: _usbc_opening_sideview
extrude: 2
shift: [0, 0, wall_thickness+case_to_pcb+(usbc_z/2)]
rotate: [90, 0, 0]
operation: add
_switch_opening:
- name: _switch_opening
extrude: ps_hole_z
shift: [0, 0, top_case_height+(pcb_thickness/2)-ps_hole_z]
operation: add
_switch_support:
- name: _switch_backsupport_tall
extrude: top_case_height
operation: add
_top_walls:
- name: _case_outline_xl
extrude: top_case_height+(pcb_thickness/2)
operation: add
- name: _case_outline
extrude: pcb_thickness/2
shift: [0, 0, top_case_height]
operation: subtract
_top_case:
- what: case
name: _top_walls
- what: case
name: _top_mounting_standoffs
- what: case
name: _top_mounting
operation: subtract
- what: case
name: _control_area
operation: subtract
- what: case
name: _plate
operation: subtract
- what: case
name: _usbc_opening
operation: subtract
- what: case
name: _switch_opening
operation: subtract
- what: case
name: _switch_support
operation: add
_top_case_wall_subtract:
- name: _case_outline_xl
extrude: pcb_thickness/2
shift: [0, 0, top_case_height+(pcb_thickness/2)]
operation: add
- name: _case_outline_xs
extrude: pcb_thickness/2
shift: [0, 0, top_case_height+(pcb_thickness/2)]
operation: subtract
top_case:
- what: case
name: _top_case
shift: [-center_x, -center_y, 0]
- what: case
name: _top_case_wall_subtract
shift: [-center_x, -center_y, 0]
operation: subtract
_reset_hole:
- name: _reset_hole
extrude: bottom_thickness
operation: add
_bottom_case_walls:
- name: _case_outline_xl
extrude: bottom_case_height+(pcb_thickness/2)
operation: add
- name: _case_outline
extrude: bottom_case_height+(pcb_thickness/2)-bottom_thickness
shift: [0, 0, bottom_thickness]
operation: subtract
_bottom_case:
- what: case
name: _bottom_case_walls
- what: case
name: _reset_hole
operation: subtract
- name: _standoff_bottom_wall
extrude: bottom_case_height
operation: add
- name: _standoff_bottom_wall_case_only
extrude: bottom_case_height
operation: add
- name: _standoff
extrude: bottom_case_height-bottom_standoff_thickness
operation: subtract
- name: _standoff_case_only
extrude: bottom_case_height-bottom_standoff_thickness
operation: subtract
- name: _mounting_tight
extrude: bottom_case_height
operation: subtract
- name: _mounting_tight_case_only
extrude: bottom_case_height
operation: subtract
# add an additional bridging layer so that supports aren't needed when 3d printing
# note that this layer needs to be manually removed later
_3dp_bridging_bottom:
- name: _standoff
extrude: layer_height_3dp
shift: [0, 0, bottom_case_height-bottom_standoff_thickness]
operation: add
- name: _standoff_case_only
extrude: layer_height_3dp
shift: [0, 0, bottom_case_height-bottom_standoff_thickness]
operation: add
bottom_case:
- what: case
name: _bottom_case
shift: [-center_x, -center_y, 0]
- what: case
name: _3dp_bridging_bottom
shift: [-center_x, -center_y, 0]
_switch_extension:
- name: _switch_extension_main
extrude: ps_hole_z
operation: add
- name: _switch_extension_cuttout
extrude: ps_cuttout_z
operation: subtract
switch_extension:
- what: case
name: _switch_extension
shift: [-center_x - power_x, -center_y+50+case_to_pcb+(ps_ext_cuttout_y/2), 0]
pcbs:
board:
outlines:
edge:
outline: _pcb_outline
layer: Edge.Cuts
control_area:
outline: control_area
layer: Dwgs.User
case_outline:
outline: _case_outline
layer: Dwgs.User
case_outline_xl:
outline: _case_outline_xl
layer: Dwgs.User
footprints:
keys:
what: key-switches
where: true
params:
from: "{{name}}"
to: GND
mx_spacing: mx_spacing
millmax_diameter: millmax_diameter
mx: mx
mx_hotswap: mx_hotswap
mx_reverse: mx_reverse
mx_pth: mx_pth
mx_rev_pad: mx_rev_pad
gateron_lp: gateron_lp
gateron_lp_hotswap: gateron_lp_hotswap
gateron_lp_reverse: gateron_lp_reverse
gateron_lp_pth: gateron_lp_pth
gateron_lp_rev_pad: gateron_lp_rev_pad
gateron_lp_neg_y: gateron_lp_neg_y
choc: choc
choc_hotswap: choc_hotswap
choc_millmax: choc_millmax
choc_reverse: choc_reverse
choc_pth: choc_pth
choc_neg_y: choc_neg_y
keycaps: keycaps
mcu:
what: promicro-pretty
where:
shift: [center_x + mcu_x, center_y + mcu_y]
rotate: 90
params:
P7: matrix_pinky_top
P18: matrix_ring_top
P19: matrix_middle_top
P20: matrix_index_top
P21: matrix_inner_top
P15: matrix_pinky_home
P14: matrix_ring_home
P16: matrix_middle_home
P10: matrix_index_home
P1: matrix_inner_home
P2: matrix_pinky_bottom
P3: matrix_ring_bottom
P4: matrix_middle_bottom
P5: matrix_index_bottom
P6: matrix_inner_bottom
P8: thumb_tucky
P9: thumb_reachy
RAW: RAW
trrs:
what: trrs
where:
- shift: [center_x + trrs_x, center_y + trrs_y]
params:
reverse: true
symmetric: true
A: GND
B: GND
C: trrs_data
D: VCC
reset:
what: reset_button
where:
shift: [center_x + reset_x, center_y + reset_y]
rotate: 180
params:
from: GND
to: RST
reset2:
what: b3u1000p
where:
shift: [center_x + reset_x, center_y + reset_y]
params:
r2: GND
r1: RST
slider_power:
what: slider_threeway
where:
shift: [center_x + power_x, center_y + power_y]
rotate: 180
params:
from: Bplus
left: ''
right: RAW
reversible: true
# if the switch is verticle, reverse the left and right nets on back side
# or to just make the wiring easier
reverse_left_right: true
slider_wireless:
what: slider_threeway
where:
shift: [center_x + wireless_x, center_y + wireless_y]
rotate: -90
params:
from: P0
left: thumb_inner
right: trrs_data
reversible: true
# if the switch is verticle, reverse the left and right nets on back side
reverse_left_right: true
wireless_marker:
what: text
where:
shift: [center_x + wireless_x-3.2, center_y + wireless_y+2]
rotate: 90
params:
side: "F"
text: "wireless"
h_size: .5
v_size: .5
wireless_box:
what: text
where:
shift: [center_x + wireless_x-2, center_y + wireless_y+1.6]
rotate: 90
params:
side: "F"
text: "口"
h_size: 1.5
v_size: 2.2
wired_marker:
what: text
where:
shift: [center_x + wireless_x-3.2, center_y + wireless_y-2]
rotate: 90
params:
side: "B"
text: "wired"
h_size: .5
v_size: .5
wired_box:
what: text
where:
shift: [center_x + wireless_x-2, center_y + wireless_y-1.5]
rotate: 90
params:
side: "B"
text: "口"
h_size: 1.5
v_size: 2.2
jst:
what: jstph_reversible
where:
shift: [center_x+jst_x, center_y+jst_y]
rotate: 180
params:
pos: Bplus
neg: GND
mounting_hole_1:
what: mountinghole
where.shift: [mounting_1_x, mounting_1_y]
mounting_hole_2:
what: mountinghole
where.shift: [mounting_2_x, mounting_2_y]
mounting_hole_3:
what: mountinghole
where.shift: [mounting_3_x, mounting_3_y]
mounting_hole_4:
what: mountinghole
where.shift: [mounting_4_x, mounting_4_y]
mounting_hole_5:
what: mountinghole
where.shift: [mounting_5_x, mounting_5_y]
mounting_hole_6:
what: mountinghole
where.shift: [mounting_6_x, mounting_6_y]