initial work for integrating sbc model framework v2

This commit is contained in:
Edward Kisiel
2024-01-29 17:40:12 -05:00
parent d5674f9f24
commit adf72494a1
29 changed files with 5959 additions and 6978 deletions

30
lib/pcb_pad.scad Normal file
View File

@@ -0,0 +1,30 @@
/*
pcb_pad(pads = 1, style = "round")
*/
// single row pcb pad
module pcb_pad(pads = 1, style = "round") {
adjust = .01;
$fn = 90;
pad_size = 1.25;
size_y = 2.54;
size_x = 2.54 * (pads-1);
union() {
for (i=[0:2.54:size_x]) {
if(style == "round") {
difference() {
color("#fee5a6") translate ([i,0,0]) cylinder(d=pad_size, h=.125);
color("dimgray") translate([i,0,-adjust]) cylinder(d=.625, h=.125+2*adjust);
}
}
if(style == "square") {
difference() {
color("#fee5a6") translate ([i-pad_size/2,-pad_size/2,0]) cube([pad_size, pad_size, .125]);
color("dimgray") translate([i,0,-adjust]) cylinder(d=.625, h=.125+2*adjust);
}
}
}
}
}