X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=adafruit-powerboost-common.scad;h=b62643ac8ba297a2ad25efca633c980c1d2e860a;hb=ba7c5b240dcdab5fa3f4e3f7823bb828551471f0;hp=7e2f556977f56a5fbc94640119393fe0845a74cc;hpb=fd91300387a81d93b3d681aeea9c3d10396e9585;p=reprap-play.git diff --git a/adafruit-powerboost-common.scad b/adafruit-powerboost-common.scad index 7e2f556..b62643a 100644 --- a/adafruit-powerboost-common.scad +++ b/adafruit-powerboost-common.scad @@ -192,20 +192,30 @@ module PsuLedWindowsPlan(){ } } -module PsuMountWindowsNegative(ceil){ - linextr(-10, 0.1) +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(); +} + +module PsuMountWindowsNegative(ceil){ + linextr(-10, 0.1) + PsuLedWindowsPlan(); + PsuFirstLayerNegative(ceil) + 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) + PsuFirstLayerNegative(ceil) + offset(delta= psu_multicolour_gap) PsuLedLegendsPlan(); } @@ -315,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