add a switchplate

This commit is contained in:
Stefan Schwarz 2022-03-23 15:03:35 +01:00 committed by foosinn
parent 5bc5d5cb49
commit 262d8d0e58

View file

@ -58,7 +58,8 @@ points:
outlines:
exports:
plate:
# outer border
outer:
- type: keys
side: both
size: 25
@ -68,22 +69,41 @@ outlines:
- ref: matrix_inner_num
shift: [0, -5]
- ref: matrix_thumb_bottom
shift: [-15, 0]
shift: [-10, -10]
- ref: mirror_matrix_thumb_bottom
shift: [-15, 0]
shift: [-10, -10]
- ref: mirror_matrix_inner_num
shift: [0, -5]
cases:
case:
- type: outline
name: plate
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: 14
bound: false
# switchplate
switchplate:
- outer
- -keyholes
- -chip
pcbs:
main:
outlines:
plate:
outline: plate
outer:
outline: outer
footprints:
mcu:
type: promicro