Files
Fabula/enclosure/cutouts.scad
2026-01-05 00:38:01 +01:00

30 lines
668 B
OpenSCAD

// The cutouts to allow external components (such as buttons and connectors) to be mounted on the box
// 4056-based li-ion charging module
module usb_cutout() {
hull() {
translate([0, -3, 0]) cylinder(h=11, d=8);
translate([0, 3, 0]) cylinder(h=11, d=8);
translate([0, 0, 12]) cube([3, 8.9, 2], true);
}
}
// 14x12mm rocker switch with 21x15mm flange
module switch_cutout() {
cube([14.2, 12.2, 30], true);
}
module speaker_grille() {
linear_extrude(height = 10, center = true) {
import("speaker_grille.svg");
}
}
module keycap() {
cylinder(h = 10, d = 20, $fn = 128);
}
//usb_cutout();
//speaker_grille();