-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yaml
357 lines (357 loc) · 8.67 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
units:
# Proxy Spacing Variables
kx: cx
ky: cy
# Padding Variables
px: kx + 2
py: ky + 2
# Double Padding Variables
dpx: kx + 8
dpy: ky + 8
# M2 Screw Inserts
screwRadius: 1.5
standoffThickness: 3
standoffDepth: 3
# Case
pcbThickness: 1.6
baseThickness: 3
wallThickness: 3
points:
zones:
matrix:
anchor:
shift: [100, -100]
rotate: -30
key:
padding: 1ky
columns:
pinky:
key:
splay: 15
rows:
top.mcu_pin: GP26
bottom.mcu_pin: GP12
top.mirror.mcu_pin: GP3
bottom.mirror.mcu_pin: GP7
ring:
key:
stagger: 8
spread: 23
splay: -10
rows:
top.mcu_pin: GP27
bottom.mcu_pin: GP13
top.mirror.mcu_pin: GP2
bottom.mirror.mcu_pin: GP6
middle:
key:
stagger: 5
spread: 21
splay: -5
rows:
top.mcu_pin: GP28
bottom.mcu_pin: GP14
top.mirror.mcu_pin: GP1
bottom.mirror.mcu_pin: GP5
index:
key:
stagger: -8
spread: 23
splay: -5
rows:
top.mcu_pin: GP29
bottom.mcu_pin: GP15
top.mirror.mcu_pin: GP0
bottom.mirror.mcu_pin: GP4
rows:
bottom:
top:
thumbs:
key:
padding: 1ky
spread: 1kx
anchor:
ref: matrix_index_bottom
shift: [14, 0]
columns:
inner:
key:
width: 1.5kx
splay: 3
rotate: 90
mcu_pin: GP11
mirror.mcu_pin: GP8
outer:
key:
width: 1.5kx
rotate: 90
mcu_pin: GP10
mirror.mcu_pin: GP9
rows:
cluster:
shift: [0, -2ky]
mirror: &mirror
ref: matrix_index_top
distance: 2.5kx
outlines:
raw:
- what: rectangle
where: true
size: [px, py]
keys:
- what: rectangle
where: true
size: [kx-0.5,ky-0.5]
- what: rectangle
where: thumbs_inner_cluster
size: [1.5kx,ky-0.5]
- what: rectangle
where: thumbs_outer_cluster
size: [1.5kx,ky-0.5]
- what: rectangle
where: mirror_thumbs_inner_cluster
size: [1.5kx,ky-0.5]
- what: rectangle
where: mirror_thumbs_outer_cluster
size: [1.5kx,ky-0.5]
board:
- what: polygon
operation: stack
fillet: 2
points:
- ref: matrix_pinky_top
shift: [-0.5px,0.5py]
- ref: matrix_ring_top
shift: [-0.5px,0.5py]
- ref: matrix_middle_top
shift: [-0.5px,0.5py]
- ref: matrix_middle_top
shift: [0.5px,0.5py]
- ref: matrix_index_top
shift: [0.5px,0.5py]
- ref: mirror_matrix_index_top
shift: [0.5px,0.5py]
- ref: mirror_matrix_middle_top
shift: [0.5px,0.5py]
- ref: mirror_matrix_middle_top
shift: [-0.5px,0.5py]
- ref: mirror_matrix_ring_top
shift: [-0.5px,0.5py]
- ref: mirror_matrix_pinky_top
shift: [-0.5px,0.5py]
- ref: mirror_matrix_pinky_bottom
shift: [-0.5px,-0.5py]
- ref: mirror_matrix_pinky_bottom
shift: [0.5px,-0.5py]
- ref: mirror_matrix_ring_bottom
shift: [-0.6px,-0.5py]
- ref: mirror_matrix_index_bottom
shift: [-0.5px,-0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [1.26px,0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [0.75px,0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [-0.75px,0.5py]
- ref: mirror_thumbs_inner_cluster
shift: [-0.75px,-0.5py]
- ref: mirror_thumbs_outer_cluster
shift: [-0.75px,-0.5py]
- ref: mirror_thumbs_outer_cluster
shift: [0.75px,-0.5py]
- ref:
aggregate.parts: [matrix_index_top, mirror_matrix_index_top]
shift: [0,-40]
- ref: thumbs_outer_cluster
shift: [0.75px,-0.5py]
- ref: thumbs_outer_cluster
shift: [-0.75px,-0.5py]
- ref: thumbs_inner_cluster
shift: [-0.75px,-0.5py]
- ref: thumbs_inner_cluster
shift: [-0.75px,0.5py]
- ref: thumbs_inner_cluster
shift: [1.26px,0.5py]
- ref: matrix_index_bottom
shift: [-0.5px,-0.5py]
- ref: matrix_ring_bottom
shift: [-0.6px,-0.5py]
- ref: matrix_pinky_bottom
shift: [0.5px,-0.5py]
- ref: matrix_pinky_bottom
shift: [-0.5px,-0.5py]
xlBoard:
- what: outline
name: board
expand: wallThickness
combo:
- name: board
- operation: subtract
name: keys
case:
- name: xlBoard
- operation: subtract
name: board
- operation: add
name: keys
mounting:
holeTopLeft:
radius: screwRadius
what: circle
where:
ref: [matrix_pinky_top]
shift: [0.5px + 3,0.5py + 3]
holeTopRight:
radius: screwRadius
what: circle
where:
ref: [mirror_matrix_pinky_top]
shift: [0.5px + 3,0.5py + 3]
holeBottomLeft:
radius: screwRadius
what: circle
where:
ref: [matrix_middle_bottom]
shift: [0,-0.5py - 3]
holeBottomRight:
radius: screwRadius
what: circle
where:
ref: [mirror_matrix_middle_bottom]
shift: [0,-0.5py - 3]
holeMiddleTopLeft:
radius: screwRadius
what: circle
where:
ref: [matrix_index_top]
shift: [-0.5px - 3, 11]
holeMiddleTopRight:
radius: screwRadius
what: circle
where:
ref: [mirror_matrix_index_top]
shift: [-0.5px - 3, 11]
holeMiddleBottomLeft:
radius: screwRadius
what: circle
where:
ref: [thumbs_outer_cluster]
shift: [-0.5kx - 3, 0.5kx]
holeMiddleBottomRight:
radius: screwRadius
what: circle
where:
ref: [mirror_thumbs_outer_cluster]
shift: [-0.5kx - 3, 0.5kx]
standoff:
- what: outline
name: mounting
expand: standoffThickness
pcbs:
chouchou:
outlines:
main:
outline:
board
footprints:
choc_hotswap:
what: choc
where: true
params:
keycaps: true
hotswap: true
from: "{{mcu_pin}}"
to: GND
choc:
what: choc
where: true
adjust:
rotate: 180
params:
keycaps: true
from: "{{mcu_pin}}"
to: GND
mcu:
what: rp2040zero
where:
ref.aggregate.parts: [matrix_index_top, mirror_matrix_index_top]
shift: [-10,-24]
params:
reverse: true
GND: GND
holeTopLeft:
what: mountinghole
where:
ref: [matrix_pinky_top]
shift: [0.5px + 3,0.5py + 3]
holeTopRight:
what: mountinghole
where:
ref: [mirror_matrix_pinky_top]
shift: [0.5px + 3,0.5py + 3]
holeBottomLeft:
what: mountinghole
where:
ref: [matrix_middle_bottom]
shift: [0,-0.5py - 3]
holeBottomRight:
what: mountinghole
where:
ref: [mirror_matrix_middle_bottom]
shift: [0,-0.5py - 3]
holeMiddleTopLeft:
what: mountinghole
where:
ref: [matrix_index_top]
shift: [-0.5px - 3, 11]
holeMiddleTopRight:
what: mountinghole
where:
ref: [mirror_matrix_index_top]
shift: [-0.5px - 3, 11]
holeMiddleBottomLeft:
what: mountinghole
where:
ref: [thumbs_outer_cluster]
shift: [-0.5kx - 3, 0.5kx]
holeMiddleBottomRight:
what: mountinghole
where:
ref: [mirror_thumbs_outer_cluster]
shift: [-0.5kx - 3, 0.5kx]
cases:
bottom:
- name: xlBoard
extrude: baseThickness
_outerWall:
- name: xlBoard
extrude: baseThickness + standoffDepth + pcbThickness
_innerWall:
- name: board
extrude: baseThickness + standoffDepth + pcbThickness
wall:
- what: case
name: _outerWall
operation: add
- what: case
name: _innerWall
operation: subtract
_holes:
- name: mounting
extrude: baseThickness + standoffDepth
_standoffs:
- name: standoff
extrude: baseThickness + standoffDepth
case:
- what: case
name: _standoffs
operation: add
- what: case
name: _holes
operation: subtract
- what: case
name: bottom
operation: add
- what: case
name: wall
operation: add