From fd91300387a81d93b3d681aeea9c3d10396e9585 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 2 Dec 2021 20:46:50 +0000 Subject: [PATCH] adafruit-powerboost: reorganise layerframes Signed-off-by: Ian Jackson --- adafruit-powerboost-common.scad | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/adafruit-powerboost-common.scad b/adafruit-powerboost-common.scad index 7b5536e..7e2f556 100644 --- a/adafruit-powerboost-common.scad +++ b/adafruit-powerboost-common.scad @@ -195,12 +195,20 @@ module PsuLedWindowsPlan(){ 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 PsuLedLegendsNegative(ceil){ + translate([0, 0, -psu_z - ceil]) + linextr(-1, psu_initial_layer_thick) + offset(delta=psu_multicolour_gap) + PsuLedLegendsPlan(); +} + module PsuMountDemo() { ////toplevel ceil = psu_test_ceil; @@ -252,14 +260,9 @@ module PsuMountTest() { ////toplevel } } } - translate([0, psu_y, psu_z]) + translate([0, psu_y, psu_z]) { PsuMountWindowsNegative(ceil); - - translate([0, psu_y, -ceil]) { - linextr(-1, psu_initial_layer_thick) { - offset(delta=psu_multicolour_gap) - PsuLedLegendsPlan(); - } + PsuLedLegendsNegative(ceil); } } } -- 2.30.2