Pololu daul VNH5019 motor driver, use as a general purpose driver

Hi guys so i got this Pololu - 4.b. Board Connections.

I need to use it as a stand alone driver as it takes up too many pins on my arduino uno, i think i can cut out 4 pins because i don't need the fault finding and current sensing .

I need help with just the basic coding as a general purpose driver as i cant find any examples of it.

This is the code i tried to write but its not working obviously.

int M1INA=13;
int M1INB=12;
int pwm=10;



void setup()
{
 pinMode(M1INA,OUTPUT);
 pinMode(M1INB,OUTPUT);
 pinMode(pwm,OUTPUT);
  
}

void loop()
{
  
 digitalWrite(M1INA,HIGH);
 digitalWrite(M1INB,LOW);
 digitalWrite(pwm,255);
  
}

Thanks in advance
M......

Ok so I found my problem didnt use analogWrite on my pwm signal :o how stupid can i be anyway still will this code work fine?