mirror of
https://github.com/correl/openscad.git
synced 2024-11-14 19:19:34 +00:00
31 lines
583 B
OpenSCAD
31 lines
583 B
OpenSCAD
|
/* WLED Controller
|
||
|
*
|
||
|
* A version of the project box designed to encase an ESP8266 Wemos D1-Mini with
|
||
|
* a slot for wires connecting to its pins. Assumes a right-angle connector is
|
||
|
* soldered to the board.
|
||
|
*/
|
||
|
|
||
|
use <project_box.scad>
|
||
|
$fn=50;
|
||
|
|
||
|
mode = "all"; // ["case", "lid", "all"]
|
||
|
|
||
|
x = 27;
|
||
|
y = 35;
|
||
|
z = 7;
|
||
|
below = 5;
|
||
|
|
||
|
project_box([x, y, z],
|
||
|
below=below,
|
||
|
mode=mode) {
|
||
|
// Switch Sensor (Left)
|
||
|
cutout_right([x,y,z])
|
||
|
translate([5,1.5])
|
||
|
square([10,5]);
|
||
|
// USB Port (Front)
|
||
|
cutout_front([x,y,z])
|
||
|
translate([7, -5, 0])
|
||
|
square([15,10]);
|
||
|
|
||
|
}
|