more hacky work on the case in openscad - now it's hollow and translucent

This commit is contained in:
Sundog Jones 2020-07-10 18:08:30 -07:00
parent ef40849348
commit c2dad51f45

View File

@ -17,8 +17,10 @@ lcd_height = 23.4;
lcd_depth = 6; // how far to recess from top surface of case
// build
difference() {
// case
color("white", 0.4) {
roundedcube(
[
battery_width + 1,
@ -28,6 +30,21 @@ difference() {
false,
5
);
}
// hollow out the case leaving 1mm thick shell
translate([1, 1, 1]) {
color("white", 0.0) {
roundedcube(
[
battery_width - 1,
battery_length - 1,
depth_of_circuit_boards + battery_depth
],
false,
5
);
}
}
// active area of the LCD screen is 23.4mm x 23.4mm according to http://www.lcdwiki.com/1.3inch_IPS_Module
// lcd cutout