EasyManua.ls Logo

Keyestudio 4WD Bluetooth Multi-functional Car - Page 101

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
99
}
void IR_Control(void)
{
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)) //judging if serial port receives data
{
Key = results.value;
switch(Key)
{
case IR_Go:advance(); //UP
break;
case IR_Back: back(); //back
break;
case IR_Left:turnL(); //Left
break;
case IR_Right:turnR(); //Righ
break;
case IR_Stop:stopp(); //stop
break;
default:
break;
}

Related product manuals