Skip to content

Add opt-in MCP2222 USB bridge detection - #421

Merged
ladyada merged 1 commit into
mainfrom
add-mcp2222-detection
Oct 28, 2026
Merged

ladyada merged 1 commit into
mainfrom
add-mcp2222-detection

Conversation

@ladyada-eagleclaw

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 MCP2222 chip/board IDs for the companion Blinka backend (#1155 in Adafruit_Blinka). Install Microchip's pymcp2222 package for the optional USB dependency.

This PR targets main independently of #420. It deliberately retains the existing broken os_environ_board helper and ItsyBitsy typo; those corrections remain for separate review in #420. MCP2222 detection and its dedicated board property work, but the shared environment-board-family helper remains broken until that fix lands.

Replaces #419, which was merged into the bug-fix branch rather than main.

Validation: all 24 tests and affected pre-commit hooks pass. Tests cover MCP2222 USB enumeration, board IDs, caching, and missing-device errors; the known-broken shared helper is not asserted to work. The earlier connected-device detection check is unchanged. Local hooks use Python 3.11 and a temporary Windows lint option for existing Unix-only os.uname calls.

Leave the existing os_environ_board behavior for the separate bug-fix PR.

Co-authored-by: Limor Fried <ladyada@users.noreply.github.com>
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>
@ladyada
ladyada merged commit 312e6a8 into main Oct 28, 2026
2 checks passed
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