Dual mc33926 motor driver carrier

I’m making a line follower
Using Dual MC33926 Motor Driver Carrier, someone could help me with the code for Arduino to work with 2 motors
I have a code but it only works with 1 motor

:question: :question: :question:

[code]#define stby 7
#define motoryon1 10
#define motoryon2 9
#define current 5
unsigned long time;
float sum=0;
int turn=50;
float result;
float akim;
void setup(){

pinMode(stby,OUTPUT);
pinMode(motoryon1,OUTPUT);
pinMode(motoryon2,OUTPUT);
pinMode(current,INPUT);
digitalWrite(stby,HIGH);
Serial.begin(9600);

digitalWrite(motoryon1,HIGH);
}

void loop(){
time=millis();

akim=analogRead(current);

Serial.print(akim);
Serial.print(",");
Serial.println(time);

}
[/code]

Hello.

It is not clear to me from your code how your Dual MC33926 Motor Driver Carrier is connected, but it looks like your code might just be setting pin 7 (stby) and pin 10 (motoryon1) high; which does not sound like enough to control both motor channels. Can you post a diagram or pictures of your connections? You might also read through the “Pinout” and “Basic Application Connections” sections of the product page to make sure you understand how each pin on the driver should be controlled.

-Brandon