Projects have sometimes the need to run on different platforms. For example a robot software shall run in a simulation on a native environment and on a microcontroller. If the software on the microcontroller is Arduino based, the problem appears in the native environment, because there is no Arduino framework available.
This library provides for this use case some Arduino interfaces, but not all yet. If something is missing, feel free to contribute, which make our all lifes easier. :-)
- Architecture
- How to integrate the library?
- Used Libraries
- Issues, Ideas And Bugs
- License
- Contribution
- Add it to the platformio.ini in your environment to the lib_deps section:
lib_deps = BlueAndi/ArduinoNative @ ~0.1.0
- Add this build flags to your platformio.ini in your environment:
build_flags = -D _USE_MATH_DEFINES
- Call the
Arduino::setup()
once and theArduino::loop()
in a infinite loop in your main entry point function.
See minimal example.
Library | Description | License |
---|---|---|
- | - | - |
If you have further ideas or you found some bugs, great! Create a issue or if you are able and willing to fix it by yourself, clone the repository and create a pull request.
The whole source code is published under the MIT license. Consider the different licenses of the used third party libraries too!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.