Skip to content

feat: ArduinoCore-API deployment #2852

Closed

Description

@fpistm

To enhance Arduino API compatibility and ensure to not miss any fix/improvement, it would be fine to integrate the
official ArduinoCore-API available here:
https://github.com/arduino/ArduinoCore-API

Note

Any feedback on this topic are welcome

Activity

  1. added this to the 3.0.0 milestone on Nov 20, 2025
  2. added theissue type on Nov 20, 2025
  3. added
    enhancement
    on Nov 20, 2025
  4. marshfolx commented on Dec 20, 2025

    @marshfolx
    Contributor

    So is this a discussion place? After a quick look, I'm not really fancy of the design of ArduinoCore-API, mainly because:

    1. It doesn’t seem to offer some useful new features;
    2. Hardware abstractions like HardwareSerial declare all interfaces as virtual functions;
    3. Many annoying constants are still macros. Although the arduino namespace has been added, it doesn’t seem to address the issue of naming pollution.

    IMO, virtual functions are the most flexible yet laziest design approach. They are the old fashion. We already have methods like duck-typing to achieve static polymorphism, so it seems unnecessary to use virtual functions here.

    In fact, I think they should just remove interfasces like HardwareSerial and HardwareSPI entirely and leave them to be defined by each hardware platform. If they must standardize the interface, they could use something like a HardwareSerialConcept.

    I think they could replace most macros with constexpr and move them into namespace. If there are compatibility issues, they could add a fallback compilation switch.

  5. Aymane-ST commented on Jan 5, 2026

    @Aymane-ST
    Contributor

    Hi @marshfolx ,

    Thanks a lot for your detailed feedback and insights regarding the ArduinoCore-API design.

    The main goal of integrating ArduinoCore-API in our STM32 core is to align with the official Arduino ecosystem and ensure maximum compatibility with existing Arduino sketches, libraries, and tools, just like other popular cores have done. This alignment helps users seamlessly run their code across platforms without major changes, which is a key benefit for the community.

    We fully acknowledge that the ArduinoCore-API is not perfect and has some design choices that can be improved. That’s why we created a fork of the API: to experiment, propose enhancements, and push new features upstream where possible.

    Regarding the specific issues you raised, such as the heavy reliance on virtual functions and macro pollution : we encourage you to open an issue directly on the official ArduinoCore-API repository. This will help bring more visibility to these concerns and potentially drive improvements at the source.

    Thanks

  6. modified the milestones: 3.0.0, 2.13.0 on Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

arduino compatibilityenhancement

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions