Keyestudio 4WD Bluetooth Multi-functional Car Manual page 101

Hide thumbs Also See for 4WD Bluetooth Multi-functional Car:
Table of Contents

Advertisement

}
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();
break;
case IR_Back: back();
break;
case IR_Left:turnL();
break;
case IR_Right:turnR(); //Righ
break;
case IR_Stop:stopp();
break;
default:
break;
}
keyestudio
");
//UP
//back
//Left
//stop
www.keyestudio.com
99

Advertisement

Table of Contents
loading

Related Products for Keyestudio 4WD Bluetooth Multi-functional Car

Table of Contents