EasyManua.ls Logo

Keyestudio Ks0428 - Page 142

Keyestudio Ks0428
247 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...
142
www.keyestudio.com
digitalWrite(MR_Ctrl,HIGH);//Set direction control pin of right
motor to HIGH level
analogWrite(MR_PWM,250);//Set the PWM control speed of
right motor to 100
//back
delay(2000);//define 2s
digitalWrite(ML_Ctrl,HIGH);//Set direction control pin of left
motor to HIGH level
analogWrite(ML_PWM,250);//Set the PWM control speed of left
motor to 100
digitalWrite(MR_Ctrl,LOW);//Set direction control pin of right
motor to LOW level
analogWrite(MR_PWM,250);//Set the PWM control speed of
right motor to 100
//left
delay(2000);//define 2s
digitalWrite(ML_Ctrl,LOW);//set the direction control pin of left
motor to LOW
analogWrite(ML_PWM,250);//set the PWM control speed of left
motor to 200
digitalWrite(MR_Ctrl,HIGH);//set the direction control pin of right
motor to HIGH
analogWrite(MR_PWM,250);//set the PWM control speed of right

Table of Contents