mirror of
https://github.com/dnlbauer/corax-keyboard.git
synced 2026-09-10 21:25:29 +00:00
reset
This commit is contained in:
@@ -279,8 +279,16 @@ pcbs:
|
|||||||
what: battery
|
what: battery
|
||||||
where: mcu
|
where: mcu
|
||||||
adjust:
|
adjust:
|
||||||
shift: [-16.9, 0]
|
shift: [-17, 0]
|
||||||
params:
|
params:
|
||||||
RAW: switch_from
|
RAW: switch_from
|
||||||
|
reset:
|
||||||
|
what: reset
|
||||||
|
where: mcu
|
||||||
|
params:
|
||||||
|
from: GND
|
||||||
|
to: RST
|
||||||
|
adjust:
|
||||||
|
shift: [27, 8]
|
||||||
|
rotate: 180
|
||||||
|
|
||||||
|
|||||||
55
ergogen/footprints/reset.js
Normal file
55
ergogen/footprints/reset.js
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
module.exports = {
|
||||||
|
params: {
|
||||||
|
class: "B", // for Button
|
||||||
|
side: "F",
|
||||||
|
from: undefined,
|
||||||
|
to: undefined
|
||||||
|
},
|
||||||
|
body: (p) => `
|
||||||
|
(module kbd:ResetSW (layer F.Cu) (tedit 5B9559E6)
|
||||||
|
|
||||||
|
(descr "Two pin through hole Tactile Switch, the same as on the Corne")
|
||||||
|
(tags "Tactile Switch")
|
||||||
|
|
||||||
|
${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))))
|
||||||
|
|
||||||
|
${"" /* outline */}
|
||||||
|
(fp_text user RESET (at 0 0 ${
|
||||||
|
p.rot
|
||||||
|
}) (layer F.SilkS) (effects (font (size 1 1) (thickness 0.15))))
|
||||||
|
(fp_text user RESET (at 0.127 0 ${
|
||||||
|
p.rot
|
||||||
|
}) (layer B.SilkS) (effects (font (size 1 1) (thickness 0.15)) (justify mirror)))
|
||||||
|
|
||||||
|
(fp_line (start 3 1.5) (end 3 1.75) (layer B.SilkS) (width 0.15))
|
||||||
|
(fp_line (start 3 1.75) (end -3 1.75) (layer B.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 1.75) (end -3 1.5) (layer B.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 -1.5) (end -3 -1.75) (layer B.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 -1.75) (end 3 -1.75) (layer B.SilkS) (width 0.15))
|
||||||
|
(fp_line (start 3 -1.75) (end 3 -1.5) (layer B.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 1.75) (end 3 1.75) (layer F.SilkS) (width 0.15))
|
||||||
|
(fp_line (start 3 1.75) (end 3 1.5) (layer F.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 1.75) (end -3 1.5) (layer F.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 -1.75) (end -3 -1.5) (layer F.SilkS) (width 0.15))
|
||||||
|
(fp_line (start -3 -1.75) (end 3 -1.75) (layer F.SilkS) (width 0.15))
|
||||||
|
(fp_line (start 3 -1.75) (end 3 -1.5) (layer F.SilkS) (width 0.15))
|
||||||
|
|
||||||
|
${"" /* pins */}
|
||||||
|
(pad 2 thru_hole circle (at -3.25 0 ${
|
||||||
|
p.rot
|
||||||
|
}) (size 2 2) (drill 1.3) (layers *.Cu *.Mask F.SilkS) ${
|
||||||
|
p.from.str
|
||||||
|
})
|
||||||
|
(pad 1 thru_hole circle (at 3.25 0 ${
|
||||||
|
p.rot
|
||||||
|
}) (size 2 2) (drill 1.3) (layers *.Cu *.Mask F.SilkS) ${
|
||||||
|
p.to.str
|
||||||
|
})
|
||||||
|
)
|
||||||
|
`
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user