AccelStepper - Error compiling for board Arduino Uno WiFi Rev2.

hi :slight_smile:
I get an error with AccelStepper for board Arduino Uno WiFi Rev2.
Im using "nightly" build 1.8.9.

.../Arduino/nightly/Arduino.app/Contents/Java/libraries/AccelStepper/AccelStepper.cpp: In member function 'virtual void AccelStepper::step1(uint8_t)':
.../Arduino/nightly/Arduino.app/Contents/Java/libraries/AccelStepper/AccelStepper.cpp:229:35: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
digitalWrite(_pin2, _speed > 0); // Direction

Can someone help me please?

since all is working fine with other Arduino, I guess I either have missed to install something for the Uno WiFi Rev2 (with this board i only tested wifi examples until now, which all worked fine) or its a Bug with a library.
Still I don't know what to do now, would be happy for any advice :slight_smile:

This error is caused by a the Arduino megaAVR Boards core handling the pin state values differently. I reported to the Arduino developers that it causes breakage with certain existing code and they have already begun to investigate a solution:

To investigate a workaround for you, I just installed AccelStepper 1.59 (which I believe to be the newest version) from their website:
https://www.airspayce.com/mikem/arduino/AccelStepper/
I found that my library code is different from yours and an initial test didn't indicate any problems with using AccelStepper 1.59 with Uno WiFi Rev2. If you're using an outdated version of AccelStepper, please try updating to 1.59 and then let me know if you still get any errors.

wow, thank you so much pert!
looks like it is working great, thx!

You're welcome. I'm glad to hear it's working now. Enjoy!
Per