How to put the motor into sleep mode and perform the initialization setup