Libraries for the WCH CH32 RISC-V microcontroller family, built directly on ch32fun — no Arduino core, no HAL, no dynamic allocation.
Note
Everything here targets bare-metal ch32fun projects. If you're looking for Arduino-core or WCH-standard-peripheral-library code, these repos aren't that.
CH32V-family chips are cheap and capable, but the library ecosystem around them is thin outside of Arduino wrappers and vendor HAL samples. This org collects small, focused libraries that build directly on ch32fun — fixed memory footprint, no framework dependency beyond it, behavior verified on real hardware before release — instead of scattering them across personal repos.
| Library | Description |
|---|---|
| Ticker | Attach/detach callback timers multiplexed onto a single hardware timer. Same shape as ESP32's Ticker class. |
| Servo | RC servo control with two interchangeable timing backends — TIM2 PWM or SysTick, so a servo never has to cost you the general-purpose timer. Optional smooth motion. |
More libraries will land here over time, following the same constraints.
CH32V003-class chips are cheap and severely resource-constrained (2 KB RAM on the smallest parts). ch32fun gives direct register access and a minimal SystemInit() without pulling in a full HAL or Arduino compatibility layer, which is the right tradeoff for libraries meant to fit in a couple KB of flash. Every library in this org is built and tested against it directly.
Each library is published individually to the PlatformIO Registry under its own name — see the individual repo's README for lib_deps and usage.
Issues and pull requests are welcome on any repo in this org.
If you have a ch32fun-based library of your own that fits here, open an issue on this repo — happy to add it as a member repo or transfer ownership.
ISC, see LICENSE. Individual libraries may carry their own license file; check the repo before assuming.