try this variation, it will allow approx. 10 seconds of forward riding and then stops.
void loop()
{
if (millis() < 10000UL)
{
motor.step(100, FORWARD, SINGLE);
}
}
try this variation, it will allow approx. 10 seconds of forward riding and then stops.
void loop()
{
if (millis() < 10000UL)
{
motor.step(100, FORWARD, SINGLE);
}
}