L298N controller

It beeps also for 10 seconds, the sound comes from the controller.

According to the spec:

The logical part of the operating current range: 0 ~ 36mA

By re-flash, I mean I need to put the sketch back onto the Arduino. I think the HW part is right as I have got it to move, I just don't remember exactly what I did. Is it right that I am setting the enable pin with the PWM value? So, i only need to set the IN1 and IN2 to high or low?