This commit is contained in:
foosinn 2023-02-06 08:30:25 +01:00
parent 772f38b454
commit 530776140a
9 changed files with 7878 additions and 121 deletions

View file

@ -6,26 +6,6 @@ units:
step: .5
points:
key:
footprints:
mx_hotswap:
type: choc
params:
hotswap: true
reverse: false
keycaps: true
nets:
from: =colrow
to: =column_net
diode:
type: diode
nets:
from: =colrow
to: =row_net
anchor:
shift: [0, -5]
rotate: 180
zones:
matrix:
columns:
@ -34,37 +14,39 @@ points:
column_net: P21
mirror: { column_net: P2 }
ring:
spread: kx + step
stagger: 4
key:
stagger: 4
spread: kx + step
column_net: P20
mirror: { column_net: P3 }
middle:
spread: kx + step
stagger: 5
key:
stagger: 5
spread: kx + step
column_net: P19
mirror: { column_net: P4 }
index:
spread: kx + step
stagger: -5
key:
stagger: -5
spread: kx + step
column_net: P18
mirror: { column_net: P5 }
inner:
spread: kx + step
stagger: -6
key:
stagger: -6
spread: kx + step
column_net: P15
mirror: { column_net: P6 }
thumb:
spread: kx + step
stagger: 10
row_overrides:
rows:
bottom:
skip: false
key:
skip: true
spread: kx + step
stagger: 10
column_net: P14
mirror: { column_net: P7}
mirror: { column_net: P7 }
rows:
bottom:
row_net: P16
@ -84,99 +66,123 @@ points:
distance: 42
outlines:
exports:
# outer border
outer:
- type: polygon
points:
- ref: matrix_inner_num
shift: [10, 10]
- ref: matrix_middle_num
shift: [10, 10]
- ref: matrix_middle_num
shift: [-10, 10]
- ref: matrix_pinky_num
shift: [-10, 10]
- ref: matrix_pinky_bottom
shift: [-10, -10]
- ref: matrix_pinky_bottom
shift: [10, -10]
- ref: matrix_inner_bottom
shift: [-10, -10]
- ref: matrix_inner_bottom
shift: [10, -10]
- ref: mirror_matrix_inner_bottom
shift: [10, -10]
- ref: mirror_matrix_inner_bottom
shift: [-10, -10]
- ref: mirror_matrix_pinky_bottom
shift: [10, -10]
- ref: mirror_matrix_pinky_bottom
shift: [-10, -10]
- ref: mirror_matrix_pinky_num
shift: [-10, 10]
- ref: mirror_matrix_middle_num
shift: [-10, 10]
- ref: mirror_matrix_middle_num
shift: [10, 10]
- ref: mirror_matrix_inner_num
shift: [10, 10]
#- type: keys
# side: both
# size: 20
# corner: 1
#- type: polygon
# points:
# - ref: matrix_inner_num
# shift: [0, -5]
# - ref: matrix_thumb_bottom
# shift: [-10, -10]
# - ref: mirror_matrix_thumb_bottom
# shift: [-10, -10]
# - ref: mirror_matrix_inner_num
# shift: [0, -5]
chip:
# cutout for the chip itself
- type: rectangle
size: [18, 33]
anchor:
ref: [matrix_inner_top, mirror_matrix_inner_top]
shift: [-9, -24.5]
# cutout for the cable (looks)
- type: rectangle
size: [8, 50]
anchor:
ref: [matrix_inner_top, mirror_matrix_inner_top]
shift: [-4, -24.5]
# 14mm holes for cherry switches
keyholes:
- type: keys
side: both
size: 13.5
bound: false
# switchplate
switchplate:
- outer
- -keyholes
- -chip
# outer border
outer:
- what: polygon
points:
- ref: matrix_inner_num
shift: [10, 10]
- ref: matrix_middle_num
shift: [10, 10]
- ref: matrix_middle_num
shift: [-10, 10]
- ref: matrix_pinky_num
shift: [-10, 10]
- ref: matrix_pinky_bottom
shift: [-10, -10]
- ref: matrix_pinky_bottom
shift: [10, -10]
- ref: matrix_inner_bottom
shift: [-10, -10]
- ref: matrix_inner_bottom
shift: [10, -10]
- ref: mirror_matrix_inner_bottom
shift: [10, -10]
- ref: mirror_matrix_inner_bottom
shift: [-10, -10]
- ref: mirror_matrix_pinky_bottom
shift: [10, -10]
- ref: mirror_matrix_pinky_bottom
shift: [-10, -10]
- ref: mirror_matrix_pinky_num
shift: [-10, 10]
- ref: mirror_matrix_middle_num
shift: [-10, 10]
- ref: mirror_matrix_middle_num
shift: [10, 10]
- ref: mirror_matrix_inner_num
shift: [10, 10]
# chip
chip:
- what: rectangle
size: [18, 50]
where:
ref:
aggregate.parts:
- matrix_inner_bottom
- mirror_matrix_inner_bottom
shift: [0, 0]
# 14mm holes for cherry switches
keyholes:
- what: rectangle
where: true
asym: source
size: 13.5
# keycaps
keycaps:
- what: rectangle
where: true
asym: source
size: [17.95, 17.5]
# switchplate
switchplate:
- outer
- -keyholes
- -chip
pcbs:
main:
outlines:
outer:
outline: outer
footprints:
keys:
what: choc
where: true
params:
from: "{{colrow}}"
to: "{{column_net}}"
keycaps: true
hotswap: true
#led:
# what: rgb
# where: true
# adjust:
# shift: [0, -5]
# params:
# din: "{{label}}"
# dout: P02
diode:
what: diode
where: true
params:
from: "{{colrow}}"
to: "{{row_net}}"
adjust:
shift: [-8, -0]
rotate: 90
reset:
type: button
nets:
what: button
params:
from: RST
to: GND
anchor:
ref: [matrix_inner_bottom, mirror_matrix_inner_bottom]
where:
ref:
aggregate.parts:
- matrix_inner_bottom
- mirror_matrix_inner_bottom
rotate: 90
mcu:
type: promicro
anchor:
what: promicro
where:
rotate: 270
ref: [matrix_inner_top, mirror_matrix_inner_top]
ref:
aggregate.parts:
- matrix_inner_bottom
- mirror_matrix_inner_bottom
shift: [0, -4]