31 lines
547 B
OpenSCAD
31 lines
547 B
OpenSCAD
|
|
||
|
|
||
|
$fn=60;
|
||
|
|
||
|
difference() {
|
||
|
union() {
|
||
|
difference() {
|
||
|
translate([-10,-10,-1]) {
|
||
|
cube([20,20,20]);
|
||
|
}
|
||
|
// bulb cutout
|
||
|
cylinder(h=20,d=5.2);
|
||
|
// bulb base cutout
|
||
|
translate([0,0,8]) {
|
||
|
cylinder(h=12,d=6.2);
|
||
|
}
|
||
|
}
|
||
|
// "anode" marker (it's not the anode on WS2812!)
|
||
|
translate([2.6,-5,7]) {
|
||
|
cube([2,10,12]);
|
||
|
}
|
||
|
}
|
||
|
// JST ZH-4 cutout
|
||
|
translate([-3.25,-2,16]) {
|
||
|
cube([6.5,3,5]);
|
||
|
}
|
||
|
// JST ZH-4 alignment slot cutout
|
||
|
translate([-4,-0.5,16]) {
|
||
|
cube([8,1,5]);
|
||
|
}
|
||
|
}
|