From b1d108f6bd689d9858e57710bc114dea7d191a72 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 2 Dec 2021 20:40:38 +0000 Subject: [PATCH] adafruit-powerboost: make PsuMountWindowsNegative have window ledges Signed-off-by: Ian Jackson --- adafruit-powerboost-common.scad | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/adafruit-powerboost-common.scad b/adafruit-powerboost-common.scad index b38753a..505e472 100644 --- a/adafruit-powerboost-common.scad +++ b/adafruit-powerboost-common.scad @@ -192,9 +192,13 @@ module PsuLedWindowsPlan(){ } } -module PsuMountWindowsNegative(){ +module PsuMountWindowsNegative(ceil){ linextr(-10, 0.1) PsuLedWindowsPlan(); + translate([0, 0, -psu_z - ceil]) + linextr(-1, psu_initial_layer_thick) + offset(delta=psu_window_ledge + psu_multicolour_gap) + PsuLedWindowsPlan(); } module PsuMountDemo() { ////toplevel @@ -249,7 +253,7 @@ module PsuMountTest() { ////toplevel } } translate([0, psu_y, psu_z]) - PsuMountWindowsNegative(); + PsuMountWindowsNegative(ceil); } } @@ -289,8 +293,6 @@ module PsuMountTestFullMain() { ////toplevel translate([0, psu_y, 0]) { linextr(-1, psu_initial_layer_thick) { - offset(delta=psu_window_ledge + psu_multicolour_gap) - PsuLedWindowsPlan(); offset(delta=psu_multicolour_gap) PsuLedLegendsPlan(); } -- 2.30.2