Keyestudio Smart Little Turtle Robot V3 Manual page 138

Table of Contents

Advertisement

www.keyestudio.com
100
//front
delay(2000);//delay in 2000ms
digitalWrite(ML_Ctrl,HIGH);//set the direction control pin of A motor to
high level
analogWrite(ML_PWM,100);//set the PWM control speed of A motor to
100
digitalWrite(MR_Ctrl,HIGH);//set the direction control pin of B motor to
high level
analogWrite(MR_PWM,100);//set the PWM control speed of B motor to
100
//back
delay(2000);//delay in 2000ms
digitalWrite(ML_Ctrl,HIGH);//set the direction control pin of A motor to
HIGH level
analogWrite(ML_PWM,100);// set the PWM control speed of A motor to
100
digitalWrite(MR_Ctrl,LOW);//set the direction control pin of B motor to
LOW level
analogWrite(MR_PWM,100);//set the PWM control speed of B motor to
138

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents