chiark / gitweb /
adafruit-powerboost: reorganise layerframes
[reprap-play.git] / adafruit-powerboost-common.scad
index b38753aa7d75aaab4434de12fd522d6ca3573882..86241e5a0a23fc8cd7a0f8ede23fb3de8115914a 100644 (file)
@@ -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
@@ -246,10 +250,17 @@ module PsuMountTest() { ////toplevel
        translate([0, psu_y, psu_z]) {
          PsuMountNegative();
        }
+
+       translate([0, psu_y, -ceil]) {
+         linextr(-1, psu_initial_layer_thick) {
+           offset(delta=psu_multicolour_gap)
+             PsuLedLegendsPlan();
+         }
+       }
       }
     }
     translate([0, psu_y, psu_z])
-      PsuMountWindowsNegative();
+      PsuMountWindowsNegative(ceil);
   }
 }
 
@@ -286,15 +297,6 @@ module PsuMountTestFullMain() { ////toplevel
   difference(){
     translate([0,0, ceil])
       PsuMountTest();
-
-    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();
-      }
-    }
   }
 }