mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-06 15:36:30 +02:00
Fixed some missing commas in pin_header vitamin calls.
This commit is contained in:
@@ -1872,9 +1872,9 @@ Pin headers and sockets, etc.
|
|||||||
### Vitamins
|
### Vitamins
|
||||||
| Qty | Module call | BOM entry |
|
| Qty | Module call | BOM entry |
|
||||||
| ---:|:--- |:---|
|
| ---:|:--- |:---|
|
||||||
| 1 | ```box_header(2p54header102)``` | Box header 10 x 2 |
|
| 1 | ```box_header(2p54header, 10, 2)``` | Box header 10 x 2 |
|
||||||
| 1 | ```idc_transition(2p54header, 10)``` | IDC transition header 10 x 2 |
|
| 1 | ```idc_transition(2p54header, 10)``` | IDC transition header 10 x 2 |
|
||||||
| 1 | ```pin_header(2p54header102)``` | Pin header 10 x 2 |
|
| 1 | ```pin_header(2p54header, 10, 2)``` | Pin header 10 x 2 |
|
||||||
| 1 | ```pin_socket(2p54header, 10, 2)``` | Pin socket 10 x 2 |
|
| 1 | ```pin_socket(2p54header, 10, 2)``` | Pin socket 10 x 2 |
|
||||||
| 1 | ```pin_socket(2p54header, 10, 2, right_angle = true)``` | Pin socket 10 x 2 right_angle |
|
| 1 | ```pin_socket(2p54header, 10, 2, right_angle = true)``` | Pin socket 10 x 2 right_angle |
|
||||||
|
|
||||||
|
@@ -50,7 +50,7 @@ module pin_header(type, cols = 1, rows = 1, smt = false, cutout = false) { //! D
|
|||||||
if(cutout)
|
if(cutout)
|
||||||
dogbone_rectangle([cols * pitch + 2 * panel_clearance, rows * pitch + 2 * panel_clearance, 100], center = false);
|
dogbone_rectangle([cols * pitch + 2 * panel_clearance, rows * pitch + 2 * panel_clearance, 100], center = false);
|
||||||
else
|
else
|
||||||
vitamin(str("pin_header(", type[0], cols, rows, arg(smt, false, "smt"), "): Pin header ", cols, " x ", rows));
|
vitamin(str("pin_header(", type[0], ", ", cols, ", ", rows, arg(smt, false, "smt"), "): Pin header ", cols, " x ", rows));
|
||||||
|
|
||||||
translate_z(smt ? 3.5 - h : 0) {
|
translate_z(smt ? 3.5 - h : 0) {
|
||||||
for(x = [0 : cols - 1], y = [0 : rows - 1])
|
for(x = [0 : cols - 1], y = [0 : rows - 1])
|
||||||
@@ -80,7 +80,7 @@ module box_header(type, cols = 1, rows = 1, smt = false, cutout = false) { //! D
|
|||||||
if(cutout)
|
if(cutout)
|
||||||
dogbone_rectangle([cols * pitch + 2 * panel_clearance, rows * pitch + 2 * panel_clearance, 100], center = false);
|
dogbone_rectangle([cols * pitch + 2 * panel_clearance, rows * pitch + 2 * panel_clearance, 100], center = false);
|
||||||
else
|
else
|
||||||
vitamin(str("box_header(", type[0], cols, rows, arg(smt, false, "smt"), "): Box header ", cols, " x ", rows));
|
vitamin(str("box_header(", type[0], ", ", cols, ", ", rows, arg(smt, false, "smt"), "): Box header ", cols, " x ", rows));
|
||||||
|
|
||||||
translate_z(smt ? 3.5 - h : 0) {
|
translate_z(smt ? 3.5 - h : 0) {
|
||||||
for(x = [0 : cols - 1], y = [0 : rows - 1])
|
for(x = [0 : cols - 1], y = [0 : rows - 1])
|
||||||
|
Reference in New Issue
Block a user