Update footprints to match new structure

This commit is contained in:
Bán Dénes 2021-07-11 21:04:41 +02:00
parent fe30b91309
commit c12e8d288e
18 changed files with 240 additions and 162 deletions

View file

@ -1,7 +1,10 @@
module.exports = {
nets: ['pos', 'neg'],
nets: {
pos: undefined,
neg: undefined
},
params: {
class: 'J',
class: 'JST',
side: 'F'
},
body: p => `
@ -29,8 +32,8 @@ module.exports = {
(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})
(pad 1 thru_hole rect (at -1 0 ${p.rot}) (size 1.2 1.7) (drill 0.75) (layers *.Cu *.Mask) ${p.net.pos.str})
(pad 2 thru_hole oval (at 1 0 ${p.rot}) (size 1.2 1.7) (drill 0.75) (layers *.Cu *.Mask) ${p.net.neg.str})
)