added rockpi4c case and dp_mini mask
This commit is contained in:
@@ -75,7 +75,7 @@ case_design = "shell"; // [shell,panel,stacked,tray,round,hex,snap,fitted]
|
|||||||
// base case style
|
// base case style
|
||||||
case_style = "none"; // ["none","vu5","vu7","sides"]
|
case_style = "none"; // ["none","vu5","vu7","sides"]
|
||||||
// single board computer model
|
// single board computer model
|
||||||
sbc_model = "c4"; // [c1+,c2,c4,xu4,xu4q,mc1,hc1,hc4,m1,n1,n2,n2+,h2,show2,rock64,rockpro64,jetsonnano,rpizero,rpi3a+,rpi3b+,rpi4b,rockpi4b+,rockpi4c+,test]
|
sbc_model = "c4"; // [c1+,c2,c4,xu4,xu4q,mc1,hc1,hc4,m1,n1,n2,n2+,h2,show2,rock64,rockpro64,jetsonnano,rpizero,rpi3a+,rpi3b+,rpi4b,rockpi4b+,rockpi4c,rockpi4c+,test]
|
||||||
// sbc location x axis
|
// sbc location x axis
|
||||||
pcb_loc_x = 0; //[0:.5:200]
|
pcb_loc_x = 0; //[0:.5:200]
|
||||||
// sbc location y axis
|
// sbc location y axis
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
boom_vring(tolerance)
|
boom_vring(tolerance)
|
||||||
access_port(size[],orientation)
|
access_port(size[],orientation)
|
||||||
access_cover(size[],orientation)
|
access_cover(size[],orientation)
|
||||||
hdmi_open()
|
hdmi_open(hdmi_style)
|
||||||
microusb_open()
|
microusb_open()
|
||||||
fan_mask(size, thick, style)
|
fan_mask(size, thick, style)
|
||||||
mask(loc_x,loc_y,rotation,side,class,type,case_z,wallthick,gap,floorthick,pcb_z)
|
mask(loc_x,loc_y,rotation,side,class,type,case_z,wallthick,gap,floorthick,pcb_z)
|
||||||
@@ -2360,7 +2360,6 @@ module hdmi_open(hdmi_style) {
|
|||||||
translate([-.25,-6.2,0]) rotate ([-90,0,0]) cylinder(d=1.5, h=9.5,$fn=30);
|
translate([-.25,-6.2,0]) rotate ([-90,0,0]) cylinder(d=1.5, h=9.5,$fn=30);
|
||||||
translate([6.75,-6.2,0]) rotate ([-90,0,0]) cylinder(d=1.5, h=9.5,$fn=30);
|
translate([6.75,-6.2,0]) rotate ([-90,0,0]) cylinder(d=1.5, h=9.5,$fn=30);
|
||||||
}
|
}
|
||||||
// translate([2,-5,.5]) cube([11.5, 8, .5]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(hdmi_style == "hdmi_mini") {
|
if(hdmi_style == "hdmi_mini") {
|
||||||
@@ -2370,7 +2369,17 @@ module hdmi_open(hdmi_style) {
|
|||||||
translate([-1,-6.2,-.5]) rotate ([-90,0,0]) cylinder(d=3, h=10,$fn=30);
|
translate([-1,-6.2,-.5]) rotate ([-90,0,0]) cylinder(d=3, h=10,$fn=30);
|
||||||
translate([12.25,-6.2,-.5]) rotate ([-90,0,0]) cylinder(d=3, h=10,$fn=30);
|
translate([12.25,-6.2,-.5]) rotate ([-90,0,0]) cylinder(d=3, h=10,$fn=30);
|
||||||
}
|
}
|
||||||
// translate([2,-5,.5]) cube([11.5, 8, .5]);
|
}
|
||||||
|
}
|
||||||
|
if(hdmi_style=="dp_mini") {
|
||||||
|
size_x = 9;
|
||||||
|
size_y = 8;
|
||||||
|
union() {
|
||||||
|
difference() {
|
||||||
|
translate([-.25,-6,0]) cube([size_x, size_y, 5.75]);
|
||||||
|
translate([-7.5,-7,1]) rotate([0,45,0]) cube([size_x, size_y+2, 5.6]);
|
||||||
|
translate([10,-7,-5]) rotate([0,-45,0]) cube([size_x, size_y+2, 5.6]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2526,6 +2535,19 @@ module mask(loc_x,loc_y,loc_z,rotation,side,class,type,wallthick,gap,floorthick,
|
|||||||
if(type == "hdmi_mini" && rotation == 270) {
|
if(type == "hdmi_mini" && rotation == 270) {
|
||||||
place(loc_x,loc_y,loc_z,11.5,8,rotation,side) hdmi_open("hdmi_mini");
|
place(loc_x,loc_y,loc_z,11.5,8,rotation,side) hdmi_open("hdmi_mini");
|
||||||
}
|
}
|
||||||
|
// dp mini opening
|
||||||
|
if(type == "dp_mini" && rotation == 0) {
|
||||||
|
place(loc_x,loc_y,loc_z,9,8,rotation,side) hdmi_open("dp_mini");
|
||||||
|
}
|
||||||
|
if(type == "dp_mini" && rotation == 90) {
|
||||||
|
place(loc_x,loc_y-.5,loc_z,9,8,rotation,side) hdmi_open("dp_mini");
|
||||||
|
}
|
||||||
|
if(type == "dp_mini" && rotation == 180) {
|
||||||
|
place(loc_x-.5,loc_y+6,loc_z,9,8,rotation,side) hdmi_open("dp_mini");
|
||||||
|
}
|
||||||
|
if(type == "dp_mini" && rotation == 270) {
|
||||||
|
place(loc_x+6,loc_y,loc_z,9,8,rotation,side) hdmi_open("dp_mini");
|
||||||
|
}
|
||||||
// power plug openings
|
// power plug openings
|
||||||
if(type == "pwr5.5_7.5x11.5" && rotation == 0) {
|
if(type == "pwr5.5_7.5x11.5" && rotation == 0) {
|
||||||
place(loc_x,loc_y,loc_z,7,7,rotation,side)
|
place(loc_x,loc_y,loc_z,7,7,rotation,side)
|
||||||
|
|||||||
Reference in New Issue
Block a user