Arduino code for controlling a stepper motor