delay(2000);
Troubleshooting checklist
The HW-130 routes the L298N pins to specific Arduino pins. This is the critical reference for your code. hw 130 motor control shield for arduino datasheet better
Up to (5V) connected to the Arduino’s high-resolution timers. hw 130 motor control shield for arduino datasheet better