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,12 @@
module.exports = {
static_nets: ['SDA', 'SCL', 'VCC', 'GND' ],
nets: {
SDA: undefined,
SCL: undefined,
VCC: 'VCC',
GND: 'GND'
},
params: {
class: 'S',
class: 'OLED',
side: 'F'
},
body: p => `
@ -14,13 +19,13 @@ module.exports = {
${'' /* pins */}
(pad 4 thru_hole oval (at 1.6 2.18 ${p.rot+270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.net.SDA})
${p.net.SDA.str})
(pad 3 thru_hole oval (at 1.6 4.72 ${p.rot+270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.net.SCL})
${p.net.SCL.str})
(pad 2 thru_hole oval (at 1.6 7.26 ${p.rot+270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.net.VCC})
${p.net.VCC.str})
(pad 1 thru_hole rect (at 1.6 9.8 ${p.rot+270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.net.GND})
${p.net.GND.str})
)
`
}