platform-ch32v icon indicating copy to clipboard operation
platform-ch32v copied to clipboard

Can add frameworks code in PlatformIO ?

Open Witawat opened this issue 2 years ago • 6 comments

Can add frameworks code in PlatformIO ?

this code style arduino how to add support on PlatformIO ?

https://github.com/MoonFox2006/Ardu_CH32V003

can share tutorial for add ?

thankyou

Witawat avatar Nov 01 '23 12:11 Witawat

This core seems very incomplete. The current https://github.com/openwch/arduino_core_ch32/ core we support for CH32V003 (example) seems way better for this, has at least all the features that the MoonFox2006 has and more.

maxgerhardt avatar Nov 01 '23 13:11 maxgerhardt

This core seems very incomplete. The current https://github.com/openwch/arduino_core_ch32/ core we support for CH32V003 (example) seems way better for this, has at least all the features that the MoonFox2006 has and more.

i thing easy use style like arduino on wch code and support pwm

Witawat avatar Nov 01 '23 13:11 Witawat

The OpenWCH Arduino core supports all common Arduino functions and PWM too, using analogWrite(). Even the PWM frequency is adjustable.

maxgerhardt avatar Nov 01 '23 13:11 maxgerhardt

The OpenWCH Arduino core supports all common Arduino functions and PWM too, using analogWrite(). Even the PWM frequency is adjustable.

openwch can support now ? can check ?

Witawat avatar Nov 01 '23 13:11 Witawat

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 is no implementation of HardwareTimer.h/.cpp and a lot of type definitions are missing. IT looks to like this is half-copied from the STM32 Arduino core but not actually finished. You are right to open https://github.com/openwch/arduino_core_ch32/issues/31.

maxgerhardt avatar Nov 01 '23 18:11 maxgerhardt

You are right, PWM does actually not work. The code is by default not activated ( needed), but even then, it does not complete since it's incomplete. There is no implementation of HardwareTimer.h/.cpp and a lot of type definitions are missing. IT looks to like this is half-copied from the STM32 Arduino core but not actually finished. You are right to open openwch/arduino_core_ch32#31.build_flags = -DTIM_MODULE_ENABLED

i found new code to small can add ?

https://github.com/wagiminator/MCU-Templates/tree/main/CH32V003

Witawat avatar Nov 05 '23 15:11 Witawat