chiark / gitweb /
rpi-mount: copy from other repo
[reprap-play.git] / adafruit-powerboost-common.scad
index c9489148855b1b79a80e98ea3da86eb14d6f8018..b62643ac8ba297a2ad25efca633c980c1d2e860a 100644 (file)
@@ -192,10 +192,16 @@ module PsuLedWindowsPlan(){
   }
 }
 
+module PsuLedWindowsWindows(ceil){
+  translate([0,0, -psu_z - ceil])
+    linextr(0, psu_initial_layer_thick)
+    offset(delta=psu_window_ledge)
+    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();
 }
 
@@ -203,11 +209,13 @@ module PsuMountWindowsNegative(ceil){
   linextr(-10, 0.1)
     PsuLedWindowsPlan();
   PsuFirstLayerNegative(ceil)
+    offset(delta= psu_window_ledge + psu_multicolour_gap)
     PsuLedWindowsPlan();
 }
 
 module PsuLedLegendsNegative(ceil){
   PsuFirstLayerNegative(ceil)
+    offset(delta= psu_multicolour_gap)
     PsuLedLegendsPlan();
 }
 
@@ -317,9 +325,9 @@ module PsuMountTestFullText() { ////toplevel
     PsuLedLegendsPlan();
 }
 module PsuMountTestFullWindows() { ////toplevel
-  PsuMountTestFullOneLayer(1)
-    offset(delta=psu_window_ledge)
-    PsuLedWindowsPlan();
+  PsuMountTestFullLayerFrame(1);
+  translate([0, psu_y, psu_z + psu_test_ceil])
+    PsuLedWindowsWindows(psu_test_ceil);
 }
 
 module PsuMountTestFullDemo() { ////toplevel