feat: pdip/spdip string aliases for the dip footprint - #856
Open
birdup000 wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #371
What
pdip8threwInvalid footprint function, got "pdip"whiledip8rendered fine. PDIP-8 and the shouldered SPDIP variant use the same land patterndipalready emits (KiCadDIP-8_W7.62mm), sonormalizeDefinitionnow rewritespdip/spdipprefixes todip, preserving the pin count and any trailing params:pdip8→ 8 pads ✅ ·spdip8→ 8 pads ✅ ·pdip16→ 16 pads ✅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 withdip8