Skip to content

Commit db03617

Browse files
committed
4" displays
1 parent f3c8158 commit db03617

6 files changed

Lines changed: 162 additions & 15 deletions

File tree

cases/case1.scad

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ module case() {
537537
if (usb_cutout) {
538538
cubeWithAngledTopBottom(
539539
loc=[
540-
frame_full_width * usb_cutout_offset_x_percentage / 100,
541-
frame_full_height * usb_cutout_offset_y_percentage / 100,
540+
(frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_x_percentage / 100,
541+
(frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_y_percentage / 100,
542542
back_depth + case_depth - (usb_cutout_box_depth + usb_cutout_box_wall_thickness),
543543
],
544544
size =[
@@ -592,8 +592,8 @@ module case() {
592592
// Cutout into box
593593
cubeWithAngledTopBottom(
594594
loc=[
595-
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness,
596-
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness,
595+
(frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness,
596+
(frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness,
597597
back_depth + case_depth - usb_cutout_box_depth,
598598
],
599599
size =[
@@ -608,9 +608,9 @@ module case() {
608608
// Hole into what's remaining
609609
if (usb_cutout_hole_position == "left" || usb_cutout_hole_position == "right") {
610610
translate([
611-
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
611+
(frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
612612
+ (usb_cutout_hole_position == "right" ? usb_cutout_box_width + usb_cutout_box_wall_thickness : 0),
613-
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_height - usb_cutout_hole_width) / 2,
613+
(frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_height - usb_cutout_hole_width) / 2,
614614
back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2,
615615
])
616616
cube([
@@ -620,8 +620,8 @@ module case() {
620620
]);
621621
} else if (usb_cutout_hole_position == "top" || usb_cutout_hole_position == "bottom") {
622622
translate([
623-
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2,
624-
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
623+
(frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2,
624+
(frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
625625
+ (usb_cutout_hole_position == "bottom" ? usb_cutout_box_height + usb_cutout_box_wall_thickness : 0),
626626
back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2,
627627
])
@@ -632,8 +632,8 @@ module case() {
632632
]);
633633
} else if (usb_cutout_hole_position == "back") {
634634
translate([
635-
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2,
636-
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11 + (usb_cutout_box_height - usb_cutout_hole_height) / 2 + usb_cutout_box_wall_thickness,
635+
(frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2,
636+
(frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11 + (usb_cutout_box_height - usb_cutout_hole_height) / 2 + usb_cutout_box_wall_thickness,
637637
back_depth + case_depth - usb_cutout_box_depth - usb_cutout_box_wall_thickness - 0.11,
638638
])
639639
cube([

cases/waveshare.10in3.scad

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ kickstand_leg_bridge_offset_percentage = 5;
5656

5757
/* [USB cutout] */
5858
usb_cutout = true;
59-
usb_cutout_offset_x_percentage = 10;
59+
usb_cutout_offset_x_percentage = 8;
6060
usb_cutout_offset_y_percentage = 12;
6161
usb_cutout_box_width = 70;
6262
usb_cutout_box_height = 20;
@@ -66,10 +66,9 @@ usb_cutout_hole_position = "right"; // [top, bottom, left, right]
6666
usb_cutout_hole_width = 14;
6767
usb_cutout_hole_height = 6.0;
6868

69-
7069
/* [Hanging hole] */
7170
hanging_hole = true;
72-
hanging_hole_offset = 50;
71+
hanging_hole_offset = 30;
7372

7473
/* [Debug] */
7574
cross_section_percentage = 0; // [0:100]

cases/waveshare.4in01f.desk.scad

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Minimal overrides for Waveshare 7.3" E case
2+
include <case1.scad>;
3+
4+
/* [View Settings] */
5+
view_mode="print_horizontal"; // [print_vertical, print_horizontal, stacked]
6+
7+
/* [Panel dimensions] */
8+
panel_width = 69.7;
9+
panel_height = 98.5;
10+
panel_depth = 6.8;
11+
12+
panel_bezel_left = 10.5;
13+
panel_bezel_right = 6.5;
14+
panel_bezel_top = 6.5;
15+
panel_bezel_bottom = 6.5;
16+
17+
/* [Border and inner padding] */
18+
panel_border_right = 6.0;
19+
panel_border_left = 3.0;
20+
panel_border_top = 6.0;
21+
panel_border_bottom = 6.0;
22+
23+
case_inner_padding_left = 2.0;
24+
case_inner_padding_right = 2.0;
25+
case_inner_padding_top = 2.0;
26+
case_inner_padding_bottom = 1.0;
27+
28+
/* [Cable gap] */
29+
panel_cable_gap_right = 30;
30+
panel_cable_gap_size = 0.8; // How into the border to cut
31+
32+
/* [Case depth] */
33+
case_depth = 6.0;
34+
35+
/* [Screws] */
36+
screw_offset_left = 4.0;
37+
screw_offset_right = 4.0;
38+
screw_offset_top = 4.0;
39+
screw_offset_bottom = 4.0;
40+
41+
extra_screws_top = [0, 0, 0, 0, 0];
42+
extra_screws_bottom = [0, 0, 0, 0, 0];
43+
extra_screws_left = [0, 0, 0, 0, 0];
44+
extra_screws_right = [0, 0, 0, 0, 0];
45+
46+
/* [Center support] */
47+
case_center_support_vertical = false;
48+
case_center_support_horizontal = false;
49+
50+
/* [Kickstand] */
51+
kickstand = true;
52+
kickstand_width = 64;
53+
kickstand_leg_width = 6;
54+
kickstand_leg_bridge_height = 7;
55+
kickstand_leg_bridge_offset_percentage = 0;
56+
kickstand_depth = 6.7;
57+
58+
/* [USB cutout] */
59+
usb_cutout = true;
60+
usb_cutout_hole_position = "back"; // [top, bottom, left, right, back]
61+
usb_cutout_offset_x_percentage = 50;
62+
usb_cutout_offset_y_percentage = 82;
63+
usb_cutout_box_width = 17;
64+
usb_cutout_box_height = 11;
65+
usb_cutout_box_depth = 2.2;
66+
usb_cutout_hole_height = 5.8;
67+
68+
/* [Hanging hole] */
69+
hanging_hole = false;
70+
hanging_hole_offset = 4;
71+
72+
/* [Debug] */
73+
cross_section_percentage = 0; // [0:100]
74+
vertical_print_scale = 1.004; // 0.4mm shrinkage for every 100mm
75+
kickstand_rotation = 0;

cases/waveshare.4in0e.desk.scad

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Minimal overrides for Waveshare 7.3" E case
2+
include <case1.scad>;
3+
4+
/* [View Settings] */
5+
view_mode="print_horizontal"; // [print_vertical, print_horizontal, stacked]
6+
7+
/* [Panel dimensions] */
8+
panel_width = 67.8;
9+
panel_height = 101.1;
10+
panel_depth = 6.8;
11+
12+
panel_bezel_left = 6.2;
13+
panel_bezel_right = 6.2;
14+
panel_bezel_top = 6.2;
15+
panel_bezel_bottom = 10.8;
16+
17+
/* [Border and inner padding] */
18+
panel_border_left = 6.6;
19+
panel_border_right = 6.6;
20+
panel_border_top = 6.6;
21+
panel_border_bottom = 2.0;
22+
23+
case_inner_padding_left = 2.0;
24+
case_inner_padding_right = 2.0;
25+
case_inner_padding_top = 2.0;
26+
case_inner_padding_bottom = 2.0;
27+
28+
/* [Case depth] */
29+
case_depth = 6.0;
30+
31+
/* [Screws] */
32+
screw_offset_left = 4.2;
33+
screw_offset_right = 4.2;
34+
screw_offset_top = 4.2;
35+
screw_offset_bottom = 4.2;
36+
37+
extra_screws_top = [0, 0, 0, 0, 0];
38+
extra_screws_bottom = [0, 0, 0, 0, 0];
39+
extra_screws_left = [0, 0, 0, 0, 0];
40+
extra_screws_right = [0, 0, 0, 0, 0];
41+
42+
/* [Center support] */
43+
case_center_support_vertical = false;
44+
case_center_support_horizontal = false;
45+
46+
/* [Kickstand] */
47+
kickstand = true;
48+
kickstand_width = 64;
49+
kickstand_leg_width = 6;
50+
kickstand_leg_bridge_height = 7;
51+
kickstand_leg_bridge_offset_percentage = 0;
52+
kickstand_depth = 6.7;
53+
54+
/* [USB cutout] */
55+
usb_cutout = true;
56+
usb_cutout_hole_position = "back"; // [top, bottom, left, right, back]
57+
usb_cutout_offset_x_percentage = 50;
58+
usb_cutout_offset_y_percentage = 82;
59+
usb_cutout_box_width = 17;
60+
usb_cutout_box_height = 11;
61+
usb_cutout_box_depth = 2.2;
62+
usb_cutout_hole_height = 5.8;
63+
64+
/* [Hanging hole] */
65+
hanging_hole = false;
66+
hanging_hole_offset = 4;
67+
68+
/* [Debug] */
69+
cross_section_percentage = 0; // [0:100]
70+
vertical_print_scale = 1.004; // 0.4mm shrinkage for every 100mm
71+
kickstand_rotation = 0;

cases/waveshare.7in3e.scad

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ kickstand_depth = 6.7;
6060

6161
/* [USB cutout] */
6262
usb_cutout = true;
63-
usb_cutout_offset_y_percentage = 28;
63+
usb_cutout_offset_x_percentage = 92;
64+
usb_cutout_offset_y_percentage = 50;
6465
usb_cutout_box_depth = 6.4;
6566
usb_cutout_hole_height = 5.8;
6667

cases/waveshare.7in5.scad

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ kickstand_depth = 6.7;
6060

6161
/* [USB cutout] */
6262
usb_cutout = true;
63-
usb_cutout_offset_y_percentage = 28;
63+
usb_cutout_offset_x_percentage = 92;
64+
usb_cutout_offset_y_percentage = 50;
6465
usb_cutout_box_depth = 6.4;
6566
usb_cutout_hole_height = 5.8;
6667

0 commit comments

Comments
 (0)