chiark / gitweb /
adafruit-powerboost: reorganise layerframes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Dec 2021 20:47:39 +0000 (20:47 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Dec 2021 20:47:39 +0000 (20:47 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adafruit-powerboost-common.scad

index 7e2f556977f56a5fbc94640119393fe0845a74cc..c9489148855b1b79a80e98ea3da86eb14d6f8018 100644 (file)
@@ -192,20 +192,22 @@ module PsuLedWindowsPlan(){
   }
 }
 
-module PsuMountWindowsNegative(ceil){
-  linextr(-10, 0.1)
-    PsuLedWindowsPlan();
-
+module PsuFirstLayerNegative(ceil){
   translate([0, 0, -psu_z - ceil])
     linextr(-1, psu_initial_layer_thick)
     offset(delta=psu_window_ledge + psu_multicolour_gap)
+    children();
+}
+
+module PsuMountWindowsNegative(ceil){
+  linextr(-10, 0.1)
+    PsuLedWindowsPlan();
+  PsuFirstLayerNegative(ceil)
     PsuLedWindowsPlan();
 }
 
 module PsuLedLegendsNegative(ceil){
-  translate([0, 0, -psu_z - ceil])
-    linextr(-1, psu_initial_layer_thick)
-    offset(delta=psu_multicolour_gap)
+  PsuFirstLayerNegative(ceil)
     PsuLedLegendsPlan();
 }