Keyestudio 4DOF Manual page 176

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

www.keyestudio.com
val=Serial.read();
val2=val;
Serial.println(val);
switch(val)
{
case 'L': T_left(); break;
receive the value
case 'R': T_right(); break;
case 'f': RF(); break;
case 'b': rb(); break;
case 'F': ZK(); break;
case 'B': ZB(); break;
case 'l': LF(); break;
case 'r': lb(); break;
case 'S': servo_stop(); break;
}
}
else
{
switch(val2)
// read the received data
//Give the value of val to val2
// execute the corresponding function when
//When the button is pressed and not
//stop instruction
173

Advertisement

Table of Contents
loading

Table of Contents