Keyestudio Ks0428 Manual page 137

Table of Contents

Advertisement

www.keyestudio.com
motor to 200
digitalWrite(MR_Ctrl,LOW);//set the direction control pin of right
motor to LOW
analogWrite(MR_PWM,200);//set the PWM control speed of right
motor to 200
//front
delay(2000);//delay in 2s
digitalWrite(ML_Ctrl,HIGH);//set the direction control pin of left
motor to HIGH
analogWrite(ML_PWM,200);//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,200);//set the PWM control speed of right
motor to 200
//back
delay(2000);//delay in 2s
digitalWrite(ML_Ctrl,HIGH);//set the direction control pin of left
motor to HIGH
analogWrite(ML_PWM,200);//set the PWM control speed of left
motor to 200
137

Advertisement

Table of Contents
loading

Table of Contents