-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmantis.yaml
1180 lines (1159 loc) · 29 KB
/
mantis.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
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
units:
# Hex key spacing
hx: 21.5
hy: 18.62
# Margin around the PCB
mx: 2
my: 1.1547mx
# Distance between key clusters
dx: 3
dy: 1.1547dx
# Space around keys and fillet radius
kx: 0.54/2
ky: 1.1547kx
fk: 3
# Space around raised PCB and fillet radius
rx: kx
ry: 1.1547rx
# Width of the sound channel and exit radius
wc: 15.2
# MCU vertical offset
mcu_top: hy/3+2my
# Gap between plates
gap: 1
points:
zones:
# Just key positions for reference, without any rotation
# Origin aligns the center/split line with both inch and mm rasters
f:
anchor:
shift: [254-9hx/2-dx/2, -127+3hy]
columns:
c0:
rows:
r0: $unset
r1: $unset
r2: $unset
r3:
shift: [0]
c1:
rows:
r0: $unset
key:
stagger: -2hy
spread: 0
c2:
rows:
r0: $unset
c3:
rows:
r1:
shift: [hx/2]
key:
stagger: -hy
spread: hx/2
c4:
rows:
r0: $unset
c5:
rows:
r0: $unset
r1: $unset
r2:
shift: [0]
rows:
r0:
r1:
r2:
shift: [hx/2]
r3:
shift: [hx/2]
t:
anchor:
shift: [254-5hx/2-dx/2, -127-hy-dy]
columns:
c1:
c2:
c3:
rows:
r1:
r2:
shift: [hx/2]
key:
stagger: -hy
spread: hx/2
rows:
r1:
# Positions for standoffs, mounting holes and headers
mount:
anchor:
ref: f_c0_r3
columns:
base1:
rows.r.shift: [-hx/2+hx/8, -hy+hy/4]
base2:
rows.r.shift: [3hx/4, -3hy]
#rows.r.shift: [hx, -4hy/3]
base3:
rows.r.shift: [3hx/2-1, hy/3-1]
raise1:
#rows.r.shift: [5hx/2-3, -27hy/6-dy]
rows.r.shift: [5hx/2-hx/8, -5hy-dy+hy/4+my+ky]
raise2:
rows.r.shift: [9hx/2+dx/2-4, -11hy/3]
raise3:
#rows.r.shift: [23hx/6, -hy/3]
rows.r.shift: [4hx-hx/8, -hy/4]
header:
rows.r.shift: [9hx/2+dx/2, -3hy-dy/4+1.5]
key:
spread: 0
# Keys are rotated in 60° increments to make a simulated key well
# with sculpted key caps. Define each row in its own zone to make
# the key rotation easier. Otherwise the spread and stagger get very
# confusing. The matrix is a little unintuitive to minimize the
# number of column pins between top and bottom PCBs.
top:
anchor:
ref: f_c1_r3
columns:
c1:
key:
column_net: C1
mirror.column_net: M_C1
c2:
key:
column_net: C2
mirror.column_net: M_C2
c3:
key:
column_net: C3
mirror.column_net: M_C3
c4:
key:
spread: hx/2
stagger: -hy
column_net: C4
mirror.column_net: M_C4
c5:
key:
spread: hx/2
stagger: -hy
column_net: C5
mirror.column_net: M_C5
rows:
r3:
row_net: R3
rotate: -60
home:
anchor:
ref: f_c1_r2
columns:
c1:
key:
column_net: C1
mirror.column_net: M_C1
c2:
key:
column_net: C2
mirror.column_net: M_C2
c3:
key:
column_net: C3
mirror.column_net: M_C3
c4:
key:
spread: hx/2
stagger: -hy
column_net: C4
mirror.column_net: M_C4
c5:
rows.r2:
rotate: 180
key:
spread: hx/2
stagger: -hy
column_net: C5
mirror.column_net: M_C5
rows:
r2:
row_net: R2
rotate: -120
bottom:
anchor:
ref: f_c1_r1
columns:
c1:
key:
column_net: C1
mirror.column_net: M_C1
c2:
key:
column_net: C2
mirror.column_net: M_C2
c3:
key:
column_net: C3
mirror.column_net: M_C3
c4:
key:
spread: hx/2
stagger: -hy
column_net: C4
mirror.column_net: M_C4
c5:
rows.r1:
rotate: -60
key:
spread: 1.5hx
stagger: -hy-dy
column_net: C5
mirror.column_net: M_C5
rows:
r1:
row_net: R1
rotate: 180
thumb:
anchor:
ref: f_c0_r3
columns:
c1:
key:
column_net: C1
mirror.column_net: M_C1
c2:
rows.rt:
rotate: 180
key:
spread: 1.5hx
stagger: -3hy
column_net: C2
mirror.column_net: M_C2
c3:
key:
spread: 2hx
stagger: -2hy-dy
column_net: C3
mirror.column_net: M_C3
c4:
rows.rt:
rotate: 60
key:
spread: -1.5hx
stagger: hy
column_net: C4
mirror.column_net: M_C4
c5:
key:
column_net: C5
mirror.column_net: M_C5
rows:
rt:
row_net: RT
rotate: 0
key:
spread: hx
padding: hy
mirror:
ref: top_c5_r3
distance: hx+dx
outlines:
_main:
# All points of the main outline are relative to non-rotated
# keys to keep it sane.
- what: polygon
points:
- ref: thumb_c3_rt
shift: [0, -2hy/3-my]
- ref: thumb_c3_rt
shift: [-2hx-mx, 2hy/3-my/2]
- ref: thumb_c3_rt
shift: [-2hx-mx, 4hy/3+dy-my/2]
- ref: thumb_c1_rt
shift: [-hx/2-mx, -7hy/3-my/2]
- ref: thumb_c1_rt
shift: [-hx/2-mx, hy/3+my/2]
- ref: thumb_c1_rt
shift: [hx/2, hy+my]
- ref: thumb_c1_rt
shift: [3hx/2, hy/3+my]
- ref: thumb_c1_rt
shift: [5hx/2, hy+my]
- ref: thumb_c1_rt
shift: [9hx/2+dx/2, my-dy/4-hy/3]
- ref: mirror_thumb_c1_rt
shift: [5hx/2, hy+my]
- ref: mirror_thumb_c1_rt
shift: [3hx/2, hy/3+my]
- ref: mirror_thumb_c1_rt
shift: [hx/2, hy+my]
- ref: mirror_thumb_c1_rt
shift: [-hx/2-mx, hy/3+my/2]
- ref: mirror_thumb_c1_rt
shift: [-hx/2-mx, -7hy/3-my/2]
- ref: mirror_thumb_c3_rt
shift: [-2hx-mx, 4hy/3+dy-my/2]
- ref: mirror_thumb_c3_rt
shift: [-2hx-mx, 2hy/3-my/2]
- ref: mirror_thumb_c3_rt
shift: [0, -2hy/3-my]
- ref: thumb_c3_rt
shift: [hx+dx/2, -my+dy/4]
- what: rectangle
where:
ref: thumb_c1_rt
shift: [9hx/2+dx/2, mcu_top-4hy/3]
size: [4hx+dx, 8hy/3]
operation: add
fillet: mx+kx+fk
_raised:
- what: polygon
points:
- ref: thumb_c3_rt
shift: [hx+dx/2, -dy/4+ry]
- shift: [-hx-dx/2, 2hy/3+dy/4]
- shift: [-hx, -2hy/3]
- shift: [-hx+rx, 2hy/3-ry/2]
- shift: [0, 2hy/3-ry]
- shift: [hx/2, hy/3]
- shift: [0, 2hy/3+dy]
- shift: [hx/2, hy/3]
- shift: [0, 2hy/3]
- shift: [hx/2, hy/3]
- shift: [0, 2hy/3]
# Extended center to mount controller
- shift: [hx/2, hy/3]
- shift: [0, hy/3+ry/2+mcu_top]
- shift: [2hx+dx-2rx, 0]
- shift: [0, -hy/3-ry/2-mcu_top]
- shift: [hx/2, -hy/3]
# Fitted center for controller on the main PCB
#- shift: [hx/2-rx, hy/3-ry/2]
#- shift: [hx/2-rx, -hy/3+ry/2]
#- shift: [0, -2hy/3]
#- shift: [hx/2+dx/2+rx, -hy/3-dy/4-ry/2]
#- shift: [hx/2+dx/2+rx, hy/3+dy/4+ry/2]
#- shift: [0, 2hy/3]
#- shift: [hx/2-rx, hy/3-ry/2]
#- shift: [hx/2-rx, -hy/3+ry/2]
- shift: [0, -2hy/3]
- shift: [hx/2, -hy/3]
- shift: [0, -2hy/3]
- shift: [hx/2, -hy/3]
- shift: [0, -2hy/3-dy]
- shift: [hx/2, -hy/3]
- shift: [0, -2hy/3+ry]
- shift: [-hx+rx, -2hy/3+ry/2]
- shift: [-hx, 2hy/3]
fillet: fk+kx-rx
_hexagon:
- what: polygon
points:
- shift: [-hx/2+kx, -hy/3+ky/2]
- shift: [0, 2.0hy/3-ky]
- shift: [hx/2-kx, hy/3-ky/2]
- shift: [hx/2-kx, -hy/3+ky/2]
- shift: [0, -2.0hy/3+ky]
- shift: [-hx/2+kx, -hy/3+ky/2]
fillet: fk
_hexkey:
- what: outline
name: _hexagon
- what: circle
radius: 7
where:
shift: [0, -2]
operation: stack
_m2_nut:
- what: polygon
points:
- shift: [-2.0, -1.155]
- shift: [0, 2.31]
- shift: [2.0, 1.155]
- shift: [2.0, -1.155]
- shift: [0, -2.31]
- shift: [-2.0, -1.155]
fillet: .6
_rgb_cutout:
- what: rectangle
where:
shift: [0, 4.7]
size: [3.2, 3.2]
fillet: 0.4
_switch_cutout1:
- what: rectangle
size: [13.8, 13.8]
fillet: 0.6
_mcu_cutout:
- what: rectangle
size: [17.78 + 1, 33.02 + 1]
where:
ref: thumb_c1_rt
shift: [9hx/2+dx/2, mcu_top-16.51]
fillet: 0.5
_header_cutout:
- what: polygon
points:
# 1.5mm higher
- ref: thumb_c3_rt
shift: [hx/2-kx, 5hy/3+ky/2+dy/2]
- shift: [0, 2hy/3+dy/2-ky+1.5]
#- shift: [hx/2-kx+dx/2, hy/3-ky/2+dx/4]
#- shift: [hx/2-kx+dx/2, -hy/3+ky/2-dx/4]
- shift: [hx+dx+2kx, 0]
- shift: [0, -2hy/3-dy/2+ky-1.5]
#- shift: [-hx/2+kx-dx/2, -hy/3+ky/2-dx/4]
- what: rectangle
size: [hx, wc]
where: [thumb_c3_rt]
asym: both
adjust:
shift: [hx/4+3*1.1547, 3hy/2]
rotate: -60
operation: subtract
fillet: 1
_sound_holes:
- what: circle
radius: wc/2
where: [top_c4_r3, home_c4_r2,
bottom_c4_r1, bottom_c5_r1,
thumb_c4_rt, thumb_c5_rt]
asym: both
_main_cutouts:
- what: outline
name: _mcu_cutout
- what: outline
name: _sound_holes
_linear_channel_1u:
- what: rectangle
size: [hx+0.01, wc]
- what: circle
radius: wc/2
where:
shift: [-hx/2, 0]
operation: add
- what: circle
radius: wc/2
where:
shift: [hx/2, 0]
operation: add
_linear_channel_1u_dx:
- what: rectangle
size: [hx+dx+0.01, wc]
- what: circle
radius: wc/2
where:
shift: [(hx+dx)/2, 0]
operation: add
_linear_channel_2u:
- what: rectangle
size: [2hx+0.01, wc]
- what: circle
radius: wc/2
where:
shift: [-hx, 0]
operation: add
- what: circle
radius: wc/2
where:
shift: [hx, 0]
operation: add
_linear_channel_3u:
- what: rectangle
size: [3hx+0.01, wc]
- what: circle
radius: wc/2
where:
shift: [-3hx/2, 0]
operation: add
- what: circle
radius: wc/2
where:
shift: [3hx/2, 0]
operation: add
_linear_channel_dy:
- what: rectangle
size: [wc, dy+0.01]
where:
shift: [0, dy/2]
- what: circle
radius: wc/2
operation: add
_arc_channel_1u:
- what: circle
radius: 2hy/3 + wc/2
- what: circle
radius: 2hy/3 - wc/2
operation: subtract
- what: polygon
points:
- shift: [0, 0]
- shift: [-2hy, hx]
- shift: [4hy, 0]
operation: intersect
_arc_channel_2u:
- what: circle
radius: 2hy/3 + wc/2
- what: circle
radius: 2hy/3 - wc/2
operation: subtract
- what: polygon
points:
- shift: [0, 0]
- shift: [-2hy, hx]
- shift: [4hy, 0]
operation: subtract
_sound_channel_main:
- what: outline
name: _arc_channel_1u
where: [f_c0_r3, f_c2_r3]
asym: both
adjust:
- shift: [hx/2, -hy/3]
- what: outline
name: _linear_channel_1u
where: [f_c0_r3, f_c3_r3]
asym: both
adjust:
- shift: [hx/4, -hy/2]
- rotate: -60
- what: outline
name: _linear_channel_2u
where: [f_c3_r0, f_c3_r2]
asym: both
adjust:
- rotate: -60
- what: outline
name: _linear_channel_3u
where: [f_c2_r2]
asym: both
adjust:
- shift: [hx/4, -hy/2]
- rotate: -60
- what: outline
name: _arc_channel_2u
where: [f_c1_r2]
asym: both
adjust:
- shift: [0, -2hy/3]
- rotate: -60
- what: outline
name: _linear_channel_dy
where: [t_c1_r1]
asym: both
- what: outline
name: _arc_channel_2u
where: [t_c3_r1]
asym: both
adjust:
- shift: [0, 2hy/3]
- what: circle
radius: wc/2
where: [t_c2_r1, t_c3_r2]
asym: both
fillet: 1
_sound_channel_raised_common:
- what: outline
name: _linear_channel_1u
where: [f_c5_r2, t_c2_r1, t_c3_r2]
asym: both
adjust:
shift: [-hx/4, hy/2]
rotate: -60
- what: outline
name: _linear_channel_dy
where: [f_c4_r1, f_c5_r2]
asym: both
adjust:
rotate: 180
fillet: 1
- what: circle
radius: wc/2
where: [t_c1_r1]
asym: both
- what: rectangle
size: [wc, wc/3]
where: [t_c1_r1]
asym: both
adjust:
shift: [-wc/2, 0]
- what: rectangle
size: [wc, wc]
where: [t_c1_r1]
asym: both
adjust:
shift: [-hx/2-wc/2+kx, 0]
fillet: (hx-wc)/4
_sound_channel_raised:
- what: outline
name: _linear_channel_1u
where: [f_c5_r3]
asym: both
adjust:
shift: [-hx/4, hy/2]
rotate: -60
- what: outline
name: _sound_channel_raised_common
_sound_channel_raised_asym:
- what: outline
name: _linear_channel_1u
where: [f_c5_r3]
asym: left
adjust:
shift: [-hx/4, hy/2]
rotate: -60
- what: outline
name: _linear_channel_1u_dx
where: [f_c5_r3]
asym: left
adjust:
shift: [(hx+dx)/2, 0]
fillet: 1
- what: circle
radius: wc/2
where: [f_c4_r3]
asym: right
- what: outline
name: _sound_channel_raised_common
base:
- what: outline
name: _main
- what: circle
radius: 1.1
where: [mount_base1_r, mount_base2_r, mount_base3_r, mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: subtract
main_split:
- what: outline
name: _main
- what: outline
name: _rgb_cutout
where: [top_c1_r3, top_c2_r3, top_c3_r3,
home_c1_r2, home_c2_r2, home_c3_r2,
bottom_c1_r1, bottom_c2_r1, bottom_c3_r1,
thumb_c1_rt, thumb_c2_rt, thumb_c3_rt]
operation: subtract
- what: outline
name: _main_cutouts
operation: subtract
- what: rectangle
size: [9hx+dx, 9hy]
where:
ref: thumb_c1_rt
shift: [0, -3hy]
operation: intersect
raised:
- what: outline
name: _raised
- what: outline
name: _rgb_cutout
where: [top_c4_r3, top_c5_r3,
home_c4_r2, home_c5_r2,
bottom_c4_r1, bottom_c5_r1,
thumb_c4_rt, thumb_c5_rt]
asym: both
operation: subtract
plate_main:
- what: outline
name: _main
- what: outline
name: _switch_cutout1
where: [top_c1_r3, top_c2_r3, top_c3_r3,
home_c1_r2, home_c2_r2, home_c3_r2,
bottom_c1_r1, bottom_c2_r1, bottom_c3_r1,
thumb_c1_rt, thumb_c2_rt, thumb_c3_rt]
asym: both
operation: subtract
- what: outline
name: _main_cutouts
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _m2_nut
where: [mount_base1_r, mount_base2_r, mount_base3_r]
asym: both
operation: subtract
- what: circle
radius: 1.6
where: [mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: subtract
plate_main_split:
- what: outline
name: _main
- what: rectangle
size: [9hx+dx, 9hy]
where:
ref: thumb_c1_rt
shift: [0, -3hy]
operation: intersect
- what: outline
name: _switch_cutout1
where: [top_c1_r3, top_c2_r3, top_c3_r3,
home_c1_r2, home_c2_r2, home_c3_r2,
bottom_c1_r1, bottom_c2_r1, bottom_c3_r1,
thumb_c1_rt, thumb_c2_rt, thumb_c3_rt]
operation: subtract
- what: outline
name: _main_cutouts
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _m2_nut
where: [mount_base1_r, mount_base2_r, mount_base3_r]
operation: subtract
- what: circle
radius: 1.6
where: [mount_raise1_r, mount_raise2_r, mount_raise3_r]
operation: subtract
plate_raised:
- what: outline
name: _raised
- what: outline
name: _switch_cutout1
where: [top_c4_r3, top_c5_r3,
home_c4_r2, home_c5_r2,
bottom_c4_r1, bottom_c5_r1,
thumb_c4_rt, thumb_c5_rt]
asym: both
operation: subtract
- what: outline
name: _mcu_cutout
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _m2_nut
where: [mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: subtract
sound_plate_main:
- what: outline
name: _main
- what: outline
name: _mcu_cutout
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _sound_channel_main
operation: subtract
- what: circle
radius: 1.6
where: [mount_base1_r, mount_base2_r, mount_base3_r, mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: subtract
sound_plate_main_split:
- what: outline
name: _main
- what: rectangle
size: [9hx+dx, 9hy]
where:
ref: thumb_c1_rt
shift: [0, -3hy]
operation: intersect
- what: outline
name: _mcu_cutout
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _sound_channel_main
operation: subtract
- what: circle
radius: 1.6
where: [mount_base1_r, mount_base2_r, mount_base3_r, mount_raise1_r, mount_raise2_r, mount_raise3_r]
operation: subtract
sound_plate_raised:
- what: outline
name: _raised
- what: outline
name: _mcu_cutout
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _sound_channel_raised
operation: subtract
- what: circle
radius: 1.6
where: [mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: subtract
sound_plate_raised_asym:
- what: outline
name: _raised
- what: outline
name: _mcu_cutout
operation: subtract
- what: outline
name: _header_cutout
operation: subtract
- what: outline
name: _sound_channel_raised_asym
operation: subtract
- what: circle
radius: 1.6
where: [mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: subtract
composite_keys:
- what: outline
name: _main
- what: outline
name: _mcu_cutout
operation: subtract
- what: outline
name: _raised
where:
shift: [0, 0.01]
operation: stack
- what: outline
name: _hexkey
where: [top_c1_r3, top_c2_r3, top_c3_r3, top_c4_r3, top_c5_r3,
home_c1_r2, home_c2_r2, home_c3_r2, home_c4_r2, home_c5_r2,
bottom_c1_r1, bottom_c2_r1, bottom_c3_r1, bottom_c4_r1, bottom_c5_r1,
thumb_c1_rt, thumb_c2_rt, thumb_c3_rt, thumb_c4_rt, thumb_c5_rt]
asym: both
operation: stack
- what: outline
name: _header_cutout
operation: stack
- what: outline
name: _m2_nut
where: [mount_base1_r, mount_base2_r, mount_base3_r, mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: stack
# Room for a 35mm cirque track pad by sacrificing 2 thumb keys
#- what: circle
# radius: 35/2
# where:
# shift: [254, -127-hy-dy/2]
# operation: stack
composite_sound:
- what: outline
name: _main
operation: stack
- what: outline
name: _sound_channel_main
operation: subtract
- what: outline
name: sound_plate_raised_asym
where:
shift: [0, 0.01]
operation: stack
- what: circle
radius: 1.6
where: [mount_base1_r, mount_base2_r, mount_base3_r, mount_raise1_r, mount_raise2_r, mount_raise3_r]
asym: both
operation: stack
composites:
- what: outline
name: composite_keys
operation: stack
- what: outline
name: composite_sound
where:
shift: [0, -6hy-2dy-2my]
operation: stack
plates:
- what: outline
name: base
adjust.shift: [-254, 127]
where:
rotate: 90
shift: [4hy+my, -(hy/3+5hx+dx/2+mx+gap)]
- what: outline
name: plate_main
adjust.shift: [-254, 127]
where:
shift: [5hx+dx/2+mx + 17hy/3+2my+dy+2gap+mx/2, -(4hy+my)]
operation: stack
- what: outline
name: plate_raised
adjust.shift: [-254, 127]
where:
rotate: 180
shift: [5hx+dx/2+mx + 17hy/3+2my+dy+2gap+mx/2, -(8hy+2dy+2my+gap/.866)]
operation: stack
- what: outline
name: sound_plate_raised_asym
adjust.shift: [-254, 127]
where:
shift: [5hx+dx/2+mx + 17hy/3+2my+dy+2gap+mx/2 - (7hx/2+dx-rx+gap), -(8hy+2dy+2my+gap/.866 + 3hy+2ry+gap/.866)]
operation: stack
- what: outline
name: sound_plate_raised_asym
adjust.shift: [-254, 127]
where:
shift: [5hx+dx/2+mx + 17hy/3+2my+dy+2gap+mx/2 + (7hx/2+dx-rx+gap), -(8hy+2dy+2my+gap/.866 + 3hy+2ry+gap/.866)]
operation: stack
- what: outline
name: sound_plate_main
adjust.shift: [-254, 127]
where:
rotate: -90
shift: [2*(5hx+dx/2+mx + 17hy/3+2my+dy+2gap+mx/2) - (4hy+my), -(hy/3+5hx+dx/2+mx+gap)]
operation: stack
plates2x:
- what: outline
name: plates
- what: outline
name: plates
where:
shift: [0, -(8hy+2dy+2my+gap/.866 + 3hy+2ry+gap/.866 + 5hy/3+dy+my+gap/.866)]
operation: stack
plates4x:
- what: outline
name: plates2x
- what: outline
name: plates2x
where:
rotate: 180
shift: [4*(5hx+dx/2+mx + 17hy/3+2my+dy+2gap+mx/2) - 2hy/3+2my/3+gap/.866, -2*(8hy+2dy+2my+gap/.866 + 3hy+2ry+gap/.866 + 5hy/3+dy+my+gap/.866) - my-gap]
operation: stack
pcbs:
plate_main_split:
outlines:
main:
outline: plate_main_split
plate_raised:
outlines:
main:
outline: plate_raised
sound_plate_main_split:
outlines:
main:
outline: sound_plate_main_split
sound_plate_raised:
outlines:
main:
outline: sound_plate_raised
mantis_reversible_split:
outlines:
main:
outline: main_split
raised:
outline: _raised
layer: Dwgs.User
headers:
outline: _header_cutout
layer: Dwgs.User
sound_main:
outline: _sound_channel_main
layer: Eco1.User
sound_raised:
outline: _sound_channel_raised
layer: Eco2.User
footprints:
keys:
what: choc
where: [top_c1_r3, top_c2_r3, top_c3_r3,
home_c1_r2, home_c2_r2, home_c3_r2,
bottom_c1_r1, bottom_c2_r1, bottom_c3_r1,
thumb_c1_rt, thumb_c2_rt, thumb_c3_rt]
adjust:
rotate: 180
params:
from: "{{column_net}}"
to: "{{colrow}}"
keycaps: false
hotswap: false
reverse: true
diodes:
what: diode
where: [top_c1_r3, top_c2_r3, top_c3_r3,
home_c1_r2, home_c2_r2, home_c3_r2,
bottom_c1_r1, bottom_c2_r1, bottom_c3_r1,
thumb_c1_rt, thumb_c2_rt, thumb_c3_rt]
adjust:
shift: [0, -3.5]
params:
from: "{{colrow}}"
to: "{{row_net}}"