mirror of
https://github.com/dnlbauer/corax-keyboard.git
synced 2026-09-10 21:25:29 +00:00
use vias for diodes
This commit is contained in:
@@ -189,12 +189,11 @@ pcbs:
|
|||||||
where: switch
|
where: switch
|
||||||
params:
|
params:
|
||||||
keycaps: true
|
keycaps: true
|
||||||
reverse: true
|
reverse: false
|
||||||
hotswap: true
|
hotswap: true
|
||||||
from: "{{column_net}}"
|
from: "{{column_net}}"
|
||||||
to: "{{colrow}}"
|
to: "{{colrow}}"
|
||||||
diode:
|
diode:
|
||||||
# TODO diode without throughhole?
|
|
||||||
what: diode
|
what: diode
|
||||||
where: [switch]
|
where: [switch]
|
||||||
params:
|
params:
|
||||||
@@ -212,7 +211,6 @@ pcbs:
|
|||||||
C: ENCA
|
C: ENCA
|
||||||
D: undefined
|
D: undefined
|
||||||
scroll_diode:
|
scroll_diode:
|
||||||
# TODO diode without throughhole
|
|
||||||
what: diode
|
what: diode
|
||||||
where: [scrollwheel]
|
where: [scrollwheel]
|
||||||
params:
|
params:
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ module.exports = {
|
|||||||
params: {
|
params: {
|
||||||
designator: 'D',
|
designator: 'D',
|
||||||
from: undefined,
|
from: undefined,
|
||||||
to: undefined,
|
to: undefined
|
||||||
thru_holes: false
|
|
||||||
},
|
},
|
||||||
body: p => `
|
body: p => `
|
||||||
|
|
||||||
@@ -38,14 +37,10 @@ module.exports = {
|
|||||||
(pad 1 smd rect (at -1.65 0 ${p.rot}) (size 0.9 1.2) (layers B.Cu B.Paste B.Mask) ${p.to.str})
|
(pad 1 smd rect (at -1.65 0 ${p.rot}) (size 0.9 1.2) (layers B.Cu B.Paste B.Mask) ${p.to.str})
|
||||||
(pad 2 smd rect (at 1.65 0 ${p.rot}) (size 0.9 1.2) (layers F.Cu F.Paste F.Mask) ${p.from.str})
|
(pad 2 smd rect (at 1.65 0 ${p.rot}) (size 0.9 1.2) (layers F.Cu F.Paste F.Mask) ${p.from.str})
|
||||||
|
|
||||||
${p.thru_holes === false
|
${''/* vias */}
|
||||||
? ""
|
(pad 1 thru_hole circle (at -0.75 0 ${p.rot}) (size 0.6 0.6) (drill 0.3) (layers *.Cu *.Mask) ${p.to.str})
|
||||||
: `
|
(pad 2 thru_hole circle (at 0.75 0 ${p.rot}) (size 0.6 0.6) (drill 0.3) (layers *.Cu *.Mask) ${p.from.str})
|
||||||
${''/* THT terminals */}
|
|
||||||
(pad 1 thru_hole rect (at -3.81 0 ${p.rot}) (size 1.778 1.778) (drill 0.9906) (layers *.Cu *.Mask) ${p.to.str})
|
|
||||||
(pad 2 thru_hole circle (at 3.81 0 ${p.rot}) (size 1.905 1.905) (drill 0.9906) (layers *.Cu *.Mask) ${p.from.str})
|
|
||||||
`}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user