Skip to content

Add opt-in MCP2222 USB bridge detection - #419

Merged
ladyada merged 2 commits into
fix-os-environ-boardfrom
add-mcp2222
Oct 28, 2026
Merged

ladyada merged 2 commits into
fix-os-environ-boardfrom
add-mcp2222

Conversation

@ladyada-eagleclaw

@ladyada-eagleclaw ladyada-eagleclaw commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Add opt-in MCP2222 detection with BLINKA_MCP2222=1, checking Microchip VID/PID 04d8:0b15 through libusb_package. Expose the chip/board IDs and board-family helper for the companion Blinka backend. The optional USB dependency is supplied by Microchip's pymcp2222 package.

Depends on #420, which fixes the existing environment-controlled board helper separately. This PR targets that branch so the review diff contains only MCP2222 additions; merge #420 first, then retarget this PR to main.

Validation: all 26 unit tests pass with the dependency, and affected pre-commit hooks pass. The earlier connected-device check confirmed the expected chip/board IDs. Local hooks use Python 3.11 and a temporary Windows lint option for existing Unix-only os.uname calls; repository hook configuration is unchanged.

Co-authored-by: Limor Fried <ladyada@users.noreply.github.com>
Base MCP2222 support on the dedicated board-helper fix and keep its regression tests in that change.

Co-authored-by: Limor Fried <ladyada@users.noreply.github.com>
@ladyada-eagleclaw
ladyada-eagleclaw changed the base branch from main to fix-os-environ-board October 28, 2026 19:37
@ladyada
ladyada merged commit 9306013 into fix-os-environ-board Oct 28, 2026
3 checks passed
ladyada-eagleclaw added a commit that referenced this pull request Oct 28, 2026
Remove the MCP2222 changes merged into this branch through PR #419. They are now proposed independently against main in PR #421.

Co-authored-by: Limor Fried <ladyada@users.noreply.github.com>
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.

2 participants