mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-13 00:20:06 +01:00
Added new footprints for OLEDs, jumpers, and Omron B3F-4055 switches
This commit is contained in:
parent
a431bc44bb
commit
2f6b9ab52c
4 changed files with 83 additions and 0 deletions
33
src/footprints/omron.js
Normal file
33
src/footprints/omron.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
module.exports = {
|
||||
nets: ['from', 'to'],
|
||||
params: {
|
||||
class: 'B' // for Button,
|
||||
},
|
||||
body: p => `
|
||||
|
||||
(module OMRON_B3F-4055 (layer F.Cu) (tstamp 5BF2CC94)
|
||||
|
||||
${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 "" (at 0 0) (layer F.SilkS) hide (effects (font (size 1.27 1.27) (thickness 0.15))))
|
||||
|
||||
${'' /* stabilizers */}
|
||||
(pad "" np_thru_hole circle (at 0 -4.5) (size 1.8 1.8) (drill 1.8) (layers *.Cu *.Mask))
|
||||
(pad "" np_thru_hole circle (at 0 4.5) (size 1.8 1.8) (drill 1.8) (layers *.Cu *.Mask))
|
||||
|
||||
${'' /* switch marks */}
|
||||
(fp_line (start -6 -6) (end 6 -6) (layer Dwgs.User) (width 0.15))
|
||||
(fp_line (start 6 -6) (end 6 6) (layer Dwgs.User) (width 0.15))
|
||||
(fp_line (start 6 6) (end -6 6) (layer Dwgs.User) (width 0.15))
|
||||
(fp_line (start -6 6) (end -6 -6) (layer Dwgs.User) (width 0.15))
|
||||
|
||||
${'' /* pins */}
|
||||
(pad 1 np_thru_hole circle (at 6.25 -2.5) (size 1.2 1.2) (drill 1.2) (layers *.Cu *.Mask) ${p.net.from})
|
||||
(pad 2 np_thru_hole circle (at -6.25 -2.5) (size 1.2 1.2) (drill 1.2) (layers *.Cu *.Mask) ${p.net.from})
|
||||
(pad 3 np_thru_hole circle (at 6.25 2.5) (size 1.2 1.2) (drill 1.2) (layers *.Cu *.Mask) ${p.net.to})
|
||||
(pad 4 np_thru_hole circle (at -6.25 2.5 ) (size 1.2 1.2) (drill 1.2) (layers *.Cu *.Mask) ${p.net.to})
|
||||
)
|
||||
|
||||
`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue