From bb2fc9e9230cffa4cbe36fa3307e4941c368d206 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Thu, 7 Apr 2022 21:25:24 +0300
Subject: [PATCH] Fix Conn_PinHeader_SWD_2x02_P2.54mm_Vertical_SMD according to
 KLC

---
 fab.kicad_sym | 90 +++++++++++++++++++++++++--------------------------
 1 file changed, 45 insertions(+), 45 deletions(-)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index 73f6e47..18760bf 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -2546,51 +2546,6 @@
       )
     )
   )
-  (symbol "Conn_PinHeader_2x02_SWD_P2.54mm_Vertical_SMD" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
-    (property "Reference" "J" (id 0) (at -6.35 7.62 0)
-      (effects (font (size 1.27 1.27)) (justify left bottom))
-    )
-    (property "Value" "Conn_PinHeader_2x02_SWD_P2.54mm_Vertical_SMD" (id 1) (at -6.35 5.08 0)
-      (effects (font (size 1.27 1.27)) (justify left bottom))
-    )
-    (property "Footprint" "fab:PinHeader_2x02_SWD_P2.54mm_Vertical_SMD" (id 2) (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "Datasheet" "https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/95278.pdf" (id 3) (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "ki_keywords" "connector swd programming jtag" (id 4) (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "ki_description" "Connector Header Surface Mount 4 position 0.100\" (2.54mm) for programming D11C chips" (id 5) (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "ki_fp_filters" "Connector*:*_2x??_*" (id 6) (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (symbol "Conn_PinHeader_2x02_SWD_P2.54mm_Vertical_SMD_1_1"
-      (rectangle (start -6.35 3.81) (end 6.35 -3.81)
-        (stroke (width 0.254) (type default) (color 0 0 0 0))
-        (fill (type background))
-      )
-      (pin passive line (at -10.16 1.27 0) (length 3.81)
-        (name "GND" (effects (font (size 1.27 1.27))))
-        (number "1" (effects (font (size 1.27 1.27))))
-      )
-      (pin passive line (at 10.16 1.27 180) (length 3.81)
-        (name "RST" (effects (font (size 1.27 1.27))))
-        (number "2" (effects (font (size 1.27 1.27))))
-      )
-      (pin passive line (at -10.16 -1.27 0) (length 3.81)
-        (name "DIO" (effects (font (size 1.27 1.27))))
-        (number "3" (effects (font (size 1.27 1.27))))
-      )
-      (pin passive line (at 10.16 -1.27 180) (length 3.81)
-        (name "CLK" (effects (font (size 1.27 1.27))))
-        (number "4" (effects (font (size 1.27 1.27))))
-      )
-    )
-  )
   (symbol "Conn_PinHeader_2x03_P2.54mm_Vertical_SMD" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
     (property "Reference" "J" (id 0) (at 1.27 5.08 0)
       (effects (font (size 1.27 1.27)))
@@ -2979,6 +2934,51 @@
       )
     )
   )
+  (symbol "Conn_PinHeader_SWD_2x02_P2.54mm_Vertical_SMD" (in_bom yes) (on_board yes)
+    (property "Reference" "J" (id 0) (at -3.81 5.08 0)
+      (effects (font (size 1.27 1.27)) (justify left))
+    )
+    (property "Value" "Conn_PinHeader_SWD_2x02_P2.54mm_Vertical_SMD" (id 1) (at 0 5.08 0)
+      (effects (font (size 1.27 1.27)) (justify left))
+    )
+    (property "Footprint" "fab:PinHeader_2x02_P2.54mm_Vertical_SMD" (id 2) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "Datasheet" "https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/95278.pdf" (id 3) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_keywords" "connector swd programming jtag" (id 4) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_description" "Connector Header Surface Mount 4 position 0.100\" (2.54mm) for programming D11C chips" (id 5) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_fp_filters" "*PinHeader*2x02*" (id 6) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "Conn_PinHeader_SWD_2x02_P2.54mm_Vertical_SMD_1_1"
+      (rectangle (start -3.81 3.81) (end 3.81 -3.81)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (fill (type background))
+      )
+      (pin power_in line (at 2.54 -7.62 90) (length 3.81)
+        (name "GND" (effects (font (size 1.27 1.27))))
+        (number "1" (effects (font (size 1.27 1.27))))
+      )
+      (pin input line (at -7.62 2.54 0) (length 3.81)
+        (name "RST" (effects (font (size 1.27 1.27))))
+        (number "2" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -7.62 -2.54 0) (length 3.81)
+        (name "DIO" (effects (font (size 1.27 1.27))))
+        (number "3" (effects (font (size 1.27 1.27))))
+      )
+      (pin input line (at -7.62 0 0) (length 3.81)
+        (name "CLK" (effects (font (size 1.27 1.27))))
+        (number "4" (effects (font (size 1.27 1.27))))
+      )
+    )
+  )
   (symbol "Conn_PinHeader_UPDI_1x02_P2.54mm_Horizontal_SMD" (in_bom yes) (on_board yes)
     (property "Reference" "J" (id 0) (at -3.81 5.08 0)
       (effects (font (size 1.27 1.27)) (justify left))
-- 
GitLab