From 39c11ef3b209256be393b3b211fef72c8ac793a1 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 7 Jun 2021 17:31:44 +0100 Subject: [PATCH] Added 2p54joiner to represent cropped headers joining PCBs. --- vitamins/pcb.scad | 1 + vitamins/pin_headers.scad | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/vitamins/pcb.scad b/vitamins/pcb.scad index 4a1a202..aaeb670 100644 --- a/vitamins/pcb.scad +++ b/vitamins/pcb.scad @@ -919,6 +919,7 @@ module pcb_component(comp, cutouts = false, angle = undef) { //! Draw pcb compon rotate(comp.z) { // Components that have a cutout parameter go in this section if(show(comp, "2p54header")) pin_header(2p54header, comp[4], comp[5], param(6, false), param(8, false), cutouts, colour = param(7, undef)); + if(show(comp, "2p54joiner")) pin_header(2p54joiner, comp[4], comp[5], param(6, false), param(8, false), cutouts, colour = param(7, undef)); if(show(comp, "2p54boxhdr")) box_header(2p54header, comp[4], comp[5], param(6, false), cutouts); if(show(comp, "2p54socket")) pin_socket(2p54header, comp[4], comp[5], param(6, false), param(7, 0), param(8, false), cutouts, param(9, undef)); if(show(comp, "chip")) chip(comp[4], comp[5], comp[6], param(7, grey(30)), cutouts); diff --git a/vitamins/pin_headers.scad b/vitamins/pin_headers.scad index 97d2421..adf9b93 100644 --- a/vitamins/pin_headers.scad +++ b/vitamins/pin_headers.scad @@ -17,16 +17,18 @@ // If not, see . // -// p p b p p b s b b p r r -// i i e i i a o o o i a a -// t n l n n s c x x n -// c o e k b h -// h l w w c s t y -// c h z o +// p p b p p b s b b p r r +// i i e i i a o o o i a a +// t n l n n s c x x n +// c o e k b h +// h l w w c s t y +// c h z o // f -2p54header = ["2p54header", 2.54, 11.6, 3.2, 0.66, "gold", grey(20), 8.5, [0, 0, 8.7], 2.4, 0, 0, 0 ]; -jst_xh_header = ["jst_xh_header",2.5, 10, 3.4, 0.64, "gold", grey(90), 0, [4.9, 5.75, 7], 0.8, 0.525, 0.6, 6.1]; -jst_ph_header = ["jst_ph_header",2.0, 9, 3.4, 0.64, silver, grey(90), 0, [3.9, 4.5, 6], 0.6, 0.55, 0.25, 4.8]; +2p54header = ["2p54header", 2.54, 11.6, 3.2, 0.66, gold, grey(20), 8.5, [0, 0, 8.7], 2.4, 0, 0, 0 ]; +2p54joiner = ["2p54joiner", 2.54, 6.86, 2.5, 0.66, gold, grey(20), 8.5, [0, 0, 8.7], 2.4, 0, 0, 0 ]; // Cropped pins for joining PCBs + +jst_xh_header = ["jst_xh_header",2.5, 10, 3.4, 0.64, gold, grey(90), 0, [4.9, 5.75, 7], 0.8, 0.525, 0.6, 6.1]; +jst_ph_header = ["jst_ph_header",2.0, 9, 3.4, 0.64, silver, grey(90), 0, [3.9, 4.5, 6], 0.6, 0.55, 0.25, 4.8]; pin_headers = [ 2p54header ];