Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Arduino support #13

Closed
maxgerhardt opened this issue Feb 19, 2023 · 7 comments
Closed

Add Arduino support #13

maxgerhardt opened this issue Feb 19, 2023 · 7 comments

Comments

@maxgerhardt
Copy link
Member

Once all existing frameworks are supposed, one can think about expanding / creating an Arduino core for these boards.

@maxgerhardt
Copy link
Member Author

Done for CH32V003 in 2f95c18

@marshalab
Copy link

marshalab commented Jun 29, 2023

Hello. When can we expect the addition of functions analogRead analogWrite AttachInterrupt for Arduino part ? I've tried changing the adc-tempo example to read voltages, but it's hard for me. Perhaps there are working pieces of code for these functions?

Perhaps I am writing to the wrong address. And this is the project https://github.com/AlexanderMandera/arduino-wch32v003 or https://github.com/openwch/ch32v003

@maxgerhardt
Copy link
Member Author

maxgerhardt commented Jun 29, 2023

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 it will be supported soon. This core does have analogRead(). You can use this core in the Arduino IDE already.

https://github.com/openwch/arduino_core_ch32/blob/987154335fd6834d2f547e559376d553c9356a1b/cores/arduino/wiring_analog.c#L123-L136

@marshalab
Copy link

Great, thanks a lot.
https://github.com/openwch/arduino_core_ch32
This is what I need now!

@arwidcool
Copy link

https://github.com/openwch/arduino_core_ch32 Now has native Arduino SPI implementation..

I tried adding it as a custom core to CH32V framework but failed. I think adding it now, especially for CH32V003 will be a big step in getting low cost projects going.

I can try adding it myself if there is any documentations on doing so, if not I think it will be very beneficial to add this core at least for V003.

@maxgerhardt
Copy link
Member Author

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.

@maxgerhardt
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants