text saying where to solder

This commit is contained in:
daniel
2023-07-09 23:48:54 +02:00
parent ab167a2a24
commit 887b6ca4d1
2 changed files with 33 additions and 0 deletions

View File

@@ -273,6 +273,22 @@ pcbs:
P7: col2
P8: col3
P9: col4
jumper_text_f:
what: text
where: mcu
params:
side: "F"
text: "Solder this side &\\nPlace Nice!Nano face down."
adjust:
rotate: 90
jumper_text_b:
what: text
where: mcu
params:
side: "B"
text: "Solder this side &\\nPlace Nice!Nano face down."
adjust:
rotate: 90
jumper_f_raw:
what: jumper
where: mcu

View File

@@ -0,0 +1,17 @@
module.exports = {
params: {
text: '',
side: 'F'
},
body: p => `
(module lib:text (layer F.Cu) (tedit 648E0265)
${p.at /* parametric position */}
(fp_text user "${p.text}" (at 0 0 ${p.rot + 90}) (layer ${p.side}.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15)) ${p.side === 'F' ? "" : "(justify mirror)"} ))
)
`
}