From a4bad1c9342e16fa770cbcba47bcdfa67b91c7ad Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 5 Dec 2021 12:36:59 +0000 Subject: [PATCH] rpi-mount: Introduce pi_mount_z parameter Signed-off-by: Ian Jackson --- rpi-mount.scad | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpi-mount.scad b/rpi-mount.scad index 1b623d3..b6638ea 100644 --- a/rpi-mount.scad +++ b/rpi-mount.scad @@ -1,6 +1,9 @@ // -*- C -*- +include + pi_board_gap = 0.5; +pi_board_support_z = 2; pi_sz = [ 66.0, 30.5 ] + pi_board_gap * [1,1]; @@ -10,12 +13,12 @@ pi_solder_side_gap = 1.5 * 2; pi_screw_hole_dia = 2.3; pi_screw_hole_wall = 2.3; -module PiMount(){ ////toplevel +module PiMount(pi_mount_z=5){ sxy = pi_nom_sz/2 - [1,1] * pi_nom_centres_in; for (mx=[0,1]) mirror([mx,0,0]) for (my=[0,1]) mirror([0,my,0]) { difference(){ union(){ - linextr(-0.1, pi_mount_z + board_support_z, convexity=1) + linextr(-0.1, pi_mount_z + pi_board_support_z, convexity=1) rectfromto( pi_nom_sz/2 - 2 * [1,1] * pi_nom_centres_in, pi_sz/2 + [1,1] * board_support_wall); linextr(-0.1, pi_mount_z - pi_solder_side_gap, convexity=1) -- 2.30.2