To reverse the spin direction of a sensorless brushless motor with three wires colored red,…