#define 2
#define 3
#define 4
#define 5
int i;

void setup()
{
  for ( i=2; i<6; i++)
  pinMode(i, OUTPUT);
}

void ForWard()
{
  digitalWrite(LM1, 0);
  digitalWrite(LM2, 1);
  digitalWrite(RM1, 0);
  digitalWrite(RM2, 1);
}

void BackWard()
{
  digitalWrite(LM1, 1);
  digitalWrite(LM2, 0);
  digitalWrite(RM1, 1);
  digitalWrite(RM2, 0);
}

void Left()
{
  digitalWrite(LM1, 0);
  digitalWrite(LM2, 0);
  digitalWrite(RM1, 1);
  digitalWrite(RM2, 0);
}

void Right()
{
  digitalWrite(LM1, 1);
  digitalWrite(LM2, 0);
  digitalWrite(RM1, 0);
  digitalWrite(RM2, 0);
}

void Stop()
{
  for (i=2; i<6; i++)
  digitalWrite(i,0);
}

void loop()
{
ForWard() 
delay(2000);
Stop();
delay(250);
BackWard();
delay(2000);
Stop();
dalay(250)
Left();
delay(2000)
Stop();
delay(250)
Right();
delay(2000);
Stop();
delay(250);
}
$abcdeabcde151015202530fghijfghij