Add generator for single-row castellated edge footprints

New scripts/generate_castellated_edge.py produces a reusable footprint
(round PTH pads + an embedded Edge.Cuts line through their centers) for
mounting a module flush onto another board's edge, ESP32-WROOM style --
distinct from the QFP/SSOP breakout-adapter footprints already in
footprints/other/castellated_breakouts.pretty/. Default pad size (1.0mm
dia / 0.5mm drill) matches the vias used in reference/kicad-castellated-breakouts.

Generated CASTELLATED_EDGE_1x20_P1.27MM (20 pins, 1.27mm pitch) into
footprints/other/castellated_edge.pretty/, registered as
MIKILAB_castellated_edge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T5pjBJQ7tf9pwsSs8rG2sm
This commit is contained in:
2026-09-08 00:07:33 +02:00
co-authored by Claude Sonnet 5
parent 25b09cf48a
commit 804e2a2cb8
5 changed files with 149 additions and 0 deletions
+1
View File
@@ -659,3 +659,4 @@ footprint,/var/folders/cv/lwgyj_k14gx2rc3t2rlt29s80000gn/T/snapeda_gdyhq56d/BGA5
footprint,/tmp/kcb_extract/kicad-castellated-breakouts-master/kicad-castellated-breakouts.pretty/QFP48-1.27MM-CASTELLATED.kicad_mod,footprints/other/castellated_breakouts.pretty/QFP48-1.27MM-CASTELLATED.kicad_mod,NEW,3337c229df872fa541e5c96f2c5525fc53600e77eec580ab93f020d41ab44a14,category=other
footprint,/tmp/kcb_extract/kicad-castellated-breakouts-master/kicad-castellated-breakouts.pretty/QFP64-1.27MM-CASTELLATED.kicad_mod,footprints/other/castellated_breakouts.pretty/QFP64-1.27MM-CASTELLATED.kicad_mod,NEW,de3f682f79645ee434d0cbe850bc687bbd65e3cecde3a0c88fe91b84432d8021,category=other
footprint,/tmp/kcb_extract/kicad-castellated-breakouts-master/kicad-castellated-breakouts.pretty/SSOP8-1.27MM-CASTELLATED.kicad_mod,footprints/other/castellated_breakouts.pretty/SSOP8-1.27MM-CASTELLATED.kicad_mod,NEW,3d3beb23324b47f2d46783f537b873f02658c5bd190096ec715119bfe3eb6a76,category=other
footprint,,footprints/other/castellated_edge.pretty/CASTELLATED_EDGE_1x20_P1.27MM.kicad_mod,NEW,5197e9b46b7a8814700067537cb67f65245ce42d7576c7c5a37269877808acc1,category=other;generated by scripts/generate_castellated_edge.py --pins 20 --pitch 1.27
1 type source destination status hash notes
659 footprint /tmp/kcb_extract/kicad-castellated-breakouts-master/kicad-castellated-breakouts.pretty/QFP48-1.27MM-CASTELLATED.kicad_mod footprints/other/castellated_breakouts.pretty/QFP48-1.27MM-CASTELLATED.kicad_mod NEW 3337c229df872fa541e5c96f2c5525fc53600e77eec580ab93f020d41ab44a14 category=other
660 footprint /tmp/kcb_extract/kicad-castellated-breakouts-master/kicad-castellated-breakouts.pretty/QFP64-1.27MM-CASTELLATED.kicad_mod footprints/other/castellated_breakouts.pretty/QFP64-1.27MM-CASTELLATED.kicad_mod NEW de3f682f79645ee434d0cbe850bc687bbd65e3cecde3a0c88fe91b84432d8021 category=other
661 footprint /tmp/kcb_extract/kicad-castellated-breakouts-master/kicad-castellated-breakouts.pretty/SSOP8-1.27MM-CASTELLATED.kicad_mod footprints/other/castellated_breakouts.pretty/SSOP8-1.27MM-CASTELLATED.kicad_mod NEW 3d3beb23324b47f2d46783f537b873f02658c5bd190096ec715119bfe3eb6a76 category=other
662 footprint footprints/other/castellated_edge.pretty/CASTELLATED_EDGE_1x20_P1.27MM.kicad_mod NEW 5197e9b46b7a8814700067537cb67f65245ce42d7576c7c5a37269877808acc1 category=other;generated by scripts/generate_castellated_edge.py --pins 20 --pitch 1.27