forked from soundmonster/samoklava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samoklava.yaml
275 lines (274 loc) · 5.89 KB
/
samoklava.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
units:
kx: cx
ky: cy
px: 2
py: 2
points:
key:
footprints:
choc_hotswap:
type: choc
nets:
from: =column_net
to: GND
params:
keycaps: true
reverse: true
hotswap: false
choc:
type: choc
anchor:
rotate: 180
nets:
from: =column_net
to: GND
params:
keycaps: true
reverse: true
zones:
matrix:
anchor:
shift: [50, 50]
key.padding: ky
columns:
pinky:
spread: 18
rotate: 17
origin: [0, -ky]
key:
bind: [0.1, 0.5 kx, 0.1, 0.1]
rows:
bottom:
column_net: P6
home:
column_net: P5
top:
column_net: P4
ring:
spread: 18
stagger: ky
rotate: -7
origin: [0, -ky]
key:
bind: [0.1, 0.5 kx, 0.1, 0.1]
rows:
bottom:
column_net: P3
home:
column_net: P2
top:
column_net: P0
home:
spread: 18
stagger: ky/3
rotate: -5
origin: [0, -ky]
key:
bind: [0.1, 0.1, 0.5 kx, 0.1]
shift: [0.2, 0]
rows:
bottom:
column_net: P1
home:
column_net: P18
top:
column_net: P15
index:
spread: 18
stagger: -ky/3
rotate: -5
origin: [0, -ky]
key:
bind: [0.1, 0.1, 0.5 kx, 0.5 kx]
rows:
bottom:
column_net: P14
home:
column_net: P16
top:
column_net: P10
inner:
spread: 19
stagger: -ky/6
origin: [0, -ky]
key:
bind: [0.1, 0.1, 0.1, 0.5 kx]
rows:
bottom:
column_net: P19
home:
column_net: P20
top:
column_net: P21
thumbfan:
anchor:
ref: matrix_inner_bottom
shift: [-1.10 kx, -1.0 ky]
columns:
near:
spread: kx
rotate: -15
origin: [-1.5 kx, -0.5 ky]
key:
column_net: P7
home:
spread: kx
rotate: -15
origin: [-0.5 kx, -0.5 ky]
key:
column_net: P8
far:
spread: kx
rotate: -15
origin: [-0.5 kx, -0.5 ky]
key:
column_net: P9
rows:
thumb:
row_net: P7
outlines:
exports:
raw:
- type: keys
side: left
size: [kx + px, ky + py]
corner: px
thumbfan_glue:
- type: polygon
points:
- ref: matrix_inner_home
- ref: thumbfan_far_thumb
shift: [0.5 kx - 0.5px, 0.5 ky + 0.5 py]
- ref: thumbfan_far_thumb
shift: [0.5 kx - 0.5px, -0.5 ky - 0.5 py]
- ref: thumbfan_near_thumb
shift: [-0.5 kx - px, -0.5 ky - py]
- ref: matrix_pinky_bottom
shift: [0.5 kx - 0.5 py, -0.5 ky - 0.5 py]
- ref: matrix_pinky_home
- ref: matrix_inner_bottom
shift: [0.5 kx + 0.5px, -0.5 ky + 0.5 py]
controller_area:
main:
type: rectangle
anchor:
ref:
- matrix_inner_top
shift: [0 kx, -4.05 ky]
size: [30, 76.5]
corner: px
base_outline:
main:
type: outline
name: raw
fillet: 2
thumbfan_glue:
type: outline
name: thumbfan_glue
operation: add
controller_area:
type: outline
name: controller_area
operation: add
pcb:
main:
type: outline
name: base_outline
fillet: 15
layout_tester:
main:
type: outline
name: pcb
keys:
type: keys
side: left
size: [kx - 0.01, ky - 0.01]
corner: px
bound: false
operation: subtract
pcbs:
board:
outlines:
edge:
outline: pcb
layer: Edge.Cuts
# TODO there's a way to add stuff to the silkscreen layer
footprints:
mcu_l:
type: promicro
params:
orientation: down
batteryPins: true
anchor:
ref:
- matrix_inner_top
shift: [20, -11]
rotate: 270
slider_l:
type: slider
anchor:
ref:
- matrix_inner_bottom
shift: [28, 0]
rotate: 270
params:
side: F
nets:
from: Braw
to: Bplus
slider_r:
type: slider
anchor:
ref:
- matrix_inner_bottom
shift: [28, 0]
rotate: 270
params:
side: B
nets:
from: Braw
to: Bplus
jst_bat:
type: bat
anchor:
ref:
- matrix_inner_bottom
shift: [20, -17.5]
params:
reverse: true
nets:
neg: Bminus
pos: Braw
reset:
type: button
anchor:
ref:
- matrix_inner_bottom
shift: [27.5, -14]
rotate: 270
params:
variant: 2_pin_th
nets:
from: GND
to: RST
info_l:
type: text
anchor:
ref:
- thumbfan_near_thumb
shift: [ -1.1 kx, 0]
rotate: 15
params:
text: "Toe Beans ᴖᴥᴖ"
justify: left
info_r:
type: text
anchor:
ref:
- thumbfan_near_thumb
shift: [ -1.1 kx, 0]
rotate: 15
params:
layer: B.SilkS
text: "Toe Beans ᴖᴥᴖ"
justify: right mirror