Skip to content

Fails to compile in bare pico c++ SDK project #152

Description

@bionickatana

I am using this in a bare rp2040 c++ SDK project and found some things that appear not to work in that environment. I am happy to work on a pull request to fix the issue.

To sum up the changes that would be needed:

  • The Arduino.h library is not available to my project so it needs to be wrapped that with include guards
  • The std::chrono is not available on this platform so a different millis function would need to be defined
  • Include/define functions that Arduino.h exposes by default:
    • Define a typedef for byte
    • Include standard libraries from the SDK
    • Include math library
    • Define functions for degrees, radians and sq
    • Define constants for PI and TWO_PI

I also know that I might be building this incorrectly as other people have mentioned running on the rp2040 but I believe that they are using platformio which creates shims for these same things. I am happy to share more about my build process to help others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions