From 23ae9b8fa735085f641b5bade359c81aadaf6123 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Sat, 14 Jan 2023 12:29:48 +0100
Subject: [PATCH] Update XIAO-RP2040 symbol to use the generic Seed Studio XIAO
 footprint

---
 fab.kicad_sym                                 | 116 +++++++++++++++---
 ...40.kicad_mod => SeedStudio_XIAO.kicad_mod} |   8 +-
 2 files changed, 105 insertions(+), 19 deletions(-)
 rename fab.pretty/{XIAO-RP2040.kicad_mod => SeedStudio_XIAO.kicad_mod} (95%)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index 36544e5..3d35ab5 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -8351,6 +8351,90 @@
       )
     )
   )
+  (symbol "Module_XIAO-ESP32C3" (in_bom yes) (on_board yes)
+    (property "Reference" "M" (id 0) (at 0 0 0)
+      (effects (font (size 1.27 1.27)))
+    )
+    (property "Value" "Module_XIAO-ESP32C3" (id 1) (at 0 2.54 0)
+      (effects (font (size 1.27 1.27)))
+    )
+    (property "Footprint" "fab:SeedStudio_XIAO" (id 2) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "Datasheet" "https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/" (id 3) (at -2.54 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_keywords" "SEEED STUDIO XIAO ESP32C3 WIFI+B" (id 4) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_description" "- ESP32-C3 Transceiver; 802.11 a/b/g/n (Wi-Fi, WiFi, WLAN), Bluetooth® Smart 4.x Low Energy (BLE) 2.4GHz Evaluation Board" (id 5) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "Module_XIAO-ESP32C3_0_1"
+      (rectangle (start -10.16 15.24) (end 10.16 -15.24)
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type background))
+      )
+    )
+    (symbol "Module_XIAO-ESP32C3_1_1"
+      (pin bidirectional line (at -12.7 12.7 0) (length 2.54)
+        (name "D0" (effects (font (size 1.27 1.27))))
+        (number "1" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 -10.16 0) (length 2.54)
+        (name "D9" (effects (font (size 1.27 1.27))))
+        (number "10" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 -12.7 0) (length 2.54)
+        (name "D10" (effects (font (size 1.27 1.27))))
+        (number "11" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 2.54 17.78 270) (length 2.54)
+        (name "3V3" (effects (font (size 1.27 1.27))))
+        (number "12" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 0 -22.86 90) (length 2.54)
+        (name "GND" (effects (font (size 1.27 1.27))))
+        (number "13" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 0 17.78 270) (length 2.54)
+        (name "VUSB" (effects (font (size 1.27 1.27))))
+        (number "14" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 10.16 0) (length 2.54)
+        (name "D1" (effects (font (size 1.27 1.27))))
+        (number "2" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 7.62 0) (length 2.54)
+        (name "D2" (effects (font (size 1.27 1.27))))
+        (number "3" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 5.08 0) (length 2.54)
+        (name "D3" (effects (font (size 1.27 1.27))))
+        (number "4" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 2.54 0) (length 2.54)
+        (name "D4" (effects (font (size 1.27 1.27))))
+        (number "5" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 0 0) (length 2.54)
+        (name "D5" (effects (font (size 1.27 1.27))))
+        (number "6" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 -2.54 0) (length 2.54)
+        (name "D6" (effects (font (size 1.27 1.27))))
+        (number "7" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 -5.08 0) (length 2.54)
+        (name "D7" (effects (font (size 1.27 1.27))))
+        (number "8" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -12.7 -7.62 0) (length 2.54)
+        (name "D8" (effects (font (size 1.27 1.27))))
+        (number "9" (effects (font (size 1.27 1.27))))
+      )
+    )
+  )
   (symbol "Module_XIAO-RP2040" (in_bom yes) (on_board yes)
     (property "Reference" "M" (id 0) (at 0 0 0)
       (effects (font (size 1.27 1.27)))
@@ -8358,7 +8442,7 @@
     (property "Value" "Module_XIAO-RP2040" (id 1) (at 0 2.54 0)
       (effects (font (size 1.27 1.27)))
     )
-    (property "Footprint" "fab:XIAO-RP2040" (id 2) (at 0 0 0)
+    (property "Footprint" "fab:SeedStudio_XIAO" (id 2) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (property "Datasheet" "https://wiki.seeedstudio.com/XIAO-RP2040/" (id 3) (at 0 0 0)
@@ -8371,65 +8455,65 @@
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Module_XIAO-RP2040_0_1"
-      (rectangle (start -12.7 10.16) (end 13.97 -10.16)
+      (rectangle (start -10.16 15.24) (end 10.16 -15.24)
         (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type background))
       )
     )
     (symbol "Module_XIAO-RP2040_1_1"
-      (pin bidirectional line (at -15.24 7.62 0) (length 2.54)
+      (pin bidirectional line (at -12.7 12.7 0) (length 2.54)
         (name "D0" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at 16.51 -2.54 180) (length 2.54)
+      (pin bidirectional line (at -12.7 -10.16 0) (length 2.54)
         (name "D9" (effects (font (size 1.27 1.27))))
         (number "10" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at 16.51 0 180) (length 2.54)
+      (pin bidirectional line (at -12.7 -12.7 0) (length 2.54)
         (name "D10" (effects (font (size 1.27 1.27))))
         (number "11" (effects (font (size 1.27 1.27))))
       )
-      (pin power_in line (at 16.51 2.54 180) (length 2.54)
+      (pin power_in line (at -2.54 17.78 270) (length 2.54)
         (name "3V3" (effects (font (size 1.27 1.27))))
         (number "12" (effects (font (size 1.27 1.27))))
       )
-      (pin power_in line (at 16.51 5.08 180) (length 2.54)
+      (pin power_in line (at 0 -17.78 90) (length 2.54)
         (name "GND" (effects (font (size 1.27 1.27))))
         (number "13" (effects (font (size 1.27 1.27))))
       )
-      (pin power_in line (at 16.51 7.62 180) (length 2.54)
+      (pin power_in line (at 0 17.78 270) (length 2.54)
         (name "5V" (effects (font (size 1.27 1.27))))
         (number "14" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at -15.24 5.08 0) (length 2.54)
+      (pin bidirectional line (at -12.7 10.16 0) (length 2.54)
         (name "D1" (effects (font (size 1.27 1.27))))
         (number "2" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at -15.24 2.54 0) (length 2.54)
+      (pin bidirectional line (at -12.7 7.62 0) (length 2.54)
         (name "D2" (effects (font (size 1.27 1.27))))
         (number "3" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at -15.24 0 0) (length 2.54)
+      (pin bidirectional line (at -12.7 5.08 0) (length 2.54)
         (name "D3" (effects (font (size 1.27 1.27))))
         (number "4" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at -15.24 -2.54 0) (length 2.54)
+      (pin bidirectional line (at -12.7 2.54 0) (length 2.54)
         (name "D4" (effects (font (size 1.27 1.27))))
         (number "5" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at -15.24 -5.08 0) (length 2.54)
+      (pin bidirectional line (at -12.7 0 0) (length 2.54)
         (name "D5" (effects (font (size 1.27 1.27))))
         (number "6" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at -15.24 -7.62 0) (length 2.54)
+      (pin bidirectional line (at -12.7 -2.54 0) (length 2.54)
         (name "D6" (effects (font (size 1.27 1.27))))
         (number "7" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at 16.51 -7.62 180) (length 2.54)
+      (pin bidirectional line (at -12.7 -5.08 0) (length 2.54)
         (name "D7" (effects (font (size 1.27 1.27))))
         (number "8" (effects (font (size 1.27 1.27))))
       )
-      (pin bidirectional line (at 16.51 -5.08 180) (length 2.54)
+      (pin bidirectional line (at -12.7 -7.62 0) (length 2.54)
         (name "D8" (effects (font (size 1.27 1.27))))
         (number "9" (effects (font (size 1.27 1.27))))
       )
diff --git a/fab.pretty/XIAO-RP2040.kicad_mod b/fab.pretty/SeedStudio_XIAO.kicad_mod
similarity index 95%
rename from fab.pretty/XIAO-RP2040.kicad_mod
rename to fab.pretty/SeedStudio_XIAO.kicad_mod
index 856cab8..cda84cf 100644
--- a/fab.pretty/XIAO-RP2040.kicad_mod
+++ b/fab.pretty/SeedStudio_XIAO.kicad_mod
@@ -1,12 +1,14 @@
-(footprint "XIAO-RP2040" (version 20211014) (generator pcbnew)
+(footprint "SeedStudio_XIAO" (version 20211014) (generator pcbnew)
   (layer "F.Cu")
-  (tedit 63C13CAB)
+  (tedit 63C2902D)
+  (descr "Footprint for Seed Studio XIAO modules")
+  (tags "xiao seed studio module")
   (attr through_hole)
   (fp_text reference "REF**" (at 0.0025 -2.149 unlocked) (layer "F.SilkS")
     (effects (font (size 1 1) (thickness 0.15)))
     (tstamp cfa6ece6-c4c2-463e-8243-39f87684a7cc)
   )
-  (fp_text value "XIAO-RP2040" (at 0.0025 0.391 unlocked) (layer "F.Fab")
+  (fp_text value "SeedStudio_XIAO" (at 0.0025 0.391 unlocked) (layer "F.Fab")
     (effects (font (size 1 1) (thickness 0.15)))
     (tstamp 2b94326e-f7bf-4dbf-8a23-87f97d0455b1)
   )
-- 
GitLab