chiark / gitweb /
rpi-mount: Introduce pi_mount_z parameter
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Dec 2021 12:36:59 +0000 (12:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Dec 2021 12:36:59 +0000 (12:36 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
rpi-mount.scad

index 1b623d3fa3a3932c2aa5ed52b06ea9730aae93a6..b6638ead6ed58ce604a60e978fd6accb3aca2c13 100644 (file)
@@ -1,6 +1,9 @@
 // -*- C -*-
 
+include <utils.scad>
+
 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)