-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
307 lines (304 loc) · 6.88 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
# cornish_flippsie by twish
# TODO: Change text
# v1 still requires some modifications in kicad to work, moving to another switch can be good for example,
# also the display connector on the right side becomes reversed for most displays with soldered on pins.
units:
#proxy spacing variables
kx: u
ky: u
#padding
px: kx + 4
py: ky + 4
#board
bx: kx + 1
by: ky + 1
# preview defaults
$default_width: u
$default_height: u
points:
zones:
main:
anchor:
shift: [180, -70]
key:
padding: 1ky
spread: 1kx
columns:
pinky:
key:
column_net: P9
ring:
key.splay: -5
key.origin: [-12, -19]
key.stagger: 12
key.column_net: P10
middle:
key.stagger: 5
key.column_net: P16
index:
key.stagger: -6
key.column_net: P14
index2:
key.column_net: P15
rows:
bottom:
row_net: P19
home:
row_net: P20
top:
row_net: P21
thumb:
key:
padding: 1ky
spread: 1ky
anchor:
ref: main_index2_bottom
shift: [-0.7kx-1, -1py+1]
columns:
mod:
key:
width: 1.5kx
column_net: P14
layer:
key:
splay: -15
shift: [8, -1]
column_net: P15
space:
key:
splay: -15
shift: [11.5, 4]
width: 1.5kx
rotate: 90
column_net: P18
rows:
cluster:
row_net: P4
macro:
key:
padding: 1ky
spread: 1ky
anchor:
ref: main_index2_bottom
shift: [1kx+5, 5]
columns:
media:
key.column_net: P18
rows:
one:
row_net: P19
two:
row_net: P20
rotate: -20
outlines:
raw:
- what: rectangle
where: true
size: [px+2, py+2]
keys:
- what: rectangle
where: true
size: [kx-0.5, ky-0.5]
plate_holes:
- what: rectangle
where: true
size: [14.1, 14.1]
board:
- what: polygon
operation: stack
points:
- ref: main_pinky_top
shift: [-0.5bx, 0.5by]
- ref: main_pinky_top
shift: [0.5bx+4, 0.5by]
- ref: main_ring_top
shift: [-0.5bx, 0.5by]
- ref: main_ring_top
shift: [0.5bx-1, 0.5by]
- ref: main_middle_top
shift: [-0.5bx, 0.5by]
- ref: main_middle_top
shift: [0.5bx, 0.5by]
- ref: main_index_top
shift: [-0.5bx+1, 0.5by]
- ref: main_index2_top
shift: [0.5bx+10, 0.5by]
# Controller?
- ref: macro_media_two
shift: [0.5bx, 0.5by]
- ref: macro_media_two
shift: [1.5bx+4, 0.5by]
- ref: thumb_space_cluster
shift: [0.75bx+12, -0.5by]
- ref: thumb_space_cluster
shift: [-0.75bx, -0.5by]
- ref: thumb_space_cluster
shift: [-0.75bx+0.5, 0.5by-2]
- ref: thumb_layer_cluster
shift: [-0.5bx+1, -0.5by]
- ref: thumb_mod_cluster
shift: [-0.75bx+1, -0.5by]
- ref: main_middle_bottom
shift: [0.5bx-1, -0.5by]
- ref: main_middle_bottom
shift: [-0.5bx+1, -0.5by]
- ref: main_ring_bottom
shift: [0.5bx, -0.5by]
- ref: main_ring_bottom
shift: [-0.5bx+0.5, -0.5by]
- ref: main_pinky_bottom
shift: [0.5bx, -0.5by]
- ref: main_pinky_bottom
shift: [-0.5bx, -0.5by]
fillet: 2
combo:
- name: board
- operation: subtract
name: keys
plate:
- name: board
- operation: subtract
name: plate_holes
pcbs:
cornish_plate:
outlines:
main:
outline: plate
footprints:
# Mounting holes
topLeft:
what: mountinghole
where:
ref: main_pinky_top
shift: [0.5px, 3]
bottomLeft:
what: mountinghole
where:
ref: main_pinky_bottom
shift: [0.5px-3.5, 0.5py-2.5]
topMiddle:
what: mountinghole
where:
ref: main_middle_home
shift: [0.5px-2, 0.5py-8]
bottomMiddle:
what: mountinghole
where:
ref: thumb_mod_cluster
shift: [-0.5px, 0.5py-2]
topRight:
what: mountinghole
where:
ref: macro_media_two
shift: [0, 0.5py+4]
bottomeRight:
what: mountinghole
where:
ref: macro_media_one
shift: [3, -0.5py-5]
cornish:
outlines:
main:
outline: board
footprints:
mx_hotswap:
what: ks33
where: true
params:
keycaps: true
reverse: true
hotswap: true
from: "{{column_net}}"
to: "{{colrow}}"
diode:
what: diode_pretty
where: true
params:
from: "{{colrow}}"
to: "{{row_net}}"
adjust:
shift: [0, 5]
via_col:
what: via
where: true
params:
net: "{{column_net}}"
adjust:
shift: [-5, 0]
via_row:
what: via
where: true
params:
net: "{{row_net}}"
adjust:
shift: [5, 0]
promicro:
what: promicro_pretty
where:
ref: macro_media_two
shift: [1px, -0py-8]
rotate: -90
oled:
what: oled
params:
side: "F"
SDA: P2
SCL: P3
where:
ref: macro_media_two
shift: [1px-6, -27.5]
rotate: -270
#Change in kicad to angled switch...
reset:
what: sw_tactile_angle
params:
from: GND
to: RST
where:
ref: thumb_space_cluster
shift: [1px+1, -0.5py+5]
rotate: 180
trrs:
what: trrs
where:
ref: macro_media_two
shift: [-7, 1py]
rotate: 0
params:
reverse: true
symmetric: true
A: GND
B: GND
C: P1
D: VCC
# Mounting holes
topLeft:
what: mountinghole
where:
ref: main_pinky_top
shift: [0.5px, 3]
bottomLeft:
what: mountinghole
where:
ref: main_pinky_bottom
shift: [0.5px-3.5, 0.5py-2.5]
topMiddle:
what: mountinghole
where:
ref: main_middle_home
shift: [0.5px-2, 0.5py-8]
bottomMiddle:
what: mountinghole
where:
ref: thumb_mod_cluster
shift: [-0.5px, 0.5py-2]
topRight:
what: mountinghole
where:
ref: macro_media_two
shift: [0, 0.5py+4]
bottomeRight:
what: mountinghole
where:
ref: macro_media_one
shift: [3, -0.5py-5]