Further simplify

This commit is contained in:
Deon Spengler
2023-08-10 15:39:22 +02:00
parent fcdd1b5b66
commit e555591ca0

View File

@@ -4,14 +4,18 @@ width=208.2;
depth=70.2;
height=8;
display();
module display(){
// outer display frame
display_frame();
module display_frame(){
difference(){
// main frame
translate([0, 0, 0])
cube([width+(thickness*2), depth+(thickness*2), height]);
cube([width+(thickness*2), depth+(thickness*2), height+22]);
translate([thickness, thickness, 0])
cube([width, depth, height]);
cube([width, depth, height+22]);
// hdmi gap
translate([thickness+95, depth+thickness, height])
cube([25, 0.8, 17]);
}
// inner display catch
@@ -34,30 +38,12 @@ translate([0, 0, 0])
translate([146.6, 0, 0])
battery_compartment();
// raspberry pi 4 cover
rpi4_cover();
// display hinge
translate([(width+thickness*2)/2, -9, 6.57])
rotate([90, 270, 0])
male_hinge();
}
module rpi4_cover(){
pi_height=22;
difference(){
translate([0, 0, height])
cube([width+(thickness*2), depth+(thickness*2), pi_height]);
translate([thickness, thickness, height])
cube([width, depth, pi_height]);
// hdmi gap
translate([thickness+95, depth+thickness, height])
cube([25, 0.8, 17]);
}
}
module usb_compartment(){
usb_width=41;
usb_height=4;