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
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?