simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
1.94k stars 510 forks source link

RP2040: respect pin nrs on boards which remap them #369

Closed runger1101001 closed 5 months ago

runger1101001 commented 5 months ago

Some boards like to remap the pin numbers so they match the Arduino convention rather than following the RP2040 GPIO convention. This patch restores compatibility with those boards.

In particular, this makes SimpleFOC work with the Arduino Nano RP2040 Connect.

runger1101001 commented 5 months ago

Tested on Arduino Nano RP2040 Connect