mirror of
https://github.com/dnlbauer/corax-keyboard.git
synced 2026-09-10 13:15:29 +00:00
add label for left and right hand
This commit is contained in:
@@ -183,7 +183,7 @@ outlines:
|
||||
- ref: matrix_outer_bottom
|
||||
shift: [-0.5px, -0.5py]
|
||||
pcbs:
|
||||
left:
|
||||
keyboard:
|
||||
outlines.main.outline: board
|
||||
footprints:
|
||||
choc_hotswap:
|
||||
@@ -565,4 +565,23 @@ pcbs:
|
||||
params:
|
||||
size: 4.7
|
||||
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]
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
module.exports = {
|
||||
params: {
|
||||
text: '',
|
||||
side: 'F'
|
||||
side: 'F',
|
||||
knockout: false
|
||||
},
|
||||
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)"} ))
|
||||
(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)"} ))
|
||||
|
||||
)
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user