Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mask fix for rock5b v1.3 #29

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions sbc_case_builder_library.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3113,7 +3113,7 @@ module mask(loc_x,loc_y,loc_z,rotation,side,class,type,wallthick,gap,floorthick,
cube([12,15.5,2]);
}
if(type == "microsdcard2" && side == "top" && rotation == 270) {
place(loc_x+5,loc_y,loc_z+1.75,12,15.5,rotation,side)
place(loc_x+5,loc_y,loc_z,12,15.5,rotation,side)
cube([12,15.5,2]);
}
// rj45 opening
Expand Down Expand Up @@ -3532,6 +3532,13 @@ module mask(loc_x,loc_y,loc_z,rotation,side,class,type,wallthick,gap,floorthick,
translate([-.5,-3.75,0]) cube([7,2.5,6.5]);
}
}
if(type == "momentary_4.5x3.5x2.5_90") {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
union() {
translate([2.25,0,1.8]) rotate([90,0,0]) cylinder(d=3.5, h=8);
translate([-1.25,-3.75,0]) cube([7,2.5,5]);
}
}
if(type == "momentary_7x3x3_90" && rotation == 0) {
place(loc_x,loc_y,loc_z,7,3,rotation,side)
translate([0,-6,0]) cube([7,8,3]);
Expand All @@ -3552,6 +3559,10 @@ module mask(loc_x,loc_y,loc_z,rotation,side,class,type,wallthick,gap,floorthick,
place(loc_x,loc_y,loc_z,7.5,7.5,rotation,side)
translate([0,4,0]) cube([7.5,8,4]);
}
if(type == "audio_micro" && rotation == 90) {
place(loc_x,loc_y,loc_z,7.5,7.5,rotation,side)
translate([0,4,0]) cube([7.5,8,4]);
}
if(type == "m1_oem" && rotation == 0) {
place(loc_x,loc_y,loc_z,6,6,rotation,side)
union() {
Expand Down Expand Up @@ -3973,4 +3984,4 @@ module cableholder_spacer() {
translate([5,9.5,-1]) rotate([0,0,90]) slot(4.5,11,9);
translate([3,20,-1]) rotate([0,0,45]) cube([2,6,9]);
}
}
}