Move screw holes into thing

This commit is contained in:
XANTRONIX 2023-11-11 20:55:34 -05:00
parent c02dedceed
commit 779137f545

View file

@ -3,6 +3,16 @@ $fn = 72;
pcb_width = 257.175; pcb_width = 257.175;
pcb_height = 95.250; pcb_height = 95.250;
module keyboard_base_plate(pcb_width, pcb_height) {
pcb_clearance_edge = 1.0;
pcb_clearance_bottom = 2.0;
pcb_screw_hole_diameter = 1.5;
thickness = 2.0;
wall_height = 14.0;
corner_radius = thickness / 2.0;
screw_holes = [ screw_holes = [
[ 4.8150, 85.6188], [ 4.8150, 85.6188],
[ 47.4822, 85.6188], [ 47.4822, 85.6188],
@ -25,16 +35,6 @@ screw_holes = [
[200.3150, 9.1188] [200.3150, 9.1188]
]; ];
module keyboard_base_plate(pcb_width, pcb_height, screw_holes=[]) {
pcb_clearance_edge = 1.0;
pcb_clearance_bottom = 2.0;
pcb_screw_hole_diameter = 1.5;
thickness = 2.0;
wall_height = 14.0;
corner_radius = thickness / 2.0;
module round_corner(translation, rotation) { module round_corner(translation, rotation) {
translate(translation) translate(translation)
rotate(rotation) rotate(rotation)
@ -181,4 +181,4 @@ module keyboard_base_plate(pcb_width, pcb_height, screw_holes=[]) {
} }
} }
keyboard_base_plate(pcb_width, pcb_height, screw_holes); keyboard_base_plate(pcb_width, pcb_height);