Skip to content

CH32V203 in LQFP-32#516

Merged
ducky64 merged 7 commits into
masterfrom
ch32v203
Jun 6, 2026
Merged

CH32V203 in LQFP-32#516
ducky64 merged 7 commits into
masterfrom
ch32v203

Conversation

@ducky64

@ducky64 ducky64 commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Adds CH32V203 microcontroller, changes the keyboard example to use it as a test.

Fixes to CH32V003 model

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Ch32v203 microcontroller model (device + wrapper + programming headers) and exported it from the microcontroller package.
  • Updated examples/test_keyboard.py to use a generic IoController refined to Ch32v203, 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."""

@ducky64 ducky64 merged commit e5c55d8 into master Jun 6, 2026
12 checks passed
@ducky64 ducky64 deleted the ch32v203 branch June 6, 2026 20:49
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