-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
336 lines (336 loc) · 7.49 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
units:
# Key and keycap measures
kx: cx # spacing between key centers (X-axis)
ky: cy # spacing between key centers (Y-axis) kp: 19 # padding (default: 19)
ks: 19 # spread (deafult: 19)
kp: cx
kcow: 13.8 # key cutout hole width (cherry: 14, choc: 13.8)
kcoh: 13.8 # key cutout hole height (cherry: 14, choc: 13.8)
keycw: 17.5 # keycap width (cherry: 18, choc: 17.5)
keych: 16.5 # keycap height (cherry: 18, choc: 16.5)
$default_autobind: 5
points:
zones:
matrix:
key:
padding: cy
spread: ks
tags:
- key
anchor:
shift: [160, -175]
rotate: 0
rotate: 6.5
rows:
R2:
row_net: R2
R1:
row_net: R1
R0:
row_net: R0
columns:
C0:
key:
column_net: C0
stagger: 6
splay: 0
C1:
key:
column_net: C1
splay: -4
stagger: 7
C2:
key:
column_net: C2
splay: -2
stagger: 5
C3:
key:
column_net: C3
stagger: -3
splay: -2
C4:
key:
column_net: C4
stagger: -5
splay: -1
thumbs:
key:
padding: cy
spread: ks
tags:
- key
anchor:
ref: matrix_C2_R2
shift: [0.5cx, -1.25cy]
rows:
R3:
row_net: R3
columns:
C1:
key:
bind: [5,5,0,0]
column_net: C1
stagger: -1
#shift: [-0, 0cy]
splay: -2
C2:
key:
bind: [5,5,0,0]
column_net: C2
splay: -8
stagger: -2
shift: [0.2cy, -0.15cy]
C3:
key:
bind: [0,0,0,0]
column_net: C3
splay: -5
stagger: -3
shift: [0.35cy, -0cy]
rotate: 270
mountscrew_c0_top:
anchor:
ref.aggregate.parts:
[matrix_C0_R0, matrix_C1_R0, matrix_C0_R1, matrix_C1_R1]
shift: [0, 3]
columns.screw.key.tags: [screw]
mountscrew_c1_bottom:
anchor:
ref.aggregate.parts:
[matrix_C0_R1, matrix_C1_R1, matrix_C0_R2, matrix_C1_R2]
columns.screw.key.tags: [screw]
mountscrew_c3_top:
anchor:
ref.aggregate.parts: [matrix_C2_R0, matrix_C3_R0]
shift: [0, -3]
columns.screw.key.tags: [screw]
mountscrew_c2_bottom:
anchor:
ref.aggregate.parts: [matrix_C2_R2, matrix_C3_R2]
shift: [0.1, -6]
columns.screw.key.tags: [screw]
mountscrew_c4_bottom:
anchor:
ref.aggregate.parts: [thumbs_C3_R3, thumbs_C2_R3, matrix_C4_R2]
shift: [-2, -2]
columns.screw.key.tags: [screw]
mountscrew_c4_top:
anchor:
ref: matrix_C4_R0
shift: [0.5cx, -0.5cy]
columns.screw.key.tags: [screw]
outlines:
debug_points:
- what: rectangle
where: true
size: [6, 0.01]
- what: rectangle
where: true
size: [0.01, 4]
- what: circle
where: true
radius: 0.4
adjust:
shift: [3, 0]
- what: circle
where: true
radius: 0.4
adjust:
shift: [0, 2]
- what: rectangle
where: [key]
size: [cx, cy]
operation: stack
- what: rectangle
where: [key]
size: [kcow, kcoh]
operation: stack
- what: circle
where: [screw]
radius: 2
operation: stack
_switch_cutouts:
- what: rectangle
where: [key]
size: [kcow, kcoh]
_base:
- what: rectangle
where: [key]
bound: true
size: [cx, cy]
_pcb_keyboard:
- what: outline
name: _base
- what: polygon
operation: add
points:
- ref: matrix_C4_R0
shift: [1.65cx, 0.25cy]
- ref: thumbs_C3_R3
shift: [-0.5cx, 0.5cy]
- ref: thumbs_C3_R3
shift: [0.5cx, 0]
- ref: matrix_C4_R0
shift: [0, 0.25cy]
- what: outline
name: _pcb_keyboard
expand: 1
fillet: 0
pcb:
- what: outline
name: _pcb_keyboard
preview:
- what: outline
name: debug_points
- what: rectangle
where: [key]
size: [keycw, keych]
operation: stack
- what: outline
name: _switch_cutouts
operation: stack
- what: outline
name: pcb
operation: stack
pcbs:
bottom:
outlines:
main.outline: pcb
footprints:
screws:
what: custom/mounting_hole
params:
where: [screw]
goose:
outlines:
main.outline: pcb
footprints:
switches:
what: choc
where:
- /matrix/
- /thumbs/
params:
keycaps: true
reverse: true
hotswap: false
from: "{{column_net}}"
to: "{{colrow}}"
diodes_back:
what: custom/combo_diode
where:
- /matrix/
- /thumbs/
params:
side: "B"
from: "{{colrow}}"
to: "{{row_net}}"
include_smd: true
include_tht: false
reversible: false
adjust:
rotate: 180
shift: [0, -4.5]
# rotate: 65
# shift: [-5.75, 4.5]
diodes_front:
what: custom/combo_diode
where:
- /matrix/
- /thumbs/
params:
side: "F"
from: "{{colrow}}"
to: "{{row_net}}"
include_smd: true
include_tht: false
reversible: false
adjust:
rotate: 180
shift: [0, -4.5]
# shift: [-5.75, 4.5]
# rotate: 115
# shift: [5.75, 4.5]
xiao_ble:
what: custom/xiao_ble_smd_reversible
params:
# reversible pins
D0: "C0"
D1: "C1"
D2: "C2"
D3: "C3"
D4: "C4"
D5: "R0"
D6: "R1"
D7: "ENCA"
D8: "ENCB"
D9: "R3"
D10: "R2"
where:
ref: matrix_C4_R0
shift: [22, -4]
enc_wheel:
what: rotary
params:
from: ""
to: ""
A: "ENCA"
B: "ENCB"
C: "GND"
where:
ref: matrix_C4_R2
shift: [23, -1]
rotate: 270
battery_pads:
what: custom/pads
params:
reverse: true
net_1: "BAT+"
net_2: "GND"
label_1: "+"
label_2: ""
label_at_bottom: true
space: 1.25
where:
ref: matrix_C4_R1
shift: [15, 1]
rotate: 0
screws:
what: custom/mounting_hole
params:
where: [screw]
txt_version:
what: custom/text
params:
side: "B"
text: "gooses v0.9b"
where:
ref: thumbs_C4_R3
shift: [8, 0]
rotate: 90
# txt_order_number:
# what: custom/text
# params:
# side: "F"
# text: "JLCJLCJLCJLC"
# where:
# ref: matrix_C1_R2
# shift: [0, -6]
txt_this_side_up:
what: custom/text
params:
text: "↑gås upp↑"
reverse: false
where:
ref: matrix_C4_R0
shift: [22, -15.5]
txt_this_side_down:
what: custom/text
params:
side: "B"
text: "↓gås ner↓"
reverse: false
where:
ref: matrix_C4_R0
shift: [22, -15.5]