Hello -
here is my example sketch that i did for another project - after i got it finished - i realized that i should share it because i could not find complete example like this on my own previously which included using the analog input to measure position of the arm - maybe it saves someone else a few minutes
L298N_Motor_Example_12in_actuator_public.ino