X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=adafruit-powerboost-1000.scad;h=683eb811cbddc6a5f1dff2a89026297b84dae653;hb=ba7c5b240dcdab5fa3f4e3f7823bb828551471f0;hp=5991b493e269d3e9b0823d3ad8e876b79e3c1da1;hpb=b3e5ee25431a73989dbc48b642f2cec6659926f0;p=reprap-play.git diff --git a/adafruit-powerboost-1000.scad b/adafruit-powerboost-1000.scad index 5991b49..683eb81 100644 --- a/adafruit-powerboost-1000.scad +++ b/adafruit-powerboost-1000.scad @@ -18,7 +18,7 @@ psu_led_chrg_both_sz_y = 9.4; psu_led_low_sz_x = 4.5; psu_led_low_min_y = -1.5; -psu_led_low_max_y = 2.5; +psu_led_low_max_y = 3.25; psu_led_baffle_th = 0.8; psu_led_baffle_ends = 1.5; @@ -137,13 +137,14 @@ module PsuLedLegendPowerSymbol(){ } module PsuLedLegendsPlan(){ - translate([psu_led_legend_battery_l/2 + translate([psu_led_legend_power_dia/2 + psu_innerend_led_x_midder + psu_led_legend_gap, psu_sz[1]/2 - psu_innerend_led_depth/2 ]) - PsuLedLegendBattery(0); + rotate([0,0,180]) + PsuLedLegendPowerSymbol(); for (full=[0,1]) { translate([-psu_sz[0]/2 @@ -152,19 +153,23 @@ module PsuLedLegendsPlan(){ + psu_led_legend_gap, -psu_sz[1]/2 + psu_led_usbend_y_min - + psu_led_chrg_both_sz_y * (1-full) + + psu_led_chrg_both_sz_y * 0.5 + + max( + psu_led_legend_battery_w + psu_led_legend_gap, + psu_led_chrg_both_sz_y * 0.5 + ) * (0.5 - full) ]) PsuLedLegendBattery(full ? 100 : 50); } translate([psu_sz[0]/2 - - psu_led_legend_power_dia/2, + - psu_led_legend_battery_nub_l + - psu_led_legend_battery_l/2, -psu_sz[1]/2 + psu_led_legend_gap + psu_led_usbend_y_min + psu_led_low_max_y - + psu_led_legend_power_sz_y + + psu_led_legend_battery_w/2 ]) - rotate([0,0,180]) - PsuLedLegendPowerSymbol(); + PsuLedLegendBattery(0); }