switchplate

This commit is contained in:
daniel
2023-07-18 19:22:42 +02:00
parent 8e26bade8b
commit cc39311fda
3 changed files with 2207 additions and 0 deletions

View File

@@ -16,6 +16,11 @@ units:
screw_hole: 4.1
screen_screw_diameter: 4
screen_screw_hole: 2.2
switchplate_switch_cutout: 14
switchplate_scrollwheel_cutout_x: 17
switchplate_scrollwheel_cutout_y: 14
switchplate_screw_diameter: 3.3
switchplate_screw_hole: 2.2
points:
rotate: 5
zones:
@@ -202,6 +207,62 @@ outlines:
shift: [0.5px, -0.5py]
- ref: matrix_outer_bottom
shift: [-0.5px, -0.5py]
_switchplate_base:
- what: polygon
operation: stack
fillet: 2
points:
- ref: matrix_outer2_home
shift: [-0.5px, -0.5py]
- ref: matrix_outer2_home
shift: [-0.5px, 0.5py]
- ref: matrix_outer_top
shift: [-0.5px, 0.5py]
- ref: matrix_pinky_num
shift: [-0.5px, 0.5py]
- ref: matrix_ring_num
shift: [-0.5px, 0.5py]
- ref: matrix_middle_num
shift: [-0.5px, 0.5py]
- ref: matrix_middle_num
shift: [0.5px, 0.5py]
- ref: matrix_inner_num
shift: [0.5px, 0.5py]
- ref: matrix_inner_bottom
shift: [0.5px, 0.5py+2]
- ref: matrix_inner_bottom
shift: [0.5px+mcu_padding+mcu_width+0.25, 0.5py+2]
- ref: matrix_inner_bottom
shift: [0.5px+mcu_padding+mcu_width+0.25, -0.5py]
- ref: thumbs_space_cluster
shift: [0.5px, -0.5py]
- ref: thumbs_space_cluster
shift: [-0.5px, -0.5py]
- ref: matrix_index_mod
shift: [-0.5px, -0.5py]
- ref: matrix_pinky_bottom
shift: [0.5px, -0.5py]
- ref: matrix_outer_bottom
shift: [-0.5px, -0.5py]
_switch_cutout:
- what: rectangle
where: [switch, switch_top, switch_bottom, switch_space]
size: switchplate_switch_cutout
bound: false
_scrollwheel_cutout:
- what: rectangle
where: [scrollwheel]
size: [switchplate_scrollwheel_cutout_x, switchplate_scrollwheel_cutout_y]
bound: false
switchplate:
- what: outline
name: _switchplate_base
- what: outline
name: _switch_cutout
operation: subtract
- what: outline
name: _scrollwheel_cutout
operation: subtract
pcbs:
keyboard:
outlines.main.outline: board
@@ -613,3 +674,11 @@ pcbs:
adjust:
rotate: 90
shift: [0, 4]
switchplate:
outlines.main.outline: switchplate
footprints:
- what: hole
where: screw
params:
size: switchplate_screw_diameter
drill: switchplate_screw_hole