mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-12 16:10:04 +01:00
39 lines
No EOL
1.7 KiB
JavaScript
39 lines
No EOL
1.7 KiB
JavaScript
module.exports = {
|
|
nets: ['from', 'to'],
|
|
params: {
|
|
class: 'S'
|
|
},
|
|
body: p => `
|
|
|
|
(module PG1350 (layer F.Cu) (tedit 5DD50112)
|
|
|
|
${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))))
|
|
|
|
${''/* corner marks */}
|
|
(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))
|
|
|
|
${''/* pins */}
|
|
(pad 1 thru_hole circle (at 5 -3.8) (size 2.032 2.032) (drill 1.27) (layers *.Cu *.Mask) ${p.net.from})
|
|
(pad 2 thru_hole circle (at 0 -5.9) (size 2.032 2.032) (drill 1.27) (layers *.Cu *.Mask) ${p.net.to})
|
|
|
|
${''/* middle shaft */}
|
|
(pad "" np_thru_hole circle (at 0 0) (size 3.429 3.429) (drill 3.429) (layers *.Cu *.Mask))
|
|
|
|
${''/* stabilizers */}
|
|
(pad "" np_thru_hole circle (at 5.5 0) (size 1.7018 1.7018) (drill 1.7018) (layers *.Cu *.Mask))
|
|
(pad "" np_thru_hole circle (at -5.5 0) (size 1.7018 1.7018) (drill 1.7018) (layers *.Cu *.Mask))
|
|
)
|
|
|
|
`
|
|
} |