]> mj.ucw.cz Git - home-hw.git/commitdiff
Case: bug fixes
authorMartin Mares <mj@ucw.cz>
Sat, 23 Nov 2019 19:06:54 +0000 (20:06 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 23 Nov 2019 19:06:54 +0000 (20:06 +0100)
rs485-case/case.scad

index 1f60dd35b6075c129dc1a863c5a98875dae641e6..ff3910335c1e9d291fb6ad4d2fdb9d7bb0ec698d 100644 (file)
@@ -15,8 +15,7 @@ usb_height = 11;
 rs485_width = 16.5;
 rs485_height = 8;
 
-lock_thickness = 1;
-lock_height = 4;
+text_depth = 0.2;
 
 over = 0.1;
 clearance = 0.3;
@@ -50,14 +49,6 @@ module bottom() {
                translate([pcb_length - 9, pcb_rail_width, -pcb_thickness-pcb_depth])
                        cube([8, pcb_width - 2*pcb_rail_width, pcb_thickness + pcb_depth + over]);
        }
-
-       // Locks
-       /*
-       translate([0, -wall_thickness-lock_thickness, box_height - lock_height])
-               cube([pcb_length, lock_thickness + wall_thickness/2, lock_height]);
-       translate([0, pcb_width + wall_thickness/2, box_height - lock_height])
-               cube([pcb_length, lock_thickness + wall_thickness/2, lock_height]);
-       */
 }
 
 module top() {
@@ -83,17 +74,17 @@ module top() {
                        cube([4, 2, wall_thickness + 2*over]);
 
                // USB label
-               translate([pcb_length-3, pcb_width/2, wall_thickness/2])
+               translate([pcb_length-3, pcb_width/2, wall_thickness - text_depth])
                rotate(90)
                scale([0.4, 0.4, 1])
-                       linear_extrude(wall_thickness/2 + over)
+                       linear_extrude(text_depth + over)
                        text("USB", font = "Liberation Serif", halign="center");
 
                // RS485 label
-               translate([3, pcb_width/2, wall_thickness/2])
+               translate([3, pcb_width/2, wall_thickness - text_depth])
                rotate(-90)
                scale([0.4, 0.4, 1])
-                       linear_extrude(wall_thickness/2 + over)
+                       linear_extrude(text_depth + over)
                        text("RS 485", font = "Liberation Serif", halign="center");
        }
 }