-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
1687 lines (1545 loc) · 43.4 KB
/
config.yaml
File metadata and controls
1687 lines (1545 loc) · 43.4 KB
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
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Temporal, by Curtis Bollinger - @curbol
# https://github.com/curbol/temporal
# v1 - Jan 2026
#
# Key configurations: 36-42 keys depending on breakoffs and encoders
# - Full pinky column: 42/41/40 keys (0/1/2 encoders)
# - Breakoff pinky column: 38/37/36 keys (0/1/2 encoders)
#
# Case naming convention:
# - _left: Left-hand side case (generated directly)
# - _m_right: Right-hand side case (needs to be mirrored after ergogen generation)
# ergogen docs: https://docs.ergogen.xyz/config-overview
meta:
engine: 4.1.0
version: 1.0
author: Curtis Bollinger
url: https://github.com/curbol/temporal
# ============================================================================
# Units
# ============================================================================
units:
# Math constants
sqrt_3: 1.73205080757
nudge: 0.0001 # Hack used to fix floating point rounding issues
# Override choc defaults
$default_width: 18
$default_height: 17
# Key spacing with padding
pad: 2.151
px: cx + pad
py: cy + pad
# Key plug holes
plug_w: 13.9
plug_h: 13.9
# Finger splay
finger_splay_1: 5
finger_splay_2: 4
finger_splay_total: finger_splay_1 + finger_splay_2
thumb_splay: 15
thumb_spread: 1cx - 0.15
# Board dimensions
pcb_fillet: 2.95
pcb_thickness: 1.6
pcb_hole_diameter: 5
# Mounting hole positions (relative to key centers)
hole1_x: -0.5cx - 0.8 # Top left (finger_middle_top)
hole1_y: -0.5cy
hole2_x: 0.5cx - 0.35 # Top right (finger_index_top)
hole2_y: -0.5cy
hole3_x: 0.5cx + 1 # Thumb right (thumb_mid)
hole3_y: -0.5
hole4_x: 0.5cx + 1 # Thumb left (thumb_enc)
hole4_y: -0.5
hole5_x: 0.5cx + 0.6 # Far left (finger_pinky_top)
hole5_y: -0.5cy
hole5_e_x: 0.5cx - 0.35 # Far left extra (finger_extra_top)
hole5_e_y: -0.5cy
# MCU positioning (relative to finger_inner_home)
mcu_y: -12.3
mcu_x: 19.8
mcu_area_w: 19.45
mcu_area_h: 56.25
mcu_pin_spacing: 7.62
# Display positioning
display_x: mcu_x
display_y: 6.75 + mcu_y
display_w: 11.3
display_h: 25.8
# Component positions
power_x: mcu_x - 0.07
power_y: 26.1 + mcu_y
reset_x: 27.4
reset_y: -14.5 + mcu_y
battery_x: 24.8
battery_y: -22 + mcu_y
battery_rot: -135
# MCU Cover holes (relative to finger_inner_bottom)
mcu_hole1_x: 0.5cx + 4
mcu_hole1_y: -0.5cy + mcu_y + 8
mcu_hole2_x: 0.5cx + 17.6
mcu_hole2_y: -0.5cy + mcu_y + 0.146
# Breakoff tab
break_cut_w: 0.8
break_cut_fillet: break_cut_w / 2 - nudge
break_bridge_size: 3.7
# Choc
choc_under_to_pcb: 2.2
choc_top_plate: 1.3
choc_post_d: 2.65
choc_center_post_w: 3.4
choc_side_post_w: 1.9
# Diode
diode_y: -3.315
diode_d: 1.15
diode_pads_w: 3.85
diode_pads_h: 0.6
diode_w: 2.7
diode_h: 1.65
# Case dimensions
buffer: 0.1
wall_height: pcb_thickness + choc_under_to_pcb + buffer
wall_above_pcb: wall_height - pcb_thickness
wall_thickness: 1.2 + nudge
side_cut_width: 10.4
side_cut_radius: (wall_above_pcb + pcb_thickness / 2) / 2
mcu_catch_radius: (choc_under_to_pcb - choc_top_plate) / 2
bottom_thickness: 1.95
cutout_fillet: 0.3
cutout_padding: 0.6
diode_depth: diode_d + buffer
choc_depth: choc_post_d - pcb_thickness + buffer
pin_depth: 0.5 + buffer
# M2 hardware
m2_size: 2
m2_insert_inner_diameter: 2.7
m2_insert_outer_diameter: pcb_hole_diameter - buffer
m2_insert_post_height: pcb_thickness + choc_under_to_pcb - choc_top_plate
m2_insert_hole_depth: 4
m2_nut_width: 4.2
# Preview layout offsets
preview_x: 4px
preview_y: 3py
# ============================================================================
# Points
# ============================================================================
points:
zones:
finger:
anchor.shift: [160, -180] # Shifted to avoid JSCAD geometry bug at around (120, -40)
key:
tags: [key, finger]
padding: 1cy
spread: 1cx
columns:
extra:
rows.bottom.skip: true
key:
tags: [key, finger, extra]
splay: finger_splay_total
column_net: col_extra
pinky:
key:
stagger: 0.52cy
column_net: col_pinky
ring:
key:
stagger: 0.7cy
splay: -finger_splay_1
spread: 1cx + finger_splay_1 / 8
column_net: col_ring
middle:
key:
stagger: 0.375cy
splay: -finger_splay_2
spread: 1cx + finger_splay_2 / 8
column_net: col_middle
index:
key:
stagger: -0.35cy
column_net: col_index
inner:
key:
stagger: -0.15cy
column_net: col_inner
rows:
bottom:
row_net: row_bottom
home:
row_net: row_home
top:
row_net: row_top
thumb:
key:
tags: [key, thumb]
padding: 1cy
spread: 1cx
anchor:
ref: finger_index_bottom
shift: [-0.64cx, -1cy]
columns:
enc:
key:
splay: 0
spread: thumb_spread
origin: [-0.5cx, -0.5cy]
name: thumb_enc
column_net: col_ring
near:
key: &thumb_splayed
splay: -thumb_splay
spread: thumb_spread
origin: [-0.5cx, -0.5cy]
name: thumb_near
column_net: col_middle
mid:
key:
<<: *thumb_splayed
name: thumb_mid
column_net: col_index
far:
key:
<<: *thumb_splayed
name: thumb_far
column_net: col_inner
rows:
thumb:
row_net: row_thumb
# ============================================================================
# Outlines
# ============================================================================
outlines:
# MCU and display areas
_mcu_area:
- what: rectangle
where:
ref: finger_inner_home
shift: [mcu_x, mcu_y - 5]
size: [mcu_area_w, mcu_area_h + 10]
_display:
- what: rectangle
where:
ref: finger_inner_home
shift: [display_x, display_y]
size: [display_w, display_h]
_mcu_cover_holes:
- what: circle
radius: m2_size / 2
where: &mcu_hole1_where
ref: finger_inner_bottom
shift: [mcu_hole1_x, mcu_hole1_y]
- what: circle
radius: m2_size / 2
where: &mcu_hole2_where
ref: finger_inner_bottom
shift: [mcu_hole2_x, mcu_hole2_y]
_m2_nut:
- what: polygon
adjust.shift: [m2_nut_width / (2 * sqrt_3), m2_nut_width / 2]
points:
- shift: [m2_nut_width / (2 * sqrt_3), -m2_nut_width / 2]
- shift: [-m2_nut_width / (2 * sqrt_3), -m2_nut_width / 2]
- shift: [-m2_nut_width / sqrt_3, 0]
- shift: [-m2_nut_width / (2 * sqrt_3), m2_nut_width / 2]
- shift: [m2_nut_width / (2 * sqrt_3), m2_nut_width / 2]
- shift: [m2_nut_width / sqrt_3, 0]
_mcu_cover_nut_cutout:
- name: _m2_nut
where: *mcu_hole1_where
- name: _m2_nut
where: *mcu_hole2_where
# Component cutout primitives
_socket_left_top_block:
- what: rectangle # Top block
size: [4.7, 5.2]
adjust.shift: [0, 5.95]
- what: rectangle # Chamfer
operation: intersect
size: [6.1, 6.1]
adjust: { shift: [0, 5.95], rotate: 45 }
fillet: cutout_fillet
- what: rectangle # Top pad
size: [3.2, 3.2]
adjust.shift: [-3.3, 5.95]
fillet: cutout_fillet - 0.07
_socket_left_bottom_block:
- what: rectangle # Bottom block
size: [5.2, 5.4]
adjust.shift: [4.75, 3.85]
- what: rectangle # Bottom pad
size: [3.2, 3.2]
adjust.shift: [8.3, 3.75]
fillet: cutout_fillet
_socket_left:
- +_socket_left_top_block
- +_socket_left_bottom_block
- what: rectangle # Center
size: [1, 3.2]
adjust.shift: [2.25, 4.95]
- what: rectangle # Top curve
size: [0.7 - nudge, 0.7 - nudge]
adjust.shift: [2.35, 6.55]
- what: circle
operation: subtract
radius: 0.35
adjust.shift: [2.7, 6.9]
- what: rectangle # Bottom curve
size: [2.7 - nudge, 2.7 - nudge]
adjust.shift: [2.15, 3.35]
- what: circle
operation: subtract
radius: 1.35
adjust.shift: [0.8, 2]
_socket_m_right_top_block:
- what: rectangle # Top block
size: [4.7, 5.2]
adjust.shift: [0, 5.95]
- what: rectangle # Chamfer
operation: intersect
size: [6.1, 6.1]
adjust: { shift: [0, 5.95], rotate: -45 }
fillet: cutout_fillet
- what: rectangle # Top pad
size: [3.2, 3.2]
adjust.shift: [3.3, 5.95]
fillet: cutout_fillet - 0.07
_socket_m_right_bottom_block:
- what: rectangle # Bottom block
size: [5.2, 5.4]
adjust.shift: [-4.75, 3.85]
- what: rectangle # Bottom pad
size: [3.2, 3.2]
adjust.shift: [-8.3, 3.75]
fillet: cutout_fillet
_socket_m_right:
- +_socket_m_right_top_block
- +_socket_m_right_bottom_block
- what: rectangle # Center
size: [1, 3.2]
adjust.shift: [-2.25, 4.95]
- what: rectangle # Top curve
size: [0.7 - nudge, 0.7 - nudge]
adjust.shift: [-2.35, 6.55]
- what: circle
operation: subtract
radius: 0.35
adjust.shift: [-2.7, 6.9]
- what: rectangle # Bottom curve
size: [2.7 - nudge, 2.7 - nudge]
adjust.shift: [-2.15, 3.35]
- what: circle
operation: subtract
radius: 1.35
adjust.shift: [-0.8, 2]
_solder_pin:
- what: circle
radius: 1
adjust.shift: [-0.25, 0]
- what: rectangle
size: [0.5 + nudge*100, 2]
- what: circle
radius: 1
adjust.shift: [0.25, 0]
_solder_pins_left:
- name: _solder_pin
adjust.shift: [-5, -3.8]
- name: _solder_pin
adjust.shift: [0, -5.9]
_solder_pins_m_right:
- name: _solder_pin
adjust.shift: [5, -3.8]
- name: _solder_pin
adjust.shift: [0, -5.9]
_diode_pads:
- what: rectangle
size: [diode_pads_w + cutout_padding, diode_pads_h + cutout_padding + 0.3]
adjust.shift: [0, diode_y]
fillet: cutout_fillet
_diode:
- what: rectangle
size: [diode_w + cutout_padding, diode_h + cutout_padding]
adjust.shift: [0, diode_y]
fillet: cutout_fillet
_choc_side_posts:
- what: circle
radius: (choc_side_post_w + cutout_padding) / 2
adjust.shift: [-5.5, 0]
- what: circle
radius: (choc_side_post_w + cutout_padding) / 2
adjust.shift: [5.5, 0]
_choc_post_bridge_left: # Bridge choc post to hotswap socket
- what: rectangle
size: [2.5, 2.5]
adjust.shift: [5.5, 1.25]
_choc_post_bridge_m_right:
- what: rectangle
size: [2.5, 2.5]
adjust.shift: [-5.5, 1.25]
_choc_center_post:
- what: circle
radius: (choc_center_post_w + cutout_padding) / 2
- what: rectangle
size:
[
(choc_center_post_w + cutout_padding) / 2,
(choc_center_post_w + cutout_padding) / 2,
]
adjust.shift: [0, -(choc_center_post_w + cutout_padding) / 2]
_choc_posts:
- +_choc_center_post
- +_choc_side_posts
_mcu_pins_trench:
- what: circle
radius: 1
adjust.shift: [0, 14]
- what: rectangle
size: [2, 28]
- what: circle
radius: 1
adjust.shift: [0, -14]
_mcu_pins:
- name: _mcu_pins_trench
adjust: { shift: [-mcu_pin_spacing, -1.25] }
- name: _mcu_pins_trench
adjust: { shift: [mcu_pin_spacing, -1.25], rotate: 180 }
_mcu_jumpers_trench:
- what: rectangle
size: [1.9, 29.55]
adjust.shift: [2.59, -0.025]
fillet: cutout_fillet
_mcu_jumpers:
- name: _mcu_jumpers_trench
adjust: { shift: [-mcu_pin_spacing, -1.25] }
- name: _mcu_jumpers_trench
adjust: { shift: [mcu_pin_spacing, -1.25], rotate: 180 }
_display_pins:
- what: circle
radius: 1
adjust.shift: [-5.1, -16.7]
- what: rectangle
size: [10.2, 2]
adjust.shift: [0, -16.7]
- what: circle
radius: 1
adjust.shift: [5.1, -16.7]
_display_jumpers:
- what: rectangle
size: [11.75, 3.8]
adjust.shift: [0, -15.5]
fillet: cutout_fillet
_battery_pins:
- what: rectangle
size: [3.6, 2]
fillet: 0.7
_battery_jumpers:
- what: rectangle
size: [3.6, 3]
adjust.shift: [0, -1.75]
fillet: cutout_fillet
_encoder_pins:
- what: circle
radius: 0.75
adjust.shift: [-2.8, -7.5]
- what: rectangle
size: [5.6, 1.5]
adjust.shift: [0, -7.5]
- what: circle
radius: 0.75
adjust.shift: [2.8, -7.5]
_encoder_pins_bridge: # Bridge to choc solder hole
- what: rectangle
size: [2.5, 2]
adjust.shift: [0, -6.85]
# Case bottom cutouts
_full_depth_38:
- name: _choc_side_posts
where: thumb_enc
_diode_depth:
- name: _diode
where: /key/
_choc_depth_38:
- name: _choc_posts
where: [[key, -extra]]
_choc_depth_pinky:
- name: _choc_posts
where: extra
_pin_depth_38:
- name: _diode_pads
where: /key/
- name: _encoder_pins
where: thumb_enc
- name: _mcu_pins
where: &mcu_pos
ref: finger_inner_home
shift: [mcu_x, 10.8 + mcu_y]
- name: _mcu_jumpers
where: *mcu_pos
- name: _display_pins
where: &display_pos
ref: finger_inner_home
shift: [display_x, 7.5 + mcu_y]
- name: _display_jumpers
where: *display_pos
- name: _battery_pins
where: &battery_pos
ref: finger_inner_home
shift: [battery_x, battery_y]
rotate: battery_rot
- name: _battery_jumpers
where: *battery_pos
_socket_full_depth_38_left:
- +_full_depth_38
- name: _choc_post_bridge_left
where: thumb_enc
- name: _socket_left
where: [[key, -extra]]
_socket_full_depth_38_m_right:
- +_full_depth_38
- name: _choc_post_bridge_m_right
where: thumb_enc
- name: _socket_m_right
where: [[key, -extra]]
_socket_full_depth_pinky_left:
- name: _socket_left
where: extra
_socket_full_depth_pinky_m_right:
- name: _socket_m_right
where: extra
_socket_choc_depth_left:
- +_choc_depth_38
- name: _choc_post_bridge_left
where: [[key, -extra]]
_socket_choc_depth_m_right:
- +_choc_depth_38
- name: _choc_post_bridge_m_right
where: [[key, -extra]]
_socket_choc_depth_pinky_left:
- +_choc_depth_pinky
- name: _choc_post_bridge_left
where: extra
_socket_choc_depth_pinky_m_right:
- +_choc_depth_pinky
- name: _choc_post_bridge_m_right
where: extra
_solder_pin_depth_38_left:
- +_pin_depth_38
- name: _solder_pins_left
where: [[key, -extra]]
- name: _encoder_pins_bridge
where: thumb_enc
_solder_pin_depth_38_m_right:
- +_pin_depth_38
- name: _solder_pins_m_right
where: [[key, -extra]]
- name: _encoder_pins_bridge
where: thumb_enc
_solder_pin_depth_pinky_left:
- name: _solder_pins_left
where: extra
_solder_pin_depth_pinky_m_right:
- name: _solder_pins_m_right
where: extra
# Case side cutouts
_case_cutout_left:
- what: circle
radius: side_cut_radius
adjust.shift: [side_cut_radius, -side_cut_radius]
- what: rectangle
size: [side_cut_radius * 2, side_cut_radius * 2]
- what: circle
operation: subtract
radius: side_cut_radius
adjust.shift: [-side_cut_radius, -side_cut_radius]
_case_cutout_right:
- what: circle
radius: side_cut_radius
adjust.shift: [-side_cut_radius, -side_cut_radius]
- what: rectangle
size: [side_cut_radius * 2, side_cut_radius * 2]
- what: circle
operation: subtract
radius: side_cut_radius
adjust.shift: [side_cut_radius, -side_cut_radius]
_case_cutout:
- name: _case_cutout_left
adjust.shift: [-(side_cut_width / 2), 0]
- what: rectangle
size: [side_cut_width - side_cut_radius * 2, side_cut_radius * 4]
- name: _case_cutout_right
adjust.shift: [(side_cut_width / 2), 0]
_case_cutout_half:
- name: _case_cutout_left
adjust.shift: [-(side_cut_width / 4), 0]
- what: rectangle
size: [(side_cut_width / 2) - side_cut_radius * 2, side_cut_radius * 4]
- name: _case_cutout_right
adjust.shift: [(side_cut_width / 4), 0]
_usbc_case_cutout:
- name: _case_cutout
where:
ref: finger_inner_home
shift: [mcu_x, mcu_y + mcu_area_h / 2]
_side_case_cutout:
- name: _case_cutout_half
where:
ref: finger_inner_home
shift: [mcu_x + mcu_area_w / 2, reset_y]
rotate: -90
# MCU Catch
_mcu_catch_slice:
- what: circle
radius: mcu_catch_radius
- what: rectangle
operation: subtract
size: [mcu_catch_radius * 2, mcu_catch_radius * 3]
adjust.shift: [mcu_catch_radius + wall_thickness / 2, 0]
_mcu_catch:
- name: _mcu_catch_slice
where:
ref: finger_inner_home
shift: [mcu_x + mcu_area_w / 2, reset_y]
# Mounting holes
_plate_hole:
- what: circle
radius: m2_size / 2 + 0.1
_plate_holes_38:
- name: _plate_hole
where: &hole1_pos
ref: finger_middle_top
shift: [hole1_x, hole1_y]
- name: _plate_hole
where: &hole2_pos
ref: finger_index_top
shift: [hole2_x, hole2_y]
- name: _plate_hole
where: &hole3_pos
ref: thumb_mid
shift: [hole3_x, hole3_y]
- name: _plate_hole
where: &hole4_pos
ref: thumb_enc
shift: [hole4_x, hole4_y]
- name: _plate_hole
where: &hole5_pos
ref: finger_pinky_top
shift: [hole5_x, hole5_y]
_plate_holes_42:
- +_plate_holes_38
- name: _plate_hole
where: &hole5_e_pos
ref: finger_extra_top
shift: [hole5_e_x, hole5_e_y]
- what: circle
operation: subtract
radius: m2_size
where: *hole5_pos
# M2 insert posts
_post:
- what: circle
radius: m2_insert_outer_diameter / 2
_post_hole:
- what: circle
radius: m2_insert_inner_diameter / 2
_posts_core:
- name: _post
where: *hole1_pos
- name: _post
where: *hole2_pos
- name: _post
where: *hole3_pos
- name: _post
where: *hole4_pos
- name: _post
where: *hole5_pos
_posts_pinky:
- name: _post
where: *hole5_pos
- name: _post
where: *hole5_e_pos
_post_holes_core:
- name: _post_hole
where: *hole1_pos
- name: _post_hole
where: *hole2_pos
- name: _post_hole
where: *hole3_pos
- name: _post_hole
where: *hole4_pos
- name: _post_hole
where: *hole5_pos
_posts_holes_pinky:
- name: _post_hole
where: *hole5_e_pos
# Thumb cluster smoothing curves
_thumb_smooth:
- +_mcu_area
- name: _mcu_area
operation: subtract
adjust.shift: [0, 1.5py]
- what: rectangle
where: thumb_far
size: [px, py]
fillet: pcb_fillet * 2
_top_plate_smooth_1:
- +_thumb_smooth
- what: rectangle
operation: subtract
where: thumb_mid
size: [3px, py]
adjust.shift: [0, py]
- what: rectangle
operation: subtract
where: thumb_mid
size: [pcb_fillet, pcb_fillet]
adjust.shift: [1py - 0.6, 0.5py + 0.3]
- what: circle
where: thumb_mid
radius: pcb_fillet
adjust.shift: [1py - pcb_fillet / 2 - 0.6, 0.5py - pcb_fillet]
_top_plate_smooth:
- +_thumb_smooth
- ~_top_plate_smooth_1
_thumb_arc:
- what: rectangle
where: thumb_enc
size: [4px, py]
- what: rectangle
where: thumb_far
size: [4px, py]
fillet: 66.62
- what: rectangle
operation: subtract
where: thumb_mid
size: [5px, py]
adjust.shift: [0, 0.5py]
- what: rectangle
operation: subtract
where: thumb_enc
size: [2px, 2py]
adjust.shift: [-1.5px, 0]
- what: rectangle
operation: subtract
where: thumb_far
size: [2px, 2py]
adjust.shift: [1.5px, 0]
_thumb:
- what: rectangle
where: /thumb/
size: [px, py]
- +_top_plate_smooth
- what: polygon
points:
- ref: thumb_enc
shift: [-0.5px, 1.75py]
- ref: thumb_mid
shift: [-2px, 0.5py]
- ref: thumb_mid
shift: [-0.5px, 0.5py]
- ref: thumb_mid
shift: [0.561px, 0.5py]
- ref: thumb_far
shift: [0.5px, 0.5py]
- ref: thumb_far
shift: [0.5px, 0]
- ref: thumb_far
shift: [-0.5px, 0]
- ref: thumb_mid
shift: [-0.5px, 0]
- ref: thumb_near
shift: [-0.5px, 0]
- ref: thumb_enc
shift: [-0.5px, 0]
- +_thumb_arc
- what: rectangle
where: finger_inner_bottom
size: [px, py]
adjust.shift: [0, -0.5py]
_finger_fill:
- what: rectangle
where:
- finger_pinky_top
- finger_pinky_home
- finger_ring_top
- finger_ring_home
- finger_ring_bottom
- finger_index_top
size: [px, py]
adjust.shift: [1cx, 0]
# Kickstand outlines
_kickstand_42_1:
- what: rectangle
where: /finger_extra/
size: [px, py]
adjust.shift: [-0.5px, 0]
- what: polygon
operation: subtract
points:
- ref: finger_extra_top
shift: [-2px, 0.5py]
- ref: finger_extra_top
shift: [-0.5px, 0.5py]
- ref: finger_extra_home
shift: [0, -2py]
affect: y
- ref: finger_extra_home
shift: [-2px, -2py]
_kickstand_42_1e:
- name: _kickstand_42_1
expand: wall_thickness + buffer
joints: 1
_kickstand_42_1ef:
- name: _kickstand_42_1e
fillet: pcb_fillet * 2
_kickstand_42_2:
- name: _kickstand_42_1e
- what: rectangle
operation: subtract
where: finger_extra_home
size: [1px, py]
adjust.shift: [-0.75px, -0.25px]
- +_kickstand_42_1ef
_kickstand_38_1:
- what: rectangle
where:
- finger_pinky_top
- finger_pinky_home
- finger_pinky_bottom
size: [px, py]
adjust.shift: [-0.5px, 0]
- what: polygon
operation: subtract
points:
- ref: finger_pinky_top
shift: [-2px, 0.5py]
- ref: finger_pinky_top
shift: [-0.5px, 0.5py]
- ref: finger_pinky_bottom
shift: [0, -2py]
affect: y
- ref: finger_pinky_bottom
shift: [-2px, -2py]
_kickstand_38_1e:
- name: _kickstand_38_1
expand: wall_thickness + buffer
joints: 1
_kickstand_38_1ef:
- name: _kickstand_38_1e
fillet: pcb_fillet * 2
_kickstand_38_2:
- name: _kickstand_38_1e
- what: rectangle
operation: subtract
where: finger_pinky_bottom
size: [1px, py]
adjust.shift: [-0.75px, -0.25px]
- +_kickstand_38_1ef
# Key areas
_keys_42:
- what: rectangle
where: /key/
size: [px, py]
_keys_38:
- what: rectangle
where: [[key, -extra]]
size: [px, py]
_key_plug:
- what: rectangle
size: [plug_w, plug_h]
_encoder_plate_cutout:
- name: _key_plug
where: thumb_enc
- what: rectangle
where: thumb_enc
size: [7.1, 1.5]
adjust.shift: [0, -7.5 + 0.375]
_key_plugs_42:
- +_encoder_plate_cutout
- name: _key_plug
where: /key/
fillet: cutout_fillet
_key_plugs_38:
- +_encoder_plate_cutout
- name: _key_plug
where: [[key, -extra]]
fillet: cutout_fillet
_keys_area_42:
- +_keys_42
- +_finger_fill
- +_thumb
_keys_area_38:
- +_keys_38
- +_finger_fill
- +_thumb
# Board outlines
_board_42:
- +_mcu_area
- +_keys_area_42
- +_thumb_smooth
_board_38:
- +_mcu_area
- +_keys_area_38
- +_thumb_smooth
# Breakoff tab for extra pinky
_break_cut_inner:
- name: _board_38
fillet: pcb_fillet
_break_cut:
- name: _break_cut_inner
expand: break_cut_w
joints: 1
- -_break_cut_inner
_break_bridge:
- what: rectangle
adjust.shift: [0, 0.25py - 1.06]
size: [break_cut_w * 2, break_bridge_size]
- what: rectangle
adjust.shift: [0, -0.25py + 0.14]
size: [break_cut_w * 2, break_bridge_size / 2]
_break_bridges:
- name: _break_bridge
where: /finger_extra/
adjust.shift: [0.5px - pad - break_cut_w / 2, 0]
_break:
- +_break_cut
- -_break_bridges
# 42-key case outlines
_case_inner_42_1:
- name: _board_42
fillet: pcb_fillet
_case_inner_42:
- name: _case_inner_42_1
expand: buffer
joints: 1
_case_outer_42_1:
- name: _board_42
expand: wall_thickness + buffer