As you know, any L298N module has the ability to drive two motors at once, but you may not know that one instance of the library is intended to pilot only one motor. So if you need to drive two motors ...
This is a library for the Arduino IDE that interfaces with the L298N It makes it simple to drive two brushed, DC motors. An example sketch is available that shows how to use the library. You can ...