How to Run and Stop Stepper motor 28BYJ 48

Hello, I am starting my first steps on Arduino. The principle off my project is like a crane. I have done some research on internet about it and i have tried some examples but can't stop the the motor.

I left here the code that should stop the motor:

void MotorStop() {
digitalWrite(8,LOW);
digitalWrite(10,LOW);
digitalWrite(9,LOW);
digitalWrite(11,LOW);
}

thanks for any help.

kind regards,
flavio

Perhaps you are not calling your function MotorStop?

Maybe show a bit more of the relevant code (using code tags).
Maybe you should be looking at the Enable pin ?

Hello,

I left here the code that should stop the motor:

Can you share your full coding?

+nielyay