rae-dux/samoklava.yaml

325 lines
6.9 KiB
YAML
Raw Normal View History

2021-09-03 16:37:21 +00:00
units:
kx: cx
ky: cy
px: 2
py: 2
points:
key:
footprints:
choc_hotswap:
type: choc
params:
hotswap: true
reverse: true
keycaps: true
nets:
# from: P1
# to: P2
from: =colrow
to: =column_net
diode:
type: diode
nets:
# from: P3
# to: P4
from: =colrow
to: =row_net
anchor:
shift: [0, -5]
zones:
matrix:
# anchor:
# rotate: 5
key.padding: ky
columns:
pinky:
key:
bind: [0.1, 0.5 kx, 0.1, 0.1]
column_net: P20
spread: 18
rotate: 15
origin: [0, -17]
2021-09-03 16:37:21 +00:00
ring:
key:
bind: [0.1, 0.5 kx, 0.1, 0.1]
column_net: P19
spread: 18
stagger: 17
rotate: -10
origin: [0, -17]
2021-09-03 16:37:21 +00:00
middle:
spread: 18
stagger: 17/3
rotate: -5
origin: [0, -17]
2021-09-03 16:37:21 +00:00
key:
bind: [0.1, 0.1, 0.5 kx, 0.1]
shift: [0.2, 0]
column_net: P18
2021-09-03 16:37:21 +00:00
index:
key:
bind: [0.1, 0.1, 0.5 kx, 0.5 kx]
column_net: P15
spread: 18
stagger: -17/3
rotate: -5
origin: [0, -17]
2021-09-03 16:37:21 +00:00
inner:
key:
column_net: P14
spread: 19
stagger: -17/6
origin: [0, -17]
2021-09-03 16:37:21 +00:00
rows:
bottom:
row_net: P6
home:
2021-09-03 16:37:21 +00:00
row_net: P5
top:
row_net: P4
2021-09-03 16:37:21 +00:00
thumbfan:
anchor:
ref: matrix_inner_bottom
shift: [-1.25 kx, -1.5 ky]
2021-09-03 16:37:21 +00:00
columns:
near:
spread: kx
rotate: -15
origin: [-1.5 kx, -0.5 ky]
2021-09-03 16:37:21 +00:00
key:
column_net: P18
2021-09-03 16:37:21 +00:00
home:
spread: kx
rotate: -15
origin: [-0.5 kx, -0.5 ky]
key:
column_net: P15
2021-09-03 16:37:21 +00:00
far:
spread: kx
rotate: -15
origin: [-0.5 kx, -0.5 ky]
key:
column_net: P14
2021-09-03 16:37:21 +00:00
rows:
thumb:
row_net: P7
2021-09-03 16:37:21 +00:00
outlines:
exports:
raw:
- type: keys
side: left
size: [kx + px, ky + py]
corner: px
thumbfan_glue:
- type: polygon
points:
- ref: matrix_inner_home
2021-09-03 16:37:21 +00:00
- 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 + 0.5 px, -0.5 ky - 0.5 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]
2021-09-03 16:37:21 +00:00
controller_area:
main:
type: rectangle
anchor:
ref:
- matrix_inner_top
shift: [0 kx, -4.05 ky]
size: [32, 76.5]
corner: px
base_outline:
2021-09-03 16:37:21 +00:00
main:
type: outline
name: raw
fillet: 2
2021-09-03 16:37:21 +00:00
thumbfan_glue:
type: outline
name: thumbfan_glue
operation: add
fillet: 2
controller_area:
2021-09-03 16:37:21 +00:00
type: outline
name: controller_area
operation: add
fillet: 2
2021-09-03 16:37:21 +00:00
pcb:
- type: outline
2021-09-03 16:37:21 +00:00
name: base_outline
fillet: 3
2021-09-03 16:37:21 +00:00
pcbs:
2021-09-16 19:29:22 +00:00
board:
2021-09-03 16:37:21 +00:00
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: up
batteryPins: true
2021-09-03 16:37:21 +00:00
anchor:
ref:
- matrix_inner_top
shift: [20, -11]
rotate: 270
mcu_r:
type: promicro
params:
orientation: down
batteryPins: true
2021-09-03 16:37:21 +00:00
anchor:
ref:
- matrix_inner_top
shift: [22.5, -12.25]
rotate: 270
pad_plus:
type: pad
anchor:
ref:
- matrix_inner_top
shift: [23, -18]
rotate: 0
params:
front: true
back: true
width: 1.5
height: 1.5
text: "B+"
nets:
net: Braw
pad_minus:
type: pad
anchor:
ref:
- matrix_inner_top
shift: [23, -15]
rotate: 0
params:
front: true
back: true
width: 1.5
height: 1.5
text: "B-"
nets:
net: Bminus
trrs_l:
2021-09-03 16:37:21 +00:00
type: trrs
anchor:
ref:
- matrix_inner_bottom
shift: [32, -15]
rotate: 270
params:
reverse: false
symmetric: false
# The naming of the nets on this footprint is different from the Corne schematics.
nets:
A: ""
B: VCC
C: GND
D: P0
trrs_r:
type: trrs
anchor:
ref:
- matrix_inner_bottom
shift: [32, -13]
2021-09-03 16:37:21 +00:00
rotate: 270
params:
reverse: true
symmetric: false
# The naming of the nets on this footprint is different from the Corne schematics.
2021-09-03 16:37:21 +00:00
nets:
A: ""
B: VCC
2021-09-03 16:37:21 +00:00
C: GND
D: P0
jumper_l:
type: jumper
anchor:
ref:
- matrix_inner_bottom
shift: [23.5, 0]
rotate: 270
params:
side: B
nets:
from: Braw
to: Bplus
jumper_r:
type: jumper
anchor:
ref:
- matrix_inner_bottom
shift: [23.5, 0]
rotate: 270
params:
side: F
nets:
from: Braw
to: Bplus
slider_l:
type: slider
anchor:
ref:
- matrix_inner_bottom
shift: [30, 0]
rotate: 270
params:
side: F
nets:
from: Braw
to: Bplus
slider_r:
type: slider
anchor:
ref:
- matrix_inner_bottom
shift: [30, 0]
rotate: 270
params:
side: B
nets:
from: Braw
to: Bplus
reset:
type: button
anchor:
ref:
- matrix_inner_bottom
shift: [17, 0]
rotate: 270
params:
variant: 2_pin_th
nets:
from: GND
to: RST
info_l:
type: text
anchor:
ref:
- matrix_pinky_bottom
shift: [0.75 kx, 0]
params:
text: "rae-dux v1.0\\nby ajrae"
justify: left
info_r:
type: text
anchor:
ref:
- matrix_pinky_bottom
shift: [0.75 kx, 0]
params:
layer: B.SilkS
text: "rae-dux v1.0\\nby ajrae"
justify: right mirror