EasyManua.ls Logo

Keyestudio 4WD Bluetooth Multi-functional Car - Page 146

Keyestudio 4WD Bluetooth Multi-functional Car
151 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
keyestudio
www.keyestudio.com
144
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 controlwhen 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(); //UP
break;
case IR_Back: back(); //back
break;
case IR_Left:turnL(); //Left

Related product manuals