i need to do this.. Can i do this step in Arduino programming or help... i don't know how it doing
Bluetooth signal no 1 and i use servo motor i can fix it it's OK
if (x == '1'){
go and do that command
}
that command is
if ( int m=0; x<=180; x++){
servo.write(m);
delay(20);
}
What made you think that this question belonged in the forum section where you originally posted it ?
Please follow the advice on posting code given in posting code
In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless
if (x == '1')
{
moveServo();
}
void moveServo()
{
// if ( int m=0; x<=180; x++){ ***** This makes no sense
for( int m=0; x<=180; x++)
{
servo.write(m);
delay(20);
}
}