lcd.setCursor(13, 1);
lcd.print(Rdistance,DEC);
Serial.print("\n R = ");
Serial.print(Rdistance,DEC);
return Rdistance;
}
else return Rdistance;
}
void IR_Control(void)
//remote control,when pressing"#",it quitting from the mode
{
unsigned long Key;
lcd.setCursor(0,0); //setting cursor in the first row and column
lcd.print("IR_Ctr
while(Key!=IR_ESC)
{
if(irrecv.decode(&results)) //to judge whether serial port receive data
{
Key = results.value;
switch(Key)
{
case IR_Go:advance();
break;
case IR_Back: back();
break;
case IR_Left:turnL();
keyestudio
");
//UP
//back
//Left
www.keyestudio.com
144
Need help?
Do you have a question about the 4WD Bluetooth Multi-functional Car and is the answer not in the manual?