Skip to content

BlueAndi/ArduinoNative

Repository files navigation

ArduinoNative

License Repo Status Release

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. :-)

Table of content

Architecture

The Principle

Principle

Detail

ArduinoNative

DynamicFlow

How to integrate the library?

  1. Add it to the platformio.ini in your environment to the lib_deps section:
    lib_deps =
        BlueAndi/ArduinoNative @ ~0.1.0
    
  2. Add this build flags to your platformio.ini in your environment:
    build_flags =
        -D _USE_MATH_DEFINES
    
  3. Call the Arduino::setup() once and the Arduino::loop() in a infinite loop in your main entry point function.

Example

See minimal example.

Used Libraries

Library Description License
- - -

Issues, Ideas And Bugs

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.

License

The whole source code is published under the MIT license. Consider the different licenses of the used third party libraries too!

Contribution

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.