This is done in the setup, so the DMX signal isn't been read yet.
When the setup is finished and the board reads the DMX signal, the motors will travel to the position which is read (usually zero).
But when there is no DMX signal available, the motors also start rotating. They will only stop when the DMX signal becomes available.
Could it be that the motors are still seeing
Code : Tout sélectionner
m_stepper[i].refresh(255, 50);
Code : Tout sélectionner
while (digitalRead(zeroSwitch[i]))//as long as the limit switch is not pressed ((! zeroSwitch) reverses the behavior)
{
m_stepper[i].continuous();//turn !
delayMicroseconds(10);
}