From ee376724ac13e76b2b3de325cf2250131d3ea82d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 5 Dec 2019 16:29:25 +0100 Subject: [PATCH] footprint: fix wring pin numbering on button --- hardware/coraleda/subc/custom_BUTTON6MM.lht | 10 +++++----- hardware/library/mechanical_button_6mm.yaml | 12 +++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hardware/coraleda/subc/custom_BUTTON6MM.lht b/hardware/coraleda/subc/custom_BUTTON6MM.lht index 9cff1df..4e4b23e 100644 --- a/hardware/coraleda/subc/custom_BUTTON6MM.lht +++ b/hardware/coraleda/subc/custom_BUTTON6MM.lht @@ -1,4 +1,4 @@ -# subcircuit generated using QEDA v0.4.1 on 2019-11-28 18:28:18 +# subcircuit generated using QEDA v0.4.1 on 2019-12-05 16:01:00 li:pcb-rnd-subcircuit-v6 { ha:subc.1 { uid = custom_BUTTON6MM........ @@ -108,8 +108,8 @@ li:pcb-rnd-subcircuit-v6 { ha:padstack_ref.22 { proto = 2 rot = 0 - x = 3.250mm - y = -2.250mm + x = -3.250mm + y = 2.250mm ha:attributes { term = 2 name = 2 @@ -122,7 +122,7 @@ li:pcb-rnd-subcircuit-v6 { ha:padstack_ref.23 { proto = 2 rot = 0 - x = -3.250mm + x = 3.250mm y = 2.250mm ha:attributes { term = 3 @@ -137,7 +137,7 @@ li:pcb-rnd-subcircuit-v6 { proto = 2 rot = 0 x = 3.250mm - y = 2.250mm + y = -2.250mm ha:attributes { term = 4 name = 4 diff --git a/hardware/library/mechanical_button_6mm.yaml b/hardware/library/mechanical_button_6mm.yaml index 1a04e02..e52dbe1 100644 --- a/hardware/library/mechanical_button_6mm.yaml +++ b/hardware/library/mechanical_button_6mm.yaml @@ -4,7 +4,7 @@ keywords: mechanical, button # 1A and 1B are internally connected # 2A and 2B are internally connected -# 1A/1B are momentarily connected when the button is pressed +# 1x/2x are momentarily connected when the button is pressed pinout: 1A: 1 @@ -24,7 +24,9 @@ housing: holeDiameter: 1.0 padDiameter: 1.4 - rowCount: 2 - columnCount: 2 - verticalPitch: 4.5 - horizontalPitch: 6.5 + # this numbers the pins not as I would like + #rowCount: 2 + #columnCount: 2 + #verticalPitch: 4.5 + #horizontalPitch: 6.5 + padPosition: -3.25, -2.25, -3.25, 2.25, 3.25, 2.25, 3.25, -2.25