ergogen/src/footprints/mx.js

39 lines
1.7 KiB
JavaScript
Raw Normal View History

2020-07-12 23:23:30 +02:00
module.exports = {
2020-07-14 23:03:44 +02:00
nets: ['from', 'to'],
2020-07-21 19:35:33 +02:00
params: {
class: 'S'
},
2020-07-18 22:58:44 +02:00
body: p => `
2020-07-12 23:23:30 +02:00
(module MX (layer F.Cu) (tedit 5DD4F656)
2020-07-18 22:58:44 +02:00
${p.at /* parametric position */}
2020-07-12 23:23:30 +02:00
2020-07-21 19:35:33 +02:00
${'' /* 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))))
2020-07-21 19:35:33 +02:00
2020-07-12 23:23:30 +02:00
${''/* corner marks */}
2020-07-20 23:17:43 +02:00
(fp_line (start -7 -6) (end -7 -7) (layer Dwgs.User) (width 0.15))
(fp_line (start -7 7) (end -6 7) (layer Dwgs.User) (width 0.15))
(fp_line (start -6 -7) (end -7 -7) (layer Dwgs.User) (width 0.15))
(fp_line (start -7 7) (end -7 6) (layer Dwgs.User) (width 0.15))
(fp_line (start 7 6) (end 7 7) (layer Dwgs.User) (width 0.15))
(fp_line (start 7 -7) (end 6 -7) (layer Dwgs.User) (width 0.15))
(fp_line (start 6 7) (end 7 7) (layer Dwgs.User) (width 0.15))
(fp_line (start 7 -7) (end 7 -6) (layer Dwgs.User) (width 0.15))
2020-07-12 23:23:30 +02:00
${''/* pins */}
2020-07-21 19:35:33 +02:00
(pad 1 thru_hole circle (at 2.54 -5.08) (size 2.286 2.286) (drill 1.4986) (layers *.Cu *.Mask) ${p.net.from})
(pad 2 thru_hole circle (at -3.81 -2.54) (size 2.286 2.286) (drill 1.4986) (layers *.Cu *.Mask) ${p.net.to})
2020-07-12 23:23:30 +02:00
${''/* middle shaft */}
(pad "" np_thru_hole circle (at 0 0) (size 3.9878 3.9878) (drill 3.9878) (layers *.Cu *.Mask))
${''/* stabilizers */}
(pad "" np_thru_hole circle (at 5.08 0) (size 1.7018 1.7018) (drill 1.7018) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at -5.08 0) (size 1.7018 1.7018) (drill 1.7018) (layers *.Cu *.Mask))
)
`
}