35 lines
1.2 KiB
OpenSCAD
35 lines
1.2 KiB
OpenSCAD
/* 79-character width
|
|
012345678.012345678.012345678.012345678.012345678.012345678.012345678.012345678
|
|
*/
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// LibFile: esp32.scad
|
|
// FileGroup: ESP32DEVKIT
|
|
// FileSummary: Models relevant to the DEV kits
|
|
//
|
|
// DETAILS:
|
|
// There are slightly different form factors, between vendors
|
|
// Todo: NONE
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
include <BOSL2/std.scad>
|
|
|
|
include <params.scad>
|
|
|
|
esp32_VendorA();
|
|
module esp32_VendorA() {
|
|
|
|
// Renders the PCB representation
|
|
cuboid([dimXVendorA, dimYVendorA, ohZPCBVendorA]);
|
|
|
|
// Renders the over-hang (ov)
|
|
translate([0, ((0.5*dimYVendorA)+(0.5*ohYVendorA))-VOID, ((0.5*ohZPCBVendorA)+(0.5*ohZVendorA))])
|
|
cuboid([ohXVendorA, ohYVendorA, ohZVendorA]);
|
|
|
|
// Renders the ESPRESSIF IC
|
|
translate([0, 0, (0.5*dimZVendorA)-(0.5*ohZPCBVendorA)])
|
|
cuboid([icXBody, dimYVendorA, dimZVendorA,]);
|
|
|
|
// Renders the 2x USB representation
|
|
translate([0, -((0.5*dimYVendorA)+(0.5*ohYUSB))+VOID, ((0.5*ohZPCBVendorA)+(0.5*ohZUSB))])
|
|
cuboid([ohXUSB, ohYUSB, ohZUSB]);
|
|
}
|