Нашёл решение с прошлой библиотекой на форуме ардуин. Вдруг пригодится :)
I was having similar problems to others in this thread trying to use this library with buttons etc. The issue seems to be that you need to call at least one stepper function before you call run() or else code execution haults. I haven't looked at the library but more than likely there's some initalized value that's no good.
So in your setup() method, just add something small like: stepper.rotateDegrees(1);
Нашёл решение с прошлой библиотекой на форуме ардуин. Вдруг пригодится :)
I was having similar problems to others in this thread trying to use this library with buttons etc. The issue seems to be that you need to call at least one stepper function before you call run() or else code execution haults. I haven't looked at the library but more than likely there's some initalized value that's no good.
So in your setup() method, just add something small like: stepper.rotateDegrees(1);