Skip to content
@ch32-libraries

ch32-libraries

Libraries for the WCH CH32 RISC-V microcontroller family, built on ch32fun

ch32-libraries

license ISC

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.

Why this org exists

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.

Libraries

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.

Why ch32fun

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.

Installation

Each library is published individually to the PlatformIO Registry under its own name — see the individual repo's README for lib_deps and usage.

Contributing

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.

License

ISC, see LICENSE. Individual libraries may carry their own license file; check the repo before assuming.

Popular repositories Loading

  1. Ticker Ticker Public

    Attach/detach callback timers for CH32V-family RISC-V microcontrollers, built directly on ch32fun. Interrupt-driven, no dynamic allocation, hardware-verified from 10 us to 1 s.

    C++ 1

  2. .github .github Public

  3. Servo Servo Public

    RC servo control for CH32V-family RISC-V microcontrollers, built directly on ch32fun. Two interchangeable timing backends (TIM2 PWM or SysTick), optional smooth motion.

    C++

Repositories

Showing 3 of 3 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…