LED Moving Head

/// Moves the motor (with acceleration/deceleration)
/// to the new target position and blocks until it is at
/// position. Dont use this in event loops, since it blocks.
/// \param[in] position The new target position.
void runToNewPosition(long position);

Das ist nicht das was du willst!
Warum verwendest du es dann?

Verwende doch bitte eine, oder mehrere, der anderen Methoden.
Das scheint mir zielführender.

Siehe:

/// ... You can have multiple simultaneous steppers, all moving
/// at different speeds and accelerations, provided you call their run()
/// functions at frequent enough intervals ...