Added Duet Ethernet and Duex PCB models.
Made green terminals parametric. Separated pin_headers and green_terminals out from pcb.scad.
29
tests/green_terminals.scad
Normal 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
@@ -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();
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
BIN
tests/png/green_terminals.png
Normal file
After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 155 KiB |
BIN
tests/png/pin_headers.png
Normal file
After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 143 KiB |