Micropython code to control 2 DC motors with a joystick. The following code has been used to interface a Raspberry Pi Pico with and L298N DC Motor Driver Module and an anlogue joystick.
On the L298N leave the enable jumper pins in place. The motors are controlled via PWM to IN pins on the L298N.