mirror of
https://github.com/dnlbauer/corax-keyboard.git
synced 2026-09-10 13:15:29 +00:00
switch and battery connection
This commit is contained in:
@@ -264,4 +264,23 @@ pcbs:
|
||||
side: 'F'
|
||||
SDA: SDA
|
||||
SCL: SCL
|
||||
CS: CS
|
||||
CS: CS
|
||||
slider:
|
||||
what: slider
|
||||
where: mcu
|
||||
adjust:
|
||||
shift: [-17.1, 0]
|
||||
rotate: 90
|
||||
params:
|
||||
side: B
|
||||
from: switch_from
|
||||
to: RAW
|
||||
battery:
|
||||
what: battery
|
||||
where: mcu
|
||||
adjust:
|
||||
shift: [-16.9, 0]
|
||||
params:
|
||||
RAW: switch_from
|
||||
|
||||
|
||||
|
||||
23
ergogen/footprints/battery.js
Normal file
23
ergogen/footprints/battery.js
Normal file
@@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
params: {
|
||||
designator: 'Battery',
|
||||
RAW: { type: 'net', value: 'RAW' },
|
||||
GND: { type: 'net', value: 'GND' },
|
||||
},
|
||||
body: p => `
|
||||
(module lib:niceview_headers (layer F.Cu) (tedit 648E0265)
|
||||
|
||||
${p.at /* parametric position */}
|
||||
|
||||
${''/* pin names */}
|
||||
(fp_text user + (at 0 6.3 ${p.rot + 90}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))))
|
||||
(fp_text user - (at 0 -6.3 ${p.rot + 90}) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))))
|
||||
|
||||
${''/* pins */}
|
||||
(pad 1 thru_hole rect (at 0 7.75 ${p.rot}) (size 1.4 1.4) (drill 0.8) (layers *.Cu *.SilkS *.Mask) ${p.RAW.str})
|
||||
(pad 2 thru_hole circle (at 0 -7.75 ${p.rot}) (size 1.4 1.4) (drill 0.8) (layers *.Cu *.SilkS *.Mask) ${p.GND.str})
|
||||
)
|
||||
`
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user