Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for the CH32V203 (LQFP-32) microcontroller to the EDG parts library and updates the keyboard example design to use it as a practical integration test, alongside small refinements to the CH32V003 model and an example comment note.
Changes:
- Added a new
Ch32v203microcontroller model (device + wrapper + programming headers) and exported it from the microcontroller package. - Updated
examples/test_keyboard.pyto use a genericIoControllerrefined toCh32v203, plus additional peripherals (debug LED, larger switch matrix, rotary encoder, SPI OLED). - Updated the keyboard reference netlist and made minor CH32V003 model adjustments (ADC modeling note + reset capacitor), plus a TODO comment in the BLE joystick example.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| examples/test_keyboard.py | Switches the keyboard example to a generic IoController refined to Ch32v203 and adds encoder/OLED/LED. |
| examples/test_ble_joystick.py | Adds a TODO note about a Neopixel routing constraint. |
| examples/Keyboard/Keyboard.net.ref | Updates the reference netlist to match the new CH32V203-based keyboard design. |
| edg/parts/microcontroller/Ch32v203.py | Introduces the CH32V203 (LQFP-32) part model, pin mapping, and SDI programming headers. |
| edg/parts/microcontroller/Ch32v003.py | Adjusts ADC modeling comments/params and adds a reset capacitor to NRST. |
| edg/parts/microcontroller/init.py | Re-exports the new CH32V203-related symbols. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+43
to
+45
| class Ch32vSdi2Tc2030(Ch32vSdi2Header): | ||
| """UNOFFICIAL tag connect header, based on the SWD pinout and mapping SWDIO to SWIO.""" | ||
|
|
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.
Adds CH32V203 microcontroller, changes the keyboard example to use it as a test.
Fixes to CH32V003 model