Testing code for aligning the rotor to phase A (not connected to the motor yet).