1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-16 20:33:57 +02:00

Added Duet Ethernet and Duex PCB models.

Made green terminals parametric.
Separated pin_headers and green_terminals out from pcb.scad.
This commit is contained in:
Chris Palmer
2019-07-04 12:03:38 +01:00
parent 8014aadd1d
commit 55fd552c8f
17 changed files with 856 additions and 289 deletions

View File

@@ -0,0 +1,29 @@
//
// NopSCADlib Copyright Chris Palmer 2018
// nop.head@gmail.com
// hydraraptor.blogspot.com
//
// This file is part of NopSCADlib.
//
// NopSCADlib is free software: you can redistribute it and/or modify it under the terms of the
// GNU General Public License as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// NopSCADlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with NopSCADlib.
// If not, see <https://www.gnu.org/licenses/>.
//
use <../utils/layout.scad>
include <../vitamins/green_terminals.scad>
module green_terminals()
layout([for(t = green_terminals) gt_depth(t)], 15)
rotate(180)
green_terminal(green_terminals[$i], len(green_terminals) + 1 - $i);
if($preview)
green_terminals();

45
tests/pin_headers.scad Normal file
View File

@@ -0,0 +1,45 @@
//
// NopSCADlib Copyright Chris Palmer 2018
// nop.head@gmail.com
// hydraraptor.blogspot.com
//
// This file is part of NopSCADlib.
//
// NopSCADlib is free software: you can redistribute it and/or modify it under the terms of the
// GNU General Public License as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// NopSCADlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with NopSCADlib.
// If not, see <https://www.gnu.org/licenses/>.
//
include <../core.scad>
use <../utils/layout.scad>
include <../vitamins/pin_headers.scad>
pins = 10;
module pin_headers()
layout([for(p = pin_headers) hdr_pitch(p) * pins], 15) {
idc_transition(pin_headers[$i], 10);
translate([0, 20])
pin_header(pin_headers[$i], 10, 2);
translate([0, 40])
box_header(pin_headers[$i], 10, 2);
translate([0, 65])
pin_socket(pin_headers[$i], 10, 2);
translate([0, 95])
pin_socket(pin_headers[$i], 10, 2, right_angle = true);
}
if($preview)
pin_headers();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 155 KiB

BIN
tests/png/pin_headers.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 143 KiB