If I code like this:
motor.write(0); Serial.println("Before"); motor.write(180); Serial.println("After");
Both "Before" and "After" is instantly printed, while the motor is still rotating.
I want "After" or whatever statement to be executed AFTER the motor reaches 180 degree.
How can I implement this? Is it possible to read Servo's statement?
Btw, I don't want to put delay after write(), so other than that strategy.