Programming from scratch to drive two stepper motors