Keyestudio Smart Little Turtle Robot V3 Manual page 181

Table of Contents

Advertisement

www.keyestudio.com
myMatrix.writeDisplay();
matrix_display(matrix_front2);
}
}
else//otherwise
{
car_front();//go forward
myMatrix.clear();
myMatrix.writeDisplay();
matrix_display(matrix_front2); //
}
}
void servopulse(int servopin,int
{
for(int i=0; i<20; i++)
{
pulsewidth = (myangle*11)+500;
digitalWrite(servopin,HIGH);
delayMicroseconds(pulsewidth);
digitalWrite(servopin,LOW);
delay(20-pulsewidth/1000);
//show forward pattern
show forward pattern
myangle)//the running angle of servo
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents