updated designator in footprints

This commit is contained in:
Emily Zeng 2023-11-11 16:45:03 -05:00
parent 0a15c27450
commit 369cbf48b1
2 changed files with 6 additions and 4 deletions

View File

@ -1,15 +1,17 @@
module.exports = {
params: {
designator: 'S', // for switch
designator: 'B', // for Button
r1: {type: 'net', value: 'GND'},
r2: {type: 'net', value: 'RST'},
class: 'S',
reverse: true
},
body: p => {
const standard = `
(module Button_Switch_SMD:SW_SPST_B3U-1000P (layer F.Cu) (tedit 5A02FC95)
${p.at /* parametric position */}
${'' /* footprint reference */}
(fp_text reference "${p.ref}" (at 0 2.55) (layer F.SilkS) ${p.ref_hide} (effects (font (size 1 1) (thickness 0.15))))
(fp_text value "" (at 0 -2.55) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))))
(descr "Ultra-small-sized Tactile Switch with High Contact Reliability, Top-actuated Model, without Ground Terminal, without Boss")
(tags "Tactile Switch")
(attr smd)

View File

@ -5,13 +5,13 @@ module.exports = {
net: undefined
},
params: {
class: 'HOLE',
designator: 'HOLE',
class: 'HOLE',
},
body: p => `
(module "MountingHole_2.2mm_M2_Pad_Via" (version 20210722) (generator pcbnew) (layer "F.Cu")
(tedit 56DDB9C7)
${p.at /* parametric position */}
${p.at /* parametric position */}
(fp_text reference "${p.ref}" (at 0 -3.2) (layer "F.SilkS") ${p.ref_hide}
(effects (font (size 1 1) (thickness 0.15)))