Keyestudio 4DOF Manual page 177

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

Advertisement

www.keyestudio.com
released,
{
//"else" is executed because Bluetooth does not send characters,
// and the value of val2 is the value of the previously pressed button,
//so the command of pressing the button will be repeated
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;
}
}
}
//**************************************************
// turn left
void T_left()
{
pos1=pos1+1;
// execute the corresponding function when
//stop instruction
174

Advertisement

Table of Contents
loading

Table of Contents