waspinator / AccelStepper

Fork of AccelStepper
http://www.airspayce.com/mikem/arduino/AccelStepper/
Other
146 stars 86 forks source link

RP2040 Support #32

Open nathanbern opened 8 months ago

nathanbern commented 8 months ago

Does this library support the RP2040? I could not find anything in the code that suggests it doesn't, but would prefer to have a solid answer.

Thanks

Poofjunior commented 7 months ago

Yes, this is possible. You would need to redefine your own "Arduino.h" file, implement the missing functions with an RP2040-related implementation, and then point AccelStepper to it during compilation.

I have an in-progress project built with the pico-sdk that does just that. (Compiles. Still in progress.) Feel free to reference the folder structure here. The most valueable bits for adapting to your project are probably the CMakeLists.txt and the Arduino.h file.

Cheers--and happy hacking.