Maximilian Gerhardt
Maximilian Gerhardt
Needs docs for "How to convert MounRiverStudio project to PlatformIO" desperately, see #53.
Closing. I've just updated the OpenOCD version again. Firmware version should be kept up-to-date using the WCHISP tool as linked in the README.
The PlatformIO core does not directly support a platform providing a "new project" template: https://github.com/platformio/platformio-core/issues/446 The platform code (aka platform-ch32v) can work around this by checking if the e.g. `src/main.c`...
Done for CH32V003 in https://github.com/Community-PIO-CH32V/platform-ch32v/commit/2f95c188d471f2e1087c3d5803c5c2345387887a
https://github.com/AlexanderMandera/arduino-wch32v003 doesn't have `analogRead()` yet, so if you want it in that core, you need to open an issue there. I don't yet support building https://github.com/openwch/arduino_core_ch32 here in PlatformIO but...
This core is *already* supported for CH32V003. Please see project's https://github.com/Community-PIO-CH32V/platform-ch32v/tree/develop/examples/blinky-arduino platformio.ini file.
Closing since a lot of boards are supported in the OpenWCH Arduino core now. New boards will be synced here as they gain support in that core.
This core seems very incomplete. The current https://github.com/openwch/arduino_core_ch32/ core we support for CH32V003 ([example](https://github.com/Community-PIO-CH32V/platform-ch32v/tree/develop/examples/blinky-arduino)) seems way better for this, has at least all the features that the MoonFox2006 has and...
The OpenWCH Arduino core supports all common Arduino functions and PWM too, using [`analogWrite()`](https://github.com/openwch/arduino_core_ch32/blob/main/cores/arduino/wiring_analog.c#L143-L185). Even the PWM frequency is [adjustable](https://github.com/openwch/arduino_core_ch32/blob/f14a216b441e03907d2c0c9afab03e3985ab6852/cores/arduino/wiring_analog.c#L97-L101).
You are right, PWM does actually not work. The code is by default not activated (`build_flags = -DTIM_MODULE_ENABLED` needed), but even then, it does not complete since it's incomplete. There...