From 7a034f0ae3d2d979d4eded0fec060452d827d422 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Nov 2021 15:51:10 +0000 Subject: [PATCH] adafruit-powerboost: wip common, test Signed-off-by: Ian Jackson --- adafruit-powerboost-common.scad | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/adafruit-powerboost-common.scad b/adafruit-powerboost-common.scad index a98f427..4d7cd7f 100644 --- a/adafruit-powerboost-common.scad +++ b/adafruit-powerboost-common.scad @@ -160,3 +160,21 @@ module PsuMountDemo(ceil = 2.5) { ////toplevel PsuLedWindowsPlan(); } } + +module PsuMountTest(ceil = 2.5) { ////toplevel + difference(){ + union(){ + translate([0, psu_y, psu_z]) + PsuMountPositive(); + linextr_x_yz(-(psu_sz[0]/2 + 5), + +(psu_sz[0]/2 + 5)){ + difference(){ + rectfromto([-ceil, -ceil], [psu_sz[1] + 5, psu_z + 10]); + rectfromto([0,0], 400*[1,1]); + } + } + } + translate([0, psu_y, psu_z]) + PsuMountNegative(); + } +} -- 2.30.2