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,9 +1,11 @@
// Via
// Nets
// from: the net this via should be connected to
// net: the net this via should be connected to
module.exports = {
nets: ['from'],
nets: {
net: undefined
},
body: p => `
(module VIA-0.6mm (layer F.Cu) (tedit 591DBFB0)
${p.at /* parametric position */}
@ -12,7 +14,7 @@ module.exports = {
(fp_text value VIA-0.6mm (at 0 -1.4) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))))
${'' /* via */}
(pad 1 thru_hole circle (at 0 0) (size 0.6 0.6) (drill 0.3) (layers *.Cu) (zone_connect 2) ${p.net.from})
(pad 1 thru_hole circle (at 0 0) (size 0.6 0.6) (drill 0.3) (layers *.Cu) (zone_connect 2) ${p.net.net.str})
)
`
}