l298n sketch???

Hello, I need a little bit of help with my l298n motor controller. I have looked all over the place for a sketch that did what i needed it to but cant find one. Its a dual motor driver but i will only be using 1 channel. It needs to work with an rc reciever in the same manner as a sabertooth motor driver would. ( an input voltage, not a resistance, determines the speed of the motor) And just to check, i only need 1 PWM pin and 2 other pins for out puts to the l298n and 2 pins for my input? Any help is appreciated! Thanks!!

You might want to post a link to the controller.