www.keyestudio.com
digitalWrite(ML_Ctrl,HIGH);
analogWrite(ML_PWM,200);
}
void Car_right()
{
digitalWrite(MR_Ctrl,HIGH);
analogWrite(MR_PWM,200);
digitalWrite(ML_Ctrl,LOW);
analogWrite(ML_PWM,200);
}
void Car_Stop()
{
digitalWrite(MR_Ctrl,LOW);
analogWrite(MR_PWM,0);
digitalWrite(ML_Ctrl,LOW);
analogWrite(ML_PWM,0);
}
//****************************************************************
(4) Test Result
Upload code on keyestudio V4.0 development board, DIP switch is
dialed to right end and power on, the smart robot follows light to
168
Need help?
Do you have a question about the Ks0428 and is the answer not in the manual?