ANDROID LAND ROVER

void setup()
{
  pinMode(13,OUTPUT);
  Serial.begin(9600);
  Serial.print("WELCOME TO EMERGING TECHNOLOGIES");
  digitalWrite(13,LOW); digitalWrite(12,LOW);digitalWrite(11,LOW); digitalWrite(10,LOW);
delay(1000);
}

void loop()
{
  unsigned char a=Serial.read();
  if(a=='F')  {digitalWrite(13,HIGH); digitalWrite(12,LOW);digitalWrite(11,HIGH); digitalWrite(10,LOW);  delay(10);}
  else if(a=='B')  {digitalWrite(13,LOW); digitalWrite(12,HIGH);digitalWrite(11,LOW); digitalWrite(10,HIGH);  delay(10);}
  else if(a=='L')  {digitalWrite(13,HIGH); digitalWrite(12,LOW);digitalWrite(11,LOW); digitalWrite(10,LOW);  delay(10);}
  else if(a=='R')  {digitalWrite(13,LOW); digitalWrite(12,LOW);digitalWrite(11,HIGH); digitalWrite(10,LOW);  delay(10);}
 // if(a=='S')  {digitalWrite(13,LOW); digitalWrite(12,LOW);digitalWrite(11,LOW); digitalWrite(10,LOW);  delay(10);}
  else if(a=='W')  {digitalWrite(3,HIGH);  delay(10);} //FRONT LIGHT ON
  else if(a=='w')  {digitalWrite(3,LOW);   delay(10);} //FRONT LIGHT OFF
  else if(a=='U')  {digitalWrite(4,HIGH);  delay(10);} //BACK LIGHT ON
  else if(a=='u')  {digitalWrite(4,LOW);   delay(10);} //BACK LIGHT OFF
  else if(a=='V')  {digitalWrite(2,HIGH);  delay(10);} //HORN ON
  else if(a=='v')  {digitalWrite(2,LOW);   delay(10);} //HORN OFF

 else
 {
  digitalWrite(13,LOW); digitalWrite(12,LOW);digitalWrite(11,LOW); digitalWrite(10,LOW);
}
}