add nicenano labels

This commit is contained in:
daniel
2023-07-09 22:41:04 +02:00
parent 2e931fbf78
commit d03d11ebdf

View File

@@ -25,7 +25,7 @@ module.exports = {
${p.SCL.str})
(pad 2 thru_hole oval (at 0.0 0.00 ${p.rot + 270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.VCC.str})
(pad 1 thru_hole rect (at 0.0 2.54 ${p.rot + 270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(pad 1 thru_hole oval (at 0.0 2.54 ${p.rot + 270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.GND.str})
(pad 1 thru_hole oval (at 0.0 5.08 ${p.rot + 270}) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
${p.CS.str})
@@ -37,6 +37,20 @@ module.exports = {
(fp_line (start -1.25 7) (end 34.75 7) (layer F.SilkS) (width 0.15))
(fp_line (start 34.75 7) (end 34.75 -7) (layer F.SilkS) (width 0.15))
(fp_line (start 34.75 -7) (end -1.25 -7) (layer F.SilkS) (width 0.15))
${'' /* labels */}
(fp_text user SDA (at 1.50 -5.08 ${p.rot}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify left)))
(fp_text user SCL (at 1.50 -2.54 ${p.rot}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify left)))
(fp_text user VCC (at 1.50 0.00 ${p.rot}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify left)))
(fp_text user GND (at 1.50 2.54 ${p.rot}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify left)))
(fp_text user CS (at 1.50 5.08 ${p.rot}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify left)))
(fp_text user CS (at 1.50 -5.08 ${p.rot}) (layer B.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify right mirror)))
(fp_text user GND (at 1.50 -2.54 ${p.rot}) (layer B.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify right mirror)))
(fp_text user VCC (at 1.50 0.00 ${p.rot}) (layer B.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify right mirror)))
(fp_text user SCL (at 1.50 2.54 ${p.rot}) (layer B.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify right mirror)))
(fp_text user SDA (at 1.50 5.08 ${p.rot}) (layer B.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) (justify right mirror)))
`
}
if (p.outline) {