diff --git a/footprints/b3u1000p.js b/footprints/b3u1000p.js index fa6ffde..8fc2c33 100644 --- a/footprints/b3u1000p.js +++ b/footprints/b3u1000p.js @@ -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) diff --git a/footprints/mountinghole.js b/footprints/mountinghole.js index 22ca0bd..12bdae1 100644 --- a/footprints/mountinghole.js +++ b/footprints/mountinghole.js @@ -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)))