simplefoc / Arduino-FOC

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

Fix PinStatus unknown type problem for all architectures #266

Closed runger1101001 closed 9 months ago

runger1101001 commented 1 year ago

The PinStatus type is defined on some boards, but not on others. It's not even homogenous on Arduino itself, with the AVR based boards not having it defined, but the SAMD based ones having it. RP2040 has it, but most other archs (STM32, ESP32, etc) do not.

See also: https://community.simplefoc.com/t/compiling-error-for-samd21-board-seeeduino-xiao/3169/3

The problem occurs in StepDirListener.h