Unfortunately, not every L298N module follows the recommendations put forth in the datasheet.
I have this particular module:
(Source: https://forums.parallax.com/discussion/156410/how-to-use-a-l298n-dual-h-bridge-with-a-microcontroller-quickstart-board/p2 )
It has the bypass cap for pin 9 but not for pin 4. Fortunately pin 4 comes out as the VMS signal so ...
This is an old post, but I thought to bring something more helpful to the newbies.
The stepper.h include file does only provide a very basic stepper motor object.
The L298N is a very basic motor controller.
What is missing is an idle function. Notwithstanding the issue of specs, I feel like a pet-feeder should not require industry strength controllers.