c file for stepper motor