chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
air-hockey-puck: wip
[reprap-play.git]
/
adafruit-powerboost-1000.scad
diff --git
a/adafruit-powerboost-1000.scad
b/adafruit-powerboost-1000.scad
index 976cebb74431e039665625eb9f55d595296063cd..683eb811cbddc6a5f1dff2a89026297b84dae653 100644
(file)
--- a/
adafruit-powerboost-1000.scad
+++ b/
adafruit-powerboost-1000.scad
@@
-14,11
+14,11
@@
psu_led_low_x = 4;
psu_led_usbend_y_min = 4.5;
psu_led_chrg_min_x = -1.0;
psu_led_chrg_max_x = 3.0;
psu_led_usbend_y_min = 4.5;
psu_led_chrg_min_x = -1.0;
psu_led_chrg_max_x = 3.0;
-psu_led_chrg_both_sz_y =
7.0
;
+psu_led_chrg_both_sz_y =
9.4
;
-psu_led_
pwr
_sz_x = 4.5;
-psu_led_
pwr
_min_y = -1.5;
-psu_led_
pwr_max_y = 2.
5;
+psu_led_
low
_sz_x = 4.5;
+psu_led_
low
_min_y = -1.5;
+psu_led_
low_max_y = 3.2
5;
psu_led_baffle_th = 0.8;
psu_led_baffle_ends = 1.5;
psu_led_baffle_th = 0.8;
psu_led_baffle_ends = 1.5;
@@
-74,16
+74,16
@@
module PsuLedWindowsPlanCore(){
psu_led_chrg_both_sz_y ]);
}
psu_led_chrg_both_sz_y ]);
}
- // One LED,
PWR, near outlet USB pads
+ // One LED,
"Low", other side of inlet connector
AtPsuMountCorner(1,0) {
translate([0, psu_led_usbend_y_min ])
rectfromto([ 0,
AtPsuMountCorner(1,0) {
translate([0, psu_led_usbend_y_min ])
rectfromto([ 0,
- psu_led_
pwr
_min_y ],
- [ psu_led_
pwr
_sz_x,
- psu_led_
pwr
_max_y ]);
+ psu_led_
low
_min_y ],
+ [ psu_led_
low
_sz_x,
+ psu_led_
low
_max_y ]);
}
}
- // One LED,
"Low", other side of inlet connector
+ // One LED,
PWR, near outlet USB pads
AtPsuMountCorner(0,1){
rectfromto([0,0],
[psu_sz[0]/2 + psu_innerend_led_x_midder,
AtPsuMountCorner(0,1){
rectfromto([0,0],
[psu_sz[0]/2 + psu_innerend_led_x_midder,
@@
-137,13
+137,14
@@
module PsuLedLegendPowerSymbol(){
}
module PsuLedLegendsPlan(){
}
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
])
+ 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
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_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
])
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_sz[1]/2
+ psu_led_legend_gap
+ psu_led_usbend_y_min
- + psu_led_
pwr
_max_y
- + psu_led_legend_
power_sz_y
+ + psu_led_
low
_max_y
+ + psu_led_legend_
battery_w/2
])
])
- rotate([0,0,180])
- PsuLedLegendPowerSymbol();
+ PsuLedLegendBattery(0);
}
}