Skip to content

feat: pdip/spdip string aliases for the dip footprint - #856

Open
birdup000 wants to merge 1 commit into
tscircuit:mainfrom
birdup000:add-pdip-alias
Open

feat: pdip/spdip string aliases for the dip footprint#856
birdup000 wants to merge 1 commit into
tscircuit:mainfrom
birdup000:add-pdip-alias

Conversation

@birdup000

Copy link
Copy Markdown

Fixes #371

What

pdip8 threw Invalid footprint function, got "pdip" while dip8 rendered fine. PDIP-8 and the shouldered SPDIP variant use the same land pattern dip already emits (KiCad DIP-8_W7.62mm), so normalizeDefinition now rewrites pdip/spdip prefixes to dip, preserving the pin count and any trailing params:

  • pdip8 → 8 pads ✅ · spdip8 → 8 pads ✅ · pdip16 → 16 pads ✅
  • Geometry identical to dip8 (plated-hole x positions match exactly)

This is deliberately minimal vs the three larger open PRs — a two-line normalizer reusing the proven DIP layout.

Verification

  • tests/pdip-alias.test.ts: pad counts for pdip8/spdip8/pdip16 plus coordinate-identity with dip8
  • Full suite: 565/565 pass, biome clean

PDIP-8 (and the shouldered SPDIP variant) use the same land pattern
the `dip` footprint already emits (KiCad DIP-8_W7.62mm), so `pdip8`,
`spdip8`, and `pdip16` now normalize to the equivalent `dip` string
instead of throwing 'Invalid footprint function'. Pin count and
trailing params pass through unchanged.

Fixes tscircuit#371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement PDIP-8

1 participant