Add buttons to case

This commit is contained in:
mmcwilliams 2023-02-13 00:09:26 -05:00
parent 34b1613778
commit f5458ba8f1
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Z = 30;
USB = -30; USB = -30;
L289N = 10; L289N = 10;
ButtonD = 7.2;
module l289N_holes (r = 3/2 - .2, MOD_MOUNT = 0) { module l289N_holes (r = 3/2 - .2, MOD_MOUNT = 0) {
$fn = 60; $fn = 60;
@ -92,6 +93,8 @@ module case_top () {
difference () { difference () {
rounded_cube([X, Y, 3], d = 10, center = true, $fn = 40); rounded_cube([X, Y, 3], d = 10, center = true, $fn = 40);
translate([-2, 0, 0]) cube([24, 27, 20], center = true); translate([-2, 0, 0]) cube([24, 27, 20], center = true);
translate([35, 18, 0]) cylinder(r = R(ButtonD), h = 10, center = true, $fn = 40);
translate([35, -18, 0]) cylinder(r = R(ButtonD), h = 10, center = true, $fn = 40);
} }
translate([0, 0, -2.9]) difference () { translate([0, 0, -2.9]) difference () {
rounded_cube([X - 5, Y - 5, 3], d = 7, center = true, $fn = 40); rounded_cube([X - 5, Y - 5, 3], d = 7, center = true, $fn = 40);
@ -101,3 +104,4 @@ module case_top () {
} }
case_top(); case_top();
//case_bottom();