Skip to content

Commit 75af519

Browse files
committed
10in3
1 parent b43e1ad commit 75af519

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

cases/case1.scad

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ usb_cutout_box_width = 20;
148148
usb_cutout_box_height = 50;
149149
usb_cutout_box_depth = 7;
150150
usb_cutout_box_wall_thickness = 0.8;
151-
usb_cutout_hole_postition = "top"; // [top, bottom]
151+
usb_cutout_hole_position = "top"; // [top, bottom, left, right]
152152
usb_cutout_hole_width = 14;
153153
usb_cutout_hole_height = 6.0;
154154

@@ -544,8 +544,8 @@ module case() {
544544
usb_cutout_box_height + usb_cutout_box_wall_thickness * 2,
545545
usb_cutout_box_depth + usb_cutout_box_wall_thickness
546546
],
547-
top=(view_mode=="print_vertical" && usb_cutout_hole_postition != "top"),
548-
bottom=(usb_cutout_hole_postition != "bottom")
547+
top=(view_mode=="print_vertical" && usb_cutout_hole_position != "top"),
548+
bottom=(usb_cutout_hole_position != "bottom")
549549
);
550550
}
551551
if (hanging_hole) {
@@ -599,15 +599,15 @@ module case() {
599599
usb_cutout_box_height,
600600
usb_cutout_box_depth + 0.11
601601
],
602-
top=(view_mode=="print_vertical" && usb_cutout_hole_postition != "top"),
603-
bottom=(usb_cutout_hole_postition != "bottom")
602+
top=(view_mode=="print_vertical" && usb_cutout_hole_position != "top"),
603+
bottom=(usb_cutout_hole_position != "bottom")
604604
);
605605

606606
// Hole into what's remaining
607-
if (usb_cutout_hole_postition == "left" || usb_cutout_hole_postition == "right") {
607+
if (usb_cutout_hole_position == "left" || usb_cutout_hole_position == "right") {
608608
translate([
609609
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
610-
+ (usb_cutout_hole_postition == "right" ? usb_cutout_box_width + usb_cutout_box_wall_thickness : 0),
610+
+ (usb_cutout_hole_position == "right" ? usb_cutout_box_width + usb_cutout_box_wall_thickness : 0),
611611
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_height - usb_cutout_hole_width) / 2,
612612
back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2,
613613
])
@@ -620,7 +620,7 @@ module case() {
620620
translate([
621621
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2,
622622
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
623-
+ (usb_cutout_hole_postition == "bottom" ? usb_cutout_box_height + usb_cutout_box_wall_thickness : 0),
623+
+ (usb_cutout_hole_position == "bottom" ? usb_cutout_box_height + usb_cutout_box_wall_thickness : 0),
624624
back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2,
625625
])
626626
cube([

cases/waveshare.10in3.scad

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,30 @@ extra_screws_left = [0.5, 0, 0, 0, 0];
4545
extra_screws_right = [0.5, 0, 0, 0, 0];
4646

4747
/* [Center support] */
48-
case_center_support_vertical = true;
48+
case_center_support_vertical = false;
4949
case_center_support_horizontal = true;
5050

5151
/* [Kickstand] */
5252
kickstand = true;
5353
kickstand_hinge_top_extra_leverage = 5;
54+
kickstand_leg_bridge_offset_percentage = 5;
5455

5556
/* [USB cutout] */
5657
usb_cutout = true;
57-
usb_cutout_offset_x_percentage = 12;
58-
usb_cutout_offset_y_percentage = 30;
59-
usb_cutout_box_depth = 7;
58+
usb_cutout_offset_x_percentage = 10;
59+
usb_cutout_offset_y_percentage = 12;
60+
usb_cutout_box_width = 70;
61+
usb_cutout_box_height = 20;
62+
usb_cutout_box_depth = 7;
63+
usb_cutout_box_wall_thickness = 0.8;
64+
usb_cutout_hole_position = "right"; // [top, bottom, left, right]
65+
usb_cutout_hole_width = 14;
66+
usb_cutout_hole_height = 6.0;
67+
6068

6169
/* [Hanging hole] */
6270
hanging_hole = true;
63-
hanging_hole_offset = 70;
71+
hanging_hole_offset = 50;
6472

6573
/* [Debug] */
6674
cross_section_percentage = 0; // [0:100]

0 commit comments

Comments
 (0)