2020-07-20 23:17:43 +02:00
|
|
|
module.exports = {
|
|
|
|
|
nets: ['pos', 'neg'],
|
|
|
|
|
params: {
|
2020-07-21 19:35:33 +02:00
|
|
|
class: 'J',
|
2020-07-20 23:17:43 +02:00
|
|
|
side: 'F'
|
|
|
|
|
},
|
|
|
|
|
body: p => `
|
|
|
|
|
|
|
|
|
|
(module JST_PH_S2B-PH-K_02x2.00mm_Angled (layer F.Cu) (tedit 58D3FE32)
|
|
|
|
|
|
|
|
|
|
(descr "JST PH series connector, S2B-PH-K, side entry type, through hole, Datasheet: http://www.jst-mfg.com/product/pdf/eng/ePH.pdf")
|
|
|
|
|
(tags "connector jst ph")
|
|
|
|
|
|
|
|
|
|
${p.at /* parametric position */}
|
|
|
|
|
|
2020-07-21 19:35:33 +02:00
|
|
|
${'' /* footprint reference */}
|
2020-07-24 21:04:07 +02:00
|
|
|
(fp_text reference "${p.ref}" (at 0 0) (layer F.SilkS) ${p.ref_hide} (effects (font (size 1.27 1.27) (thickness 0.15))))
|
|
|
|
|
(fp_text value "" (at 0 0) (layer F.SilkS) hide (effects (font (size 1.27 1.27) (thickness 0.15))))
|
2020-07-20 23:17:43 +02:00
|
|
|
|
2020-07-21 19:35:33 +02:00
|
|
|
(fp_line (start -2.25 0.25) (end -2.25 -1.35) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start -2.25 -1.35) (end -2.95 -1.35) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start -2.95 -1.35) (end -2.95 6.25) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start -2.95 6.25) (end 2.95 6.25) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start 2.95 6.25) (end 2.95 -1.35) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start 2.95 -1.35) (end 2.25 -1.35) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start 2.25 -1.35) (end 2.25 0.25) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start 2.25 0.25) (end -2.25 0.25) (layer ${p.param.side}.SilkS) (width 0.15))
|
2020-07-20 23:17:43 +02:00
|
|
|
|
2020-07-21 19:35:33 +02:00
|
|
|
(fp_line (start -1 1.5) (end -1 2.0) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
(fp_line (start -1.25 1.75) (end -0.75 1.75) (layer ${p.param.side}.SilkS) (width 0.15))
|
|
|
|
|
|
|
|
|
|
(pad 1 thru_hole rect (at -1 0 ${p.rot}) (size 1.2 1.7) (drill 0.75) (layers *.Cu *.Mask) ${p.net.pos})
|
|
|
|
|
(pad 2 thru_hole oval (at 1 0 ${p.rot}) (size 1.2 1.7) (drill 0.75) (layers *.Cu *.Mask) ${p.net.neg})
|
2020-07-20 23:17:43 +02:00
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|