Compare commits

..

2 Commits

Author SHA1 Message Date
Joel Ebel
5fc7e8723d Merge branch 'master' into two_pcb 2019-12-27 14:22:05 -05:00
Joel Ebel
5b66f2f4df example with two PCBs 2018-07-06 20:24:50 -04:00

View File

@ -145,6 +145,14 @@ Foot4X = PCBLength - Foot4XFromEdge;
Foot4YFromEdge = 5; Foot4YFromEdge = 5;
Foot4Y = PCBWidth - Foot4YFromEdge; Foot4Y = PCBWidth - Foot4YFromEdge;
Foot5X = 100;
Foot5Y = 40;
Foot6X = 120;
Foot6Y = 40;
Foot7X = 100;
Foot7Y = 80;
Foot8X = 120;
Foot8Y = 80;
/* [STL element to export] */ /* [STL element to export] */
// - Top shell // - Top shell
@ -288,12 +296,12 @@ module BPanelText() {
Produces a box of the specified dimensions. Corners are rounded Produces a box of the specified dimensions. Corners are rounded
according to Filet and Resolution parameters. according to Filet and Resolution parameters.
Arguments: Arguments:
xshrink: the amount to reduce the length on one end compared to the full xshrink: the amount to reduce the length on one end compared to the full
length length
yzshrink: the amount to reduce the width or height on one edge compared yzshrink: the amount to reduce the width or height on one edge compared
to the full box to the full box
*/ */
module RoundBox(xshrink=0, yzshrink=0) { module RoundBox(xshrink=0, yzshrink=0) {
Filet = (Filet > Thick*2) ? Filet - yzshrink : Filet; Filet = (Filet > Thick*2) ? Filet - yzshrink : Filet;
@ -430,7 +438,7 @@ module tab() {
translate([0, ScrewHole*2, PartMargin]) { translate([0, ScrewHole*2, PartMargin]) {
difference() { difference() {
sphere(d=(ScrewHole - PartMargin*2), $fn=100); sphere(d=(ScrewHole - PartMargin*2), $fn=100);
translate([0, 0, ScrewHole/2 + TabThick/2]) { translate([0, 0, ScrewHole*.5 + TabThick/2]) {
cube(ScrewHole, center=true); cube(ScrewHole, center=true);
} }
} }
@ -629,7 +637,7 @@ module Feet(top=0) {
if (!top) { if (!top) {
%PCB(); %PCB();
} }
if (Screwless || !top ) { if (Screwless || !top ) {
translate([Foot1X, Foot1Y]) { translate([Foot1X, Foot1Y]) {
foot(top=top); foot(top=top);
@ -643,6 +651,18 @@ module Feet(top=0) {
translate([Foot4X, Foot4Y]) { translate([Foot4X, Foot4Y]) {
foot(top=top); foot(top=top);
} }
translate([Foot5X, Foot5Y]) {
foot(top=top);
}
translate([Foot6X, Foot6Y]) {
foot(top=top);
}
translate([Foot7X, Foot7Y]) {
foot(top=top);
}
translate([Foot8X, Foot8Y]) {
foot(top=top);
}
} }
} }
} }