EasyManua.ls Logo

Keyestudio 4WD Bluetooth Multi-functional Car - Page 149

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
147
case 'L':turnL(); //Left
break;
case 'R':turnR(); //Right
break;
case 'S':stopp(); //stop
break;
}
}
}
void setup()
{
pinMode(servopin,OUTPUT); //setting motor interface as output
LCD1602_init(); //initializing 1602
M_Control_IO_config(); //motor controlling the initialization of IO
Set_Speed(Lpwm_val,Rpwm_val); //setting initialized speed
Set_servopulse(DuoJiao); //setting initialized motor angle
Sensor_IO_Config(); //initializing IO of line tracking module
irrecv.enableIRIn(); //starting receiving IR remote control signal
pinMode(inputPin, INPUT); //starting receiving IR remote control signal
pinMode(outputPin, OUTPUT); //IO of ultrasonic module
Serial.begin(9600); //initialized serial port , using Bluetooth as serial port, setting baud
lcd.setCursor(0, 0); //setting cursor at 0.0
lcd.print(" Wait Signal "); //LCD printing character string
stopp(); //stop
}

Related product manuals