add label for left and right hand

This commit is contained in:
daniel
2023-07-09 23:57:15 +02:00
parent 887b6ca4d1
commit a5bbb85bbb
2 changed files with 24 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ outlines:
- ref: matrix_outer_bottom - ref: matrix_outer_bottom
shift: [-0.5px, -0.5py] shift: [-0.5px, -0.5py]
pcbs: pcbs:
left: keyboard:
outlines.main.outline: board outlines.main.outline: board
footprints: footprints:
choc_hotswap: choc_hotswap:
@@ -565,4 +565,23 @@ pcbs:
params: params:
size: 4.7 size: 4.7
drill: 4.1 drill: 4.1
left_text:
what: text
where: matrix_middle_home
params:
text: "Left Hand Front"
side: F
knockout: true
adjust:
shift: [0, 4]
rotate: 90
right_text:
what: text
where: matrix_middle_home
params:
text: "Right Hand Front"
side: B
knockout: true
adjust:
rotate: 90
shift: [0, 4]

View File

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