From 6c7b81eef5afe8d94c41fdf0f3ff9b032394ec51 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Fri, 22 Apr 2022 17:52:08 +0300
Subject: [PATCH] Fine-tune UPDI 2-pin socket symbol

---
 fab.kicad_sym | 58 ++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 46 insertions(+), 12 deletions(-)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index 9df7346..682251f 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -3015,11 +3015,11 @@
     )
   )
   (symbol "Conn_PinSocket_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))
+    (property "Reference" "J" (id 0) (at 0 3.81 0)
+      (effects (font (size 1.27 1.27)))
     )
-    (property "Value" "Conn_PinSocket_UPDI_1x02_P2.54mm_Horizontal_SMD" (id 1) (at 0 5.08 0)
-      (effects (font (size 1.27 1.27)) (justify left))
+    (property "Value" "Conn_PinSocket_UPDI_1x02_P2.54mm_Horizontal_SMD" (id 1) (at 0 -3.81 0)
+      (effects (font (size 1.27 1.27)))
     )
     (property "Footprint" "fab:PinSocket_1x02_P2.54mm_Horizontal_SMD" (id 2) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
@@ -3036,19 +3036,53 @@
     (property "ki_fp_filters" "*PinSocket*1x02*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "Conn_PinSocket_UPDI_1x02_P2.54mm_Horizontal_SMD_0_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))
+    (symbol "Conn_PinSocket_UPDI_1x02_P2.54mm_Horizontal_SMD_0_0"
+      (polyline
+        (pts
+          (xy 3.81 -1.27)
+          (xy 4.064 -1.524)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy 3.81 -1.27)
+          (xy 4.064 -1.016)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy 3.81 1.27)
+          (xy 4.064 1.016)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy 3.81 1.27)
+          (xy 4.064 1.524)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (text "GND" (at 4.445 1.27 0)
+        (effects (font (size 1 1)) (justify left))
+      )
+      (text "UPDI" (at 4.445 -1.27 0)
+        (effects (font (size 1 1)) (justify left))
       )
     )
     (symbol "Conn_PinSocket_UPDI_1x02_P2.54mm_Horizontal_SMD_1_1"
-      (pin power_in line (at 0 -7.62 90) (length 3.81)
-        (name "GND" (effects (font (size 1.27 1.27))))
+      (pin passive line (at 0 1.27 0) (length 3.81)
+        (name "" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
       )
-      (pin passive line (at -7.62 2.54 0) (length 3.81)
-        (name "UPDI" (effects (font (size 1.27 1.27))))
+      (pin passive line (at 0 -1.27 0) (length 3.81)
+        (name "" (effects (font (size 1.27 1.27))))
         (number "2" (effects (font (size 1.27 1.27))))
       )
     )
-- 
GitLab