M chrysemys/chrysemys.yaml => chrysemys/chrysemys.yaml +7 -23
@@ 24,8 24,8 @@ points:
chocmini:
type: chocmini_with_diode
nets:
- from: "=column_net"
- to: "=row_net"
+ from: "=row_net"
+ to: "=column_net"
rotate: -angle + pinky_splay + ring_splay
columns:
pinky:
@@ 337,32 337,16 @@ pcbs:
- matrix_inner_top
- mirror_matrix_inner_top
shift: [0, -34]
- reset_rst:
- type: pad
+ reset:
+ type: two_lead_button
nets:
- net: RST
- params:
- back: false
- text: "RST"
- height: 2
- anchor:
- ref:
- - thumbfan_far_thumb
- - mirror_thumbfan_far_thumb
- shift: [-1, 2]
- reset_gnd:
- type: pad
- nets:
- net: GND
- params:
- back: false
- text: "GND"
- height: 2
+ from: RST
+ to: GND
anchor:
ref:
- thumbfan_far_thumb
- mirror_thumbfan_far_thumb
- shift: [1, 2]
+ shift: [0, 2]
power:
type: slider
nets:
A => +19 -0
@@ 0,0 1,19 @@
module.exports = {
nets: {
from: undefined,
to: undefined,
},
body: p => `
(module TwoLeadButton
(layer "F.Cu")
${p.at /* parametric position */}
(fp_text reference "B1" (at 0 0 unlocked) (layer "F.SilkS") (effects (font (size 1 1) (thickness 0.15))))
(fp_text value "Button" (at 0 2.54 unlocked) (layer "F.Fab") (effects (font (size 1 1) (thickness 0.15))))
(fp_text user "Button" (at 0 0 unlocked) (layer "F.Fab") (effects (font (size 1 1) (thickness 0.15))))
(pad "1" smd roundrect (at -2.2 0) (size 1 2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) ${p.net.from.str})
(pad "2" smd roundrect (at 2.2 0) (size 1 2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) ${p.net.to.str})
)
`
}