Skip to content

Commit 540dfde

Browse files
author
Joel Crisp
committed
Updates to pin positions, reduce height for a better fit
1 parent 7660e8e commit 540dfde

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

openscad/ili9341.scad

+11-11
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ hole_clearance=1.0;
1818
// TODO: minkowski the top edges
1919

2020
module pcb_hole() {
21-
cylinder(h=pcb_depth+screen_depth+4,d=4-hole_clearance, center=true, $fn=32);
21+
cylinder(h=pcb_depth+screen_depth+4,d=3.5-hole_clearance, center=true, $fn=32);
2222
}
2323

2424
module pcb_standoff() {
25-
cylinder(h=screen_depth+0.1,d=5, center=true, $fn=32);
25+
cylinder(h=screen_depth+0.1,d=5.2, center=true, $fn=32);
2626
}
2727

2828
module display_ili9341_hull_void() {
@@ -38,23 +38,23 @@ module display_ili9341_hull_void() {
3838
translate([0,1,0]) cube([screen_offset_height, pcb_height-2,screen_depth-1]);
3939
translate([pcb_width-10.4,1,0]) cube([10.4, pcb_height-2,screen_depth-1]);
4040
}
41-
translate([3,3,-pcb_depth/2]) pcb_hole();
42-
translate([pcb_width-6.92,3,-pcb_depth/2]) pcb_hole();
43-
translate([pcb_width-6.92,pcb_height-5,-pcb_depth/2]) pcb_hole();
44-
translate([3,pcb_height-5,-pcb_depth/2]) pcb_hole();
41+
translate([3,3.5,-pcb_depth/2]) pcb_hole();
42+
translate([pcb_width-6.92,3.5,-pcb_depth/2]) pcb_hole();
43+
translate([pcb_width-6.92,pcb_height-5+0.5,-pcb_depth/2]) pcb_hole();
44+
translate([3,pcb_height-5+0.5,-pcb_depth/2]) pcb_hole();
4545

46-
translate([3,3,screen_depth/2+0.1]) pcb_standoff();
47-
translate([pcb_width-6.92,3,screen_depth/2+0.1]) pcb_standoff();
48-
translate([pcb_width-6.92,pcb_height-5,screen_depth/2+0.1]) pcb_standoff();
49-
translate([3,pcb_height-5,screen_depth/2+0.1]) pcb_standoff();
46+
translate([3,3.5,screen_depth/2+0.1]) pcb_standoff();
47+
translate([pcb_width-6.92,3.5,screen_depth/2+0.1]) pcb_standoff();
48+
translate([pcb_width-6.92,pcb_height-5+0.5,screen_depth/2+0.1]) pcb_standoff();
49+
translate([3,pcb_height-5+0.5,screen_depth/2+0.1]) pcb_standoff();
5050
}
5151
}
5252

5353
union() {
5454
difference() {
5555
translate([-0.5,-0.5,3-pcb_depth]) {
5656
minkowski() {
57-
cube([pcb_width+1,pcb_height+1,(pcb_depth+screen_depth)/2]);
57+
cube([pcb_width+1,pcb_height+1,(pcb_depth+screen_depth)/2-1]);
5858
cylinder(r=1,h=(pcb_depth+screen_depth)/2, center=true, $fn=32);
5959
}
6060
}

0 commit comments

Comments
 (0)