Added new switch footprints, updated reversibility functionality, integrated hotswap footprints, added orientation to promicro, alphabetized index, and added net and paramter documentation

This commit is contained in:
tapioki 2021-05-23 23:13:17 +02:00 committed by Bán Dénes
parent 3e78e6e557
commit 1ff7e0746e
13 changed files with 483 additions and 377 deletions

View file

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