Added new footprints for OLEDs, jumpers, and Omron B3F-4055 switches

This commit is contained in:
tapioki 2021-07-06 20:09:50 +02:00 committed by Bán Dénes
parent a431bc44bb
commit 2f6b9ab52c
4 changed files with 83 additions and 0 deletions

26
src/footprints/oled.js Normal file
View file

@ -0,0 +1,26 @@
module.exports = {
static_nets: ['SDA', 'SCL', 'VCC', 'GND' ],
params: {
class: 'S',
side: 'F'
},
body: p => `
(module lib:OLED_headers (layer F.Cu) (tedit 5E1ADAC2)
${p.at /* parametric position */}
${'' /* footprint reference */}
(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 OLED (at 0 -7.3) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))))
${'' /* 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})
(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})
(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})
(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})
)
`
}