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.
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:
Arduino.hlibrary is not available to my project so it needs to be wrapped that with include guardsstd::chronois not available on this platform so a different millis function would need to be defineddegrees,radiansandsqPIandTWO_PII 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.