Replies: 2 comments 3 replies
-
If you write a firmware for Arduino, best to stay with Arduino libraries. Accessing SDK functions directly can mess with the core's functionality and break, as documented. That said, you can mostly get Pico-SDK libraries to compile if you just add their source code, header files and convert any I've created a PlatformIO project that can compile the examples/motor2040/motor2040_motor_cluster.cpp with no issues. https://github.com/maxgerhardt/pio-rp2040-pico_motor_shim I don't know whether it will work during runtime. It should compile the same in the Arduino IDE if you copy all source code from all libraries in |
Beta Was this translation helpful? Give feedback.
-
Thanks, @maxgerhardt! The cherry-picking worked well and compiled successfully using the Arduino IDE.
I will test it later on the hardware. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to reuse the Pimoroni Pico Library that uses pico C++ SDK. How can we include it in the arduino-pico? For example, this library: https://github.com/pimoroni/pimoroni-pico/tree/main/libraries/pico_motor_shim
Beta Was this translation helpful? Give feedback.
All reactions